January 24th, 2013, 12:30 PM
Re: Writing Structure to CSV file - won't work... HELP!
Actually the behaviour is undefined as to what will happen.
Originally Posted by Protocol
I didn't point it out before, but that's the flaw in your program. If you use printf()-like functions, the parameter you pass must match the format specifier. If you pass an int and the format specifier asks for double or vice-versa, then all bets are off as to what will happen.
That's why C++ has streams and overloaded operator <<, to ensure type-safety.
Again, there is a forum for managed C++ questions. The stuff with the "^" syntax is off-topic in this forum. It isn't C++, plain and simple, it is a different technology altogether.
At this point, I'll accept VC++ as VC++, including any code that it can generate.
Click Here to Expand Forum to Full Width