Download presentation
Presentation is loading. Please wait.
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.