Hey, ive just joined the network, i stated using visual studio 6 c++ , and began learning the basics like the beginners hello world console application and learning basic structure on coding. then my firend told me to scrap VS6c++ and use the Visual Studio c++ express 2005, and the compiler doesnt understand c++ coding, so i type in the basics to just recap,
//blah blah
#include <iostream.h>
int main() {
//blah blah
cout << "Hello, World!" << endl;
return 0;
}
typing this in doesnt work, its now as so
#include "stdafx.h"
int
_tmain(int argc, _TCHAR* argv[]){
char source[] = "Hello world!";char
destination[20] = { 0 }; return 0;}
since im new to this, can anyone give me links to visual studio express c++ 2005 tutorials, or can you help me,

Im new, need overview
DingW
ImpureEvil
#include <stdafx.h> // Just try to pretend that this line isn't here
#include <iostream> // iostream.h is no longer supported
int main()
{
std::cout << "Hello World" << std::endl;
}
It is unfortunate that the project system requires stdafx.h but the alternative, working out how to disable pre-compiled headers appears to be difficult to find/explain, so I have decided that the easiest solution is just to leave it there.
The old iostream header file, iostream.h, is no longer supported: you need to use the C++ Standard version, iostream, one side effect of this change is that the contents of the header file are now, correctly, in the std namespace.
vitty
Btw is
std::cout << "Hello World" << std::endl;
like the new way of saying
cout << "Hello World << ; endl
you just include the std:: bits
intelligentidiot
FrankEvans
Yes: the two are equivalent:
You can also do:
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
}
Bill52
Don't worry about the new syntax we have added to support C++/CLI you don't need to use it write Standard C++ programs.
Amol Gholap
hbcondo
Matt_Garven
timay