d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Wtf?! > Visual C++
Add Reply New Topic New Poll
Member
Posts: 1,066
Joined: Nov 24 2013
Gold: 1,405.00
Nov 16 2014 04:34am
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
Member
Posts: 23,862
Joined: Aug 16 2006
Gold: 20.00
Nov 16 2014 04:36am
what error are you getting exactly?

what IDE and version are you using?

how are you compiling/building?
Member
Posts: 1,066
Joined: Nov 24 2013
Gold: 1,405.00
Nov 16 2014 04:39am
that
Edit/
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Nov 16 2014 07:52am
1> Add directive to 'StdAfx.h' or rebuild precompiled header
Member
Posts: 5
Joined: Nov 16 2014
Gold: 0.00
Nov 16 2014 08:07am
wow very cooool!!!
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Nov 16 2014 09:25am
Quote (Bloodarrow42 @ Nov 16 2014 06:07am)
wow very cooool!!!

obvious multi couldn't be more obvious
Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Nov 17 2014 06:36pm
Quote (SelfTaught @ 16 Nov 2014 10:25)
obvious multi couldn't be more obvious


You have the eyes of a hawk and the perception of detective sir. :P

This post was edited by NinjaSushi2 on Nov 17 2014 06:36pm
Member
Posts: 1,358
Joined: Dec 30 2012
Gold: 0.10
Nov 17 2014 10:23pm
Quote (NinjaSushi2 @ Nov 17 2014 04:36pm)
You have the eyes of a hawk and the perception of detective sir. :P


Member
Posts: 35,456
Joined: Jan 25 2009
Gold: 1,173.00
Nov 18 2014 04:45pm
Quote (SelfTaught @ 17 Nov 2014 23:23)
http://i.thevoid.cc/memes/lol/interwebzdetective.jpg


Shit dude. Funion is a fucking internet detective. I remember him tracking down HulaHoopChick's "pictures" and actually finding the person whom they belonged to. Then got her to take a picture with a sign in it regarding "hulahoopmoron". hahah He did that and many other things.
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll