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:
- comp.lang.c++ usenet newsgroup. if can hold of usenet service provider, , use news reader, should able rid of spam. use eternal-september.org, , lot.
- read c++ faq. has lot of great information.
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
Post a Comment