Code::Block vs Visual C++
Basic Coding Differences Code::Blocks Visual C++U “stdafx.h” not recognized Uses int main() (may include environment variables) #include “stdafx.h” Uses int _tmain(int argc, _TCHAR* argv[]) (may be changed to int main() )
Sample Visual C++ code #include "stdafx.h" #include <iostream> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { cout << "Press <ENTER> to continue" << endl; cin.get(); return 0; } // End of int _tmain(int argc, _TCHAR* argv[])
Sample Code::Blocks code #include <iostream> using namespace std; int main() { cout << "Press <ENTER> to continue" << endl; cin.get(); return 0; } // End of main()
Other Programming Issues None Observed to this point