by mischief on Fri Mar 13, 2009 1:39 am
([msg=19892]see Re: Wondering About My C++ Methods[/msg])
Tsuaxis, pertaining to your 'Dev-C++' example: it is very bad practice to rely on 'system()' for anything. what if there was no 'pause' program on the system, or it wasn't in the path?
if you really need something for pausing, try invesitating the istream member 'ignore', such as std::cin.ignore().
furthermore, Dev-C++ is extremely ancient. there hasn't been an update in nearly 1500 consecutive days.
pertaining to your 'Visual C++ 4' example: using a .h extension on a standard header is depreciated. you can use c headers by preprending a 'c' to the header name and dropping the .h, such as climits, cstdio, ctime. more information here -> [urlhttp://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.4]http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.4[/url]
furthermore, i suggest picking up a good book to learn C++.
The whole secret of existence is to have no fear. Never fear what will become of you, depend on no one. Only the moment you reject all help are you freed.
--Buddha