For sure there IS a way if you resort to IMPLEMENTATION SPECIFIC approaches. But you're also saying that it also has to be ANSI-C89, and there...
You're out of luck if you want total ANSI/C89 AND sub-second accuracy.
Sure you could do that. http://www.cplusplus.com/reference/string/string/ But perhaps the find method (in a loop) to step over a number of...
Why would attempting the assignment AFTER the value has been printed have any effect whatsoever? Does exit(); really compile for you?
It's really saying that to be successful (long term) in your programs, you need to be good, not just lucky. C often lures you in with early...
I would suggest C++ then. Use a std::string variable to store each line, and use the getline() method to read a whole line (it's length won't...
Can you post a complete program, including - the main(), - the include files, - how you compiled it, - and what you saw on the output...
You got lucky. The compiler's guess as to what the function prototype should be was close enough to its actual declaration to produce something...
> memset(szPath,'\0',MAX_PATH); And if TCHAR isn't a char, then you'll need one of memset(szPath,'\0',MAX_PATH * sizeof TCHAR );...
Learning how to indent code as well would be a priority as well. In response to "method 1". http://c-faq.com/aryptr/ary2dfunc2.html > I...
Was there a question in there? It's just code, no explanation, no questions, nothing, nada, zip, zilch.
Maybe post the code that you ran? What you posted isn't even close to being able to compile, let alone run.
So do you want C or C++ ? Because you've used a random mix of C and C++ API's in your snippet of code, so I'm wondering what exactly you're...
http://www.go4expert.com/showthread.php?t=168 See rule 10. Several other ones apply as well, I guess you should read them all.
Write it out the long way cout << "a[" << i << "]"
Did you even pay any attention to your other thread, with the same code? http://www.go4expert.com/showthread.php?t=7849
http://www.go4expert.com/showpost.php?p=21870&postcount=3 The poster doesn't want help to learn, he just wants a free lunch. No point in even...
> strcat(arr,arr); There are very few standard C functions (memmove being a notable exception) which work reliably when the input and output...
Well if you've already managed to do this with a char array, then you're already half way. When you have a pointer, it is all about making sure...
Definitely a better idea to post here, because I don't do 1:1 support for forum questions.
Separate names with a comma.