Originally Posted by
deathninjak0
lol, what book were you reading?
Wrox -Beginning Visual C++ 2010 , AND LOOK AT THIS CRAP!!! THIS IS APPARENTLY TO WRITE TO THE SCREEN!!
Code:
#include "stdafx.h"
#include < iostream >
int _tmain(int argc, _TCHAR* argv[])
{
std::cout < < "Hello world!\n";
return 0;
}
NOW HERE IS WHAT IT SHOULD LOOK LIKE
Code:
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
char f;
cout << "Hello World" << endl;
cin >> f;
return 0;
}
[EDIT]////
****************
OK WTF?!?! I just opened my compiler, and then a similar code appears, but for some stupid reason, it doesn't work with when I do it MANUALLY.... Wtf??
xD This is pathetic