None of the answers is correct because char *str="hello"; defines the string "hello" in a part of memory that cannot be modified by the program....
Suppose you have 100 accesses. How many will hit primary memory? How many will hit secondary? What is the total time taken by (a) the primary...
> Beta 103 Well, you can call it whatever you like. I could call you an idiot. But the point of language is communication of ideas, and if you...
There isn't a #define chatuser......
Oh and a repeat IS a loop. You cannot repeat without a loop, except by unrolling the loop, but that only works if you know at compile time how...
By the way this is a really bad idea: #define sentence cout << sentence << endl; Don't use #defines until you really understand all their...
Well there are several ways of looping. My code shows you one way. I suggest you experiment with the examples in whatever book/course you are...
sprintf(joined_string,"'%s','%s','%s'",str1,str2,str3);
After staring at your....I hesitate to use the word "code"...for a while I figured you probably meant to write something like this: int main() {...
And by the way another great way of helping a Rooky is to focus them on what will help them. This chatroom project is WAAAAAAAAAAAY beyond your...
If you're still at the level of thinking that "if Y = friendsyes;" is valid code then a chat room is a project you should shelve for now and...
Why not grab yourself a compiler and try these things out?
This appears to be what you want: http://dev.mysql.com/downloads/connector/c/ Or maybe this: http://dev.mysql.com/downloads/connector/cpp/ You...
Google "man system". man is a Unix command short for "manual".
Also have a quick look at what you do to i between the fscanf and the printf. That might have something to do with it. You get no output by the...
Have another look at line 2 of main().
The system() call only launches executables, and bat files aren't executable. Executable files end ONLY with .exe or .com. The executable for...
Rather than giving a vague interpretation of the message please give the exact message in full exactly as it appears on the screen. Also try...
How exactly is it not working properly? Could you give an example output explaining what you saw and what you expected? I use VS2010 too so I...
Define "better". And compatible with what? You mentioned Turbo C, which is a seriously ancient compiler; I think Noah used it on the Ark. For...
Separate names with a comma.