September 3rd, 2003, 03:16 PM
Confused about MS VC++ .net
I posted earlier about buying VC++ .net 2003 standard. Well I installed it last night, and typed in some code that works in my free dev-c++ compiler. the code is as follows:
std::cout << "Hello.\n";
std::cout << "The product of 1250 and 8 is : " << 1250 * 8 << " ";
Now it compiles and works as intended with Dev-C++. Now, I copy and past the same code into VC++ .net 2003 and it fails, wont even build.
To get it to work I had to change the header to <stdafx> I have no idea what it does, or why it works when i do that. I only tried putting it in my code becuase it was displayed under header files.
What I want to know is why cant I use IOSTREAM headers in VC++?
I asked someone I know, who has some knowledge in coding, and he said the program I bought (Visual C++ .net standard 2003) is a different language then regular c++ and that it focuses more on C# hence the .net. He said that the program I have is meant for web development...
He recommended Visual Studio, which according to him comes with C++, BASIC, and Foxpro...
I dont want to develop for the web, I want to make programs and learn regular C++...does any Microsoft compilers use just plain c++ ?
Thanks for any help.
Last edited by Bohh; September 3rd, 2003 at 03:30 PM.
September 4th, 2003, 08:48 PM
September 5th, 2003, 03:40 AM
you program can compile and run ok in vc.net
must create a windows consol program.
September 5th, 2003, 04:31 PM
Yes, I did creat a win32 console program... what I wanted to know is why can't it use the iosteam header
September 5th, 2003, 05:49 PM
You can use what you bought for "normal C++". It's actually a really good IDE too. Just go to file->new, win app, console app, empty project, then add a new .cpp file.
September 5th, 2003, 06:03 PM
movEAX_444 is correct. it is a bit confusing at first, but if you follow his steps it will work. also might consider:
using namespace std;
September 6th, 2003, 02:27 AM
just a empty project will work without stdafx.h.
if not ,you would change the compiling command.