Resources to Write ANSI C++ Code -


the last time heavily used c++ years ago, , strictly done on windows platform. specifically, used microsoft visual studio ide , developed habitual patterns use microsoft's c++ version. example, used void main() instead of standard int main().

now, taking class required develop programs ansi c++ compliant , code compiled using g++. learned system ( "pause" ) not work in g++ , microsoft thing.

does know of resources ( sites, tutorials, books ) can learn more better ansi c++ complaint?

thank you.

i highly recommend these two:

granted, both not terribly great if want tutorial introduction c++, looks know c++, , need learn more, , correct bad habits. personal experience, above 2 highly useful in doing that.

about comp.lang.c++, make sure read faq , lurk there while before posting. same applies stackoverflow of course, although lurking may not necessary here.

using g++, compile programs g++ -ansi -pedantic -wall -wextra -weffc++, , make sure understand warnings. use:

g++ -wextra -wall -weffc++ -ansi -pedantic -woverloaded-virtual \ -wcast-align -wpointer-arith 

Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -