Im just trying to write the first program "Hello world" and it always gives me the same error. does not even try to open the cmd console.
here is the code...
Code
#include <iostream>
int main() {
std::cout << "Hello World!" << std::endl;
std::cin.get();
return 0;
}
I named the project fuck... so yeah... 1>------ Build started: Project: fuck, Configuration: Debug Win32 ------
1> stdafx.cpp
1> fuck.cpp
1>c:\users\brian\documents\visual studio 2010\projects\fuck\fuck\fuck.cpp(4): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\brian\documents\visual studio 2010\projects\fuck\fuck\fuck.cpp(11): fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "StdAfx.h"' to your source?
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
It's telling me some thing is wrong with line 4 and 12?Code
// fuck.cpp : Defines the entry point for the console application.
//
#include <iostream>
int main() {
std::cout << "Hello World!" << std::endl;
std::cin.get();
return 0;
}
This post was edited by Psychoticgamer94 on Nov 16 2014 04:41am