I like the way you answered (I mean, made me think a bit).
I fixed it to be now:
concatenated[i] = secondpart[i-startofsecond];
Thanks for the help!
Type: Posts; User: Jaymond Flurrie
I like the way you answered (I mean, made me think a bit).
I fixed it to be now:
concatenated[i] = secondpart[i-startofsecond];
Thanks for the help!
So this is supposed to print two arrays concatenated, but what's wrong here? The later part doesn't show up correctly (prints some nonsense). I'm not looking for a "from scratch" answer, just info...
Just remembered why I changed away from Dev-C++. It had that
"'for' loop initial declaration used outside C99 mode" error,
so I didn't see any advantages using Dev-C++ over VS2010.
I used Dev-C++ first, but ran into some problems with it and decided to go back to Visual Studio, since I know Visual Studio so much better otherwise.
Ok, I'll keep that in my mind. Thanks for the heads up!
It can run on Windows, yes, but the huge reason why I use VS2010 here is
1) I happen to have VS2010
2) The thing that I'm trying to do here is to just learn the C as well as possible
One...
Yeah, this works. Thanks!
It's good enough for me if I can just write and test the code with Visual Studio. It's ok if the system knows absolutely nothing about Visual Studio.
C++ is too advanced for the embedded systems we're using. It has to be C.
It gives me
IntelliSense: invalid combination of type specifiers
error C2065: 'false' : undeclared identifier
error C2065: 'true' : undeclared identifier
What I find strange is that it has...
I'm pretty sure this is again something about C99, but how do I use booleans in C code in Visual Studio 2010?
Yeah, I think using struct might prove to be easier.
When using C "not comfortable with pointers" is a pretty darn big flaw in my opinion ie. anyone using C should learn to use pointers in my...
In C# or C++ it would be enough to use 2D array, but how about in C? The data I want to have in array is a directory listing like this
File name Date Size ...
Yeah, absolutely, just C, not C++.
Ok, I thought so too.
Thanks to all of you, I got a flying start into C programming with VS2010 now!
Does VS2010 support C99? If so, how do I enable it?
Also, what's the smartest way in VS2010 to break the program before exiting (I mean in a simple program usually the program is finished before I...
Now it works but I don't understand why. Is it about declaring all the variables in the beginning of main?
Better, but not good enough - Now I get only four errors, which of three points to that for-loop initialization line.
Error 1 error C2143: syntax error : missing ';' before 'type'
Error 2 error...
So, first of all, could someone give me a very short tutorial how to program C in Visual Studio 2010?
I have this code, a direct copy from a book:
#include <stdio.h>
int main(void)
{...