can I use the same coding which I use in turbo c++ in visual c++? I tried but it's not working out properly? I'm new to visual c++
No you will have to make changes. Visual C++ will compile standard cross platform C++ code though. Visual C++ is a whole new C++ like language. Still C++ but with a twist For instance #include "stdafx.h" int _tmain(int argc, _TCHAR* argv[]) { return 0; } is visual c++ console notice the #include "stdafx.h" Is a standard C++ console and will compile with visual C++ and bordland #include <iostream> using namespace std; int main() { cout <<"Hello world"; system("pause"); return 0; }
well here is the main proglem, Visual C++ is an oop language so you should be careful while translating it :D
visual c++ has some different syntax... be careful
Join our real-time social learning platform and learn together with your friends!