you must be kidding!!!?? this supposed to be tutorail?!! if this would be tutorial, it would be for people who are new in c++, and those peple have to slow rewind this video so fucking many times!!! this isnt tutorail fucking faag!!
@rajnine make sure it's an empty project - meaning you don't use precompiled headers. There's nothing to declare in this program. So the precompiled header is my best guess :)
Hi, when i try to compile, I went to debug -> set new instance, and when it complies it gives me the build error that it is not able to find the helloworld.exe file. Where am I suppose to get this file?
I have a problem...whenever I run the compiled source, the command windows opens for half a sec and then closes. It shouldn't close like it is on the video right?
I got a thing saying I have "build errors". I know it's something with the programming but I have no idea what it is. I am a total beginner with programming, so I dont know what does what. Any tips/advice?
Ah no, hello world is the name of a simple usually first program. Hello world programs could be a introduction to opengl, to the Win32 API or in this case to console C++.
Can't mess up the comp. However its not recommended, its lazy and inappropriate. And wayy too drastic, asking for input is a better way. getch(); or simply ask for input with cin.
i got this all done but when i run the program it doesnt say hello world...it just says press any button to continue...i dont think it understands the cout comand..pleeeaaazzz help
2. In the window there should be three folders under your document, Header files, source files, and resource files. Right click on source files Add>New Item. Name and save your file "filename.cpp." **Make sure you choose C++ file** That should fix it.
I just downloaded VC++ 2008. I keep getting the error that the compiler can't find iostream.h... Do I need to do something with the header paths? Please reply... Thanks.
Books can only take you so far. And it depends what you want to program too. However just for learning generic C++ some good books are C++ Primer, Effective C++, and if you really wanna start off easy and get a base, get some book like learn C++ in 21 days. Then you can move on from that to primer and effective C++.
Ok, thanks for your reply. Ive just been trying to learn a few things about it. My friend is 14 and hes made 44k. Ive learned alot from him about it too. i still have alot of resurch to do though.
Im a noob, because you cant understand it? Well i guess thats your opinion. But if you actually wanted to learn you could have PM'ed me and I could have explained line by line. But thats using common sense which I see you don't have.
ok i created the program, question: does every program have its own code? and if so how do i create my own? and also, sure i followed your steps and it worked, but i dont know what i did, not very helpfull.
Yea, you have to buy a book or take a comp sci course or read over tutorials on the net to under stand. Some of it you can pick out logically like iostream you can think of as input output stream. Its a header file which allows you to use such functions as cout which output text and cin which is used for inputting text. endl means endline.
hey thanks man but i have one question i made a code compiled and all that when i want to run it when not in cmd but right from the app i made it is spose to tell me enter a celsius temp and i do but when i hit enter it closes without leaving me time to see what the answer is how can i stop that?
this isn't much of a tutorial the point of a tutorial is to teach them how to do it and describe a bit about waht there doing this is just doing it for them
I get a "This project is out of date" messege then I get a "The system can not find the file specified" any advise? any one else have this problem? please fill me in on what I can do. thanks
because its doing what its programmed to do and going away then, if you want it to stay you can do system("PAUSE"); but thats very drastic and i wouldent reccomened it, cin.get(); i find much better.
If you use system("pause") in alot of programs and you dont want it to say Press any key to continue then type system("Pause>nul") instead and it wont say press any key to continue because system(" ") just invokes MS-DOS commands
Hey, I need help I'm using DEV C++ compiler, and I have an error, I think it might have to do with what I saved it as or something in that sort, Could someone Please help me. Write me a message and maybe we can chat on Msn or something like that, Thanks! Write me back!
while the system{"PAUSE") is bad practice because it's not portable. While on a Windows system it will pause the execution, there's no telling what will happen on another OS, if anything at all.
return 0; and return(0) are the same exact thing.
lastly, printf is C, not C++. It will compile, but it is bad practice.
sorry for such a long delay, but i use camtasia studio 4 as well, but all my videos are crapy quality, and thanks, if you ever do dat tut plz message me up.
hey, IMattNovaki why dont you try to make a tutorial on GUI "hello world." most users know the simple command line stuff, but most dont know GUI, and i am real disappointed in that. Especially if you have an automated tool to make half the templates! i think that will help alot of these users on here. i would have done that myself if i had the right tools to do so. (recording equiment!) what exactly did u use to record this? great recording btw. really liked it.
it's way quicker to make this from the command prompt
VegasTamborini 3 days ago
thanks for help
MrDouglascristian 5 days ago
music is also good..
pcbbhn 2 weeks ago
thanks for help
pcbbhn 2 weeks ago
for this to be a tut u should explain what ur doing
zigui98 1 month ago
Thank you, thank you!!!!
mother134 4 months ago
you must be kidding!!!?? this supposed to be tutorail?!! if this would be tutorial, it would be for people who are new in c++, and those peple have to slow rewind this video so fucking many times!!! this isnt tutorail fucking faag!!
08link 5 months ago
@08link lol its slow enough. you can just pause the video whenever you want.
crschain 1 month ago
doesnt work
cheesedude31 8 months ago
all that work just for "Hello World" vfnsrgvndg >.<
-.-
Alliaaa 8 months ago
What version is that?
decus69 1 year ago
Thanks for starting me out, Now im gonna recreate frogger.
TheHappyWhaleshark 1 year ago 3
AprideTV2 the int main() function does not need return 0.
But only that function.
JOTTABYTE 1 year ago
i keep getting an error saying like half my stuff is undeclared identifiers
rajnine 1 year ago
@rajnine make sure it's an empty project - meaning you don't use precompiled headers. There's nothing to declare in this program. So the precompiled header is my best guess :)
njoker555 1 year ago
fatal error LNK1120: 1 unresolved externals
It doesn't create the .exe file. I'm spinning around this, wth is wrong?
lupi303 1 year ago
@lupi303 you should start with an empty project if you haven't already. That leads to the most unresolved external errors.
njoker555 1 year ago
Muy bueno man :D
PeTr0nUs 1 year ago
I'm getting this error with visual studio 2010, "project creation failed" i've tried the registry fix but it doesn't work, any other solutions? :S
Claymore2408 1 year ago
Nice!!!!thanks
kalanadissanayake7 1 year ago
yall need to add ; before the return .. ;return(0)
APrideTV 1 year ago
Sure, now i did this. But i didnt learn anything from it, i just copied him!
Keevz13 1 year ago
I get 9 errors and cant compile, using visual basic express 2005
mikatarkela89 1 year ago
@mikatarkela89 C++ in Visual Basic? Am i the only one that sees a problem here?
googleeaterwoot 1 year ago
@goldrun1
C++ code........ never say that to a c programmer
razor1998 1 year ago
yes 12 and i have already done my first c++ program
codecvr12 1 year ago
@codecvr12
great work ! when i was 12 i made little console games u make them
razor1998 1 year ago
Hi, when i try to compile, I went to debug -> set new instance, and when it complies it gives me the build error that it is not able to find the helloworld.exe file. Where am I suppose to get this file?
jet2004 1 year ago
thank\s! I tried a few other hello worlds, but yours is the only one that works!
cdewberrygmail 1 year ago
great !
MaxRoudriges 1 year ago
1>LINK : error LNK2001: unresolved external symbol _mainCRTStartup
1>c:\users\doom11\documents\visual studio 2010\Projects\TEST_HELLOWORD!\Debug\TEST.exe : fatal error LNK1120: 1 unresolved externals
What the heck is going on?
misdirectionx 1 year ago
you need to make a console application
razor1998 1 year ago
great song. what it is?
Lolersik87 1 year ago
can i have song name please?
nvidious1 1 year ago
you should use cin.get() instead of system("PAUSE")
etpmatt 1 year ago
@etpmatt
use. cin.get() it is by far better than system("PAUSE");
IMattNovakI 1 year ago
What version of visual studio is this?
jaeshim1 1 year ago
Thanks a lot for posting this. That was very useful!
gokul0801 2 years ago
whats name has the song?
Sorry for bad english --> german :P
MarkoderXVI 2 years ago
cheers,
music quality distracted me a bit lol!
tim4rd2000 2 years ago
thanks a ton man. I was stuck.
SpontaneousCreations 2 years ago
hey! thank you XDD!!
orrala 2 years ago
xD
+100500
SluTerNopil 2 years ago
My says error cannot find file specidied so bad of c++ i hate it every application i make it says that shit plz any1 who can solve it im sick of this
nawazsucks 2 years ago
@nawazsucks
use dev c++ its a compiler
razor1998 1 year ago
Comment removed
bugkidd 2 years ago
hmm ...
Visual Studio says:
The program '[3340] Hello World.exe: Native' has exited with code 0 (0x0).
was soll ich tun? helft mir bitte
danke im vorraus^^
TitanIHuhn 2 years ago
@TitanIHuhn press ctrl F5
belligerentwarrior 2 years ago
Epic Music! xD
joeyc2410 2 years ago
worked for me :)
DJcrossPT 2 years ago
dude loose the gay music pls
chris03653837 2 years ago
lol change the Cout << to says "Thank you virus installed" then send the complie .exe to your unsuspecting friends for a joke.
imperialcrypt 2 years ago 2
..wait probably bad idea as they would freak out if they are not computer savvy.
imperialcrypt 2 years ago
Hi, does somebody knows how i can solve this problem.
When i press debug it comes up a warning and says (can't find the file, can't find the program) and so on.
I have MS visual studio 2008 express.
TheSmilys 2 years ago
it didn't work for me either
visualbasicmm 2 years ago
I have a problem...whenever I run the compiled source, the command windows opens for half a sec and then closes. It shouldn't close like it is on the video right?
crashgangster 2 years ago
Add system("PAUSE"); before return 0;
Flystand 2 years ago
type system("PAUSE");
TMan7997 2 years ago
did you put pause?
lahmamamia 2 years ago
thank you very much.
I am doing the hello project for my c++ class, and when i installed it i could not locate it anywhere!
Thanks for getting me started! :D
CJSprinkle1 2 years ago
hey man, i dont get the resource folder
vpklotar 2 years ago
This is a operating system a Linux Kubuntu.
Libir555 2 years ago
You use Kubuntu?
dudeboy524 2 years ago
THIS SONG OH MY GOD
Uraniummoon 2 years ago
what? its like a echo "$txt='lol'";?
klaca75 2 years ago
CREDIT TO "JUAN SOULIE" stop ripping off peoples work, at least give this guy some credit for coming up with this tutorial...
RawrLukehx 2 years ago
Help! I've gotten a build error here!
1>Project : error PRJ0003 : Error spawning 'rc.exe'.
Is the error I get! Any advice?
PokenerdAnimator 2 years ago
It must be some error in coding.I m a noob in C++ but get used to these errors.
Just revise your code, some semicolon, coma may be missing.
thehumanofthisworld 2 years ago
It's been solved. My spysweeper removed the compiler because it thought it was malware :P
Replaced the compiler and the code now works.
PokenerdAnimator 2 years ago
system pause failsss :D
galaris 2 years ago
Great tutorial. Simple question though: What does changing it from Unicode to multi-byte do? Thank you.
xstream82 2 years ago
nice post! thank you
venetiandealer 2 years ago
I got a thing saying I have "build errors". I know it's something with the programming but I have no idea what it is. I am a total beginner with programming, so I dont know what does what. Any tips/advice?
tripledarkness18 2 years ago
A build error is when it cant compile because there are errors in your code or project.
Tell us what the build errors are,
IMattNovakI 2 years ago
@tripledarkness18
tips eh??
Google c++ tutorial, up should come a website called: cplusplus
im using it now, good luck
chinnerz2 1 year ago
This isn't Hello World!! This is a Console Applikation!! You must write the orginal "Hello World" Programm in a emty Project!!!
Freak200002 2 years ago
Ah no, hello world is the name of a simple usually first program. Hello world programs could be a introduction to opengl, to the Win32 API or in this case to console C++.
IMattNovakI 2 years ago
How do u go from the code in the video to a real program like itunes that is on you desktop???
xxxJoser831xxx 2 years ago
And i am writing it in a empty project if you actually watched the video.
IMattNovakI 2 years ago
Should I start making tutorials again? ive learned quite a bit in the last while.
IMattNovakI 2 years ago
Great tut =)
Stay making tuts! Your the best =)
thefifthgate 2 years ago
people,dont use the system ("pause")
it can mess up the comp
DARKlilution 2 years ago
Can't mess up the comp. However its not recommended, its lazy and inappropriate. And wayy too drastic, asking for input is a better way. getch(); or simply ask for input with cin.
IMattNovakI 2 years ago
Thanks.
Works very well in VS 2005 Std Edition.
Hit 10 different C++ Hello World tutorials and none of them showed how to setup the project, which if you don't do that, this will never work....
Thanks again!
AlexKrycek411 2 years ago
Really thanks~
I have studied C before
The IDE that I used are VERY SIMPLE
I do not know how to COMPILE using Visual C++....
I have spent an hour to investigate but still no use.....
NOW, at least, I can excute Hello World
likitty14 2 years ago
if you do it in bat you have just to enter
echo "Hello World"
pause
XD
Vincintosh 2 years ago
LOL, true, but then its not in C. But yes, if you just wanna relay text back to you (i do it for hours, its fun, lol jk) then echo works great .
IMattNovakI 2 years ago
open notepad and type:
@echo off
echo Hello World
pause
Save it as *.bat (put any name for *)
run it and you see the same thing
ecentrino 2 years ago
It doesnt work...just says there are build errors...
and how come it looks like a notepad like program when it runs instead of the normal form apearance
Grishnahk4 2 years ago
tyvm for this. I am so used to Dev-C++ that I couldn't even get cout to work! Silly me
FyerEgg 3 years ago
Guys before making any silly comments just make sure u did EVERYTHING right the semi colons and all....
theman1860 3 years ago
it didnt work
krazygamer999 3 years ago
This tutorial pwnd...
mynameinc 3 years ago
i got this all done but when i run the program it doesnt say hello world...it just says press any button to continue...i dont think it understands the cout comand..pleeeaaazzz help
freakyanimeist 3 years ago
works. helped me a lot thanks!
Overcrook65 3 years ago
OMG! Thnkz, working, great start =)
Bobany 3 years ago
I get this error: Did you forget to add '#include "stdafx.h"' to your source?
Don't work in Visual C++ 2008 Express in console mode
rhomis 3 years ago
For anyone ion the future do the following
1. Click view>solution explorer
2. In the window there should be three folders under your document, Header files, source files, and resource files. Right click on source files Add>New Item. Name and save your file "filename.cpp." **Make sure you choose C++ file** That should fix it.
ccaa6732 3 years ago
The perfect way to start a project! One of my favorite c++ videos! Oh yeah, this works!
takingyourtime 3 years ago
did not work!!!
augis1996 3 years ago
thnaks it help me a lot to use the c++ compiler .. thanks again
ernestosharp 3 years ago
I just downloaded VC++ 2008. I keep getting the error that the compiler can't find iostream.h... Do I need to do something with the header paths? Please reply... Thanks.
bubu600b2 3 years ago
It's iostream and not iostream.h in modern C++ compilers, unlike TurboC, etc. Hope that helps :)
UcchaDarBabeNanakDa 3 years ago
thx, very useful tutorial!
VoilaCo 3 years ago
ok, thanks im just trying to lay a foundation, and get a basic knowlage of C++.
zhntech09 3 years ago
and bwt, what would be the best book for beginners? keep in mind i know nuthing about C++.
zhntech09 3 years ago
Books can only take you so far. And it depends what you want to program too. However just for learning generic C++ some good books are C++ Primer, Effective C++, and if you really wanna start off easy and get a base, get some book like learn C++ in 21 days. Then you can move on from that to primer and effective C++.
IMattNovakI 3 years ago
Ok, thanks for your reply. Ive just been trying to learn a few things about it. My friend is 14 and hes made 44k. Ive learned alot from him about it too. i still have alot of resurch to do though.
zhntech09 3 years ago
Im a noob, because you cant understand it? Well i guess thats your opinion. But if you actually wanted to learn you could have PM'ed me and I could have explained line by line. But thats using common sense which I see you don't have.
IMattNovakI 3 years ago
ok i created the program, question: does every program have its own code? and if so how do i create my own? and also, sure i followed your steps and it worked, but i dont know what i did, not very helpfull.
zhntech09 3 years ago
Yea, you have to buy a book or take a comp sci course or read over tutorials on the net to under stand. Some of it you can pick out logically like iostream you can think of as input output stream. Its a header file which allows you to use such functions as cout which output text and cin which is used for inputting text. endl means endline.
IMattNovakI 3 years ago
I really don't think theres much in these couple lines of code that you cant figure out from running the application and experimenting a bit.
IMattNovakI 3 years ago
hey I have a problem in visual C++ that I just can't fix: after I write the program, it doesnt compile it! there is a message saying:
general error c10100b1: Failed to load file "..\Debug\gral.exe". The system cannot find the path specified.
how do I solve this?
trr12 3 years ago
Thanks it worked like a charm :3
GotCowZ 3 years ago
This has been flagged as spam show
hey thanks man but i have one question i made a code compiled and all that when i want to run it when not in cmd but right from the app i made it is spose to tell me enter a celsius temp and i do but when i hit enter it closes without leaving me time to see what the answer is how can i stop that?
kotahlicious 3 years ago
this isn't much of a tutorial the point of a tutorial is to teach them how to do it and describe a bit about waht there doing this is just doing it for them
mager1794 3 years ago
Help!
I get a "This project is out of date" messege then I get a "The system can not find the file specified" any advise? any one else have this problem? please fill me in on what I can do. thanks
WilldowProductions 3 years ago
u mean like on a different operating system?
UTFan824 3 years ago
it worked but then they cmd window wont stay or pause why??? cmd came up for like a sec then exited
disom2k6 3 years ago
because its doing what its programmed to do and going away then, if you want it to stay you can do system("PAUSE"); but thats very drastic and i wouldent reccomened it, cin.get(); i find much better.
IMattNovakI 3 years ago
can u create c++ files with it?
juju90zjj 3 years ago
Hey I have an improvement for this program
If you use system("pause") in alot of programs and you dont want it to say Press any key to continue then type system("Pause>nul") instead and it wont say press any key to continue because system(" ") just invokes MS-DOS commands
UTFan824 3 years ago
Thank you for adding that. Im sure it will help people out.
IMattNovakI 3 years ago
I logged in just to say thanks for the entertaining edumacation. ps. do you work for obsidian?
toweliegfg 3 years ago
No, I do not work for obsidian.
IMattNovakI 3 years ago
tainted love - soft cell hear that its own!
OlloX3 3 years ago
C++ can be used to do just about anything you want in the world...
flybyproxy 3 years ago
This is more interesting then church. It worked great with vs2008. How can I do this with c instead of c++?
reverendBlingBling 4 years ago
I got it just change .cpp to .c and it works for C language Thx.
reverendBlingBling 4 years ago
still not work
ianlondeo 4 years ago
n/m after a mistake, intead of retrying to "build solution" again had to "rebuild solution".
ianlondeo 4 years ago
Its totaly the best vid of all!
The Prog visual 2005...can i download that for free?
And does that matter if i use visual C++ 2008?
bleulern 4 years ago
5/5 !!!! also on favorites! great keep it up! XD
Roguepwnz 4 years ago
Wow, Nevermind. This is the BEST guide for C++ that I have seen yet. Perfect! 5/5 and favorited!
HackingGuru 4 years ago
Hey, I need help I'm using DEV C++ compiler, and I have an error, I think it might have to do with what I saved it as or something in that sort, Could someone Please help me. Write me a message and maybe we can chat on Msn or something like that, Thanks! Write me back!
HackingGuru 4 years ago
That's great, so clear. Why don't other tutorials just zoom in???
tytanium02 4 years ago
Lol no its the cout and Printf ist the sam in this ways if you write "cout" or "printf" it will do what you ahven write XD
Cheating4life 4 years ago
while the system{"PAUSE") is bad practice because it's not portable. While on a Windows system it will pause the execution, there's no telling what will happen on another OS, if anything at all.
return 0; and return(0) are the same exact thing.
lastly, printf is C, not C++. It will compile, but it is bad practice.
nemesisrobot 4 years ago
awful music
DragonSGA 4 years ago
WAY KOOL TY
Domintroll 4 years ago
visual basic is muuuuuuch better
aydo1994 4 years ago 2
vb isn't better... its just more simple.
vb = for little kids/ignorant people
c++ = people who want to get their shit done
supermburu 4 years ago
aydo1994 you do know that every software in the market is probably made on C++ or simmilar.
It is because C lets you do everything. VBasic not.
robertosexar 4 years ago
i did all u made and what do i have to do now ?!
aydo1994 4 years ago
A source file in an uncompiled file; like a C++ source file is your code that hasn't been through
a c++ compiler.
Onlymepa 4 years ago
How do i create a source file?
45snipe54 4 years ago
Right click on the folder named source in your project and "New Item" in Visual Studio.
ajm114 4 years ago
Thanks!
Abijah7 4 years ago
what about getch?
killemall2006 4 years ago
NO. Even if you hadn't used return(0); instead of the correct return 0; I'd know you were a noob because of this:
system("PAUSE");
Numerr23 4 years ago
isn't there a C++ video like this only they make a windows application? (not a console)
mierzhen 4 years ago
narration.....................
halo3d 4 years ago
Thx,and i want to ask,What is the screen recorder to recorder this movie.I hope you can tell me.
wongswongswongs 4 years ago
Camtasia studio
IMattNovakI 4 years ago
but why it can do the magnify funtion.
How to do it?
wongswongswongs 4 years ago
Thx
TwistedTiger07 4 years ago
this actually looks easier than Lua
camul3 4 years ago
there's no diference, just 2 ways of doing the same thing.
ShadeCS 4 years ago
Thanks, But this code is very simple, I wanna see more complication code.
snnexp 4 years ago
sorry for such a long delay, but i use camtasia studio 4 as well, but all my videos are crapy quality, and thanks, if you ever do dat tut plz message me up.
ebrizzlez 4 years ago
hey, IMattNovaki why dont you try to make a tutorial on GUI "hello world." most users know the simple command line stuff, but most dont know GUI, and i am real disappointed in that. Especially if you have an automated tool to make half the templates! i think that will help alot of these users on here. i would have done that myself if i had the right tools to do so. (recording equiment!) what exactly did u use to record this? great recording btw. really liked it.
ebrizzlez 4 years ago
I used camtasia studio 4 to record it and on your request ill make a hello world gui/MFC & Win32 tutorial. Ill probably do it this weekend.
IMattNovakI 4 years ago
The difference is, you dont need to type std:: again and again when you are using cout or cin more than once.
There is no other difference.
firehawk86 5 years ago
To be honest i dont kno. But i use 'using namespace std' because thats what visual studio 2005 seems to like. =)
IMattNovakI 5 years ago
great tuto .. but do some voice overs next time
turoid2 5 years ago
please go into detail thats kinda hard to follow for a beginner.. like me :)
H3114U 5 years ago
If you want a specific C++ tutorial, tell me and ill get right on it. Just dont make it stupid.
IMattNovakI 5 years ago