Presentation is loading. Please wait.

Presentation is loading. Please wait.

Code::Block vs Visual C++

Similar presentations


Presentation on theme: "Code::Block vs Visual C++"— Presentation transcript:

1 Code::Block vs Visual C++

2 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() )

3 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[])

4 Sample Code::Blocks code
#include <iostream> using namespace std; int main() { cout << "Press <ENTER> to continue" << endl; cin.get(); return 0; } // End of main()

5 Other Programming Issues
None Observed to this point


Download ppt "Code::Block vs Visual C++"

Similar presentations


Ads by Google