Added: 3 years ago
From: antiRTFM
Views: 103,448
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (526)

Sign In or Sign Up now to post a comment!
  • when I add "cin.get()" it fails..

  • Holy crap.Java is so much easier and good looking.

  • how come i got 9 errors when i put the exact same thing with the exact same program?

  • 18 people don't understand english

  • Thanks!

    That was really my first C++ program! (And I only have been playing around with Cool Basic a bit)

    Code::Blocks is (my opinion) the best IDE (the thing that he calls a Compiler) for Linux!

    And thank you once again, you got a subber!

  • mine runs but still closes :( weep

  • LOL He said C PeePee lol.

  • This would be easier in batch. I know with c++ you can add graphics tho, So this is better but with batch it would be

    @echo off

    echo Hello world

    pause>nul

    But ur not teaching batch, ur teaching C++ =)

  • Hello antiRTFM, nice work. I am using VB 2010 Express. I am trying to follow your steps in this tutorial and have openened a Console Application. What I see however is nothing like your 2:45. Instead I got a window saying "Module1.vb". I continued anyway and deleted all the info in the window and typed in "#include..." but it didnt respond like yours when I pressed enter. I got nothing. Help!

  • @tonyisho this is c++ not visual basic

  • lol he said std

  • Help! i got the error : launch failed. Binary not found. (im using Eclipse on a mac)

  • Hy , i need help my visual c++ is in german , how can i change that its making it very difficult for me to understand ..

  • its much easier to make that program in Batch!

  • @MASTERHACKER1111 No shit. but then again, can you make something as kickass as ADOM in batch coding? No. Batch isn't even a programming language It's a script controller for simple jobs.

  • @FearlessThoughts you know what does "J O K E" mean?

  • @MASTERHACKER1111 Next time, try implying that it is a joke, and that it is not meant to be taken seriously.

  • For some reason mine keeps failing and I can't figure out why. In line 13 of the output it says: type is ' ' unknown-type' '

  • @antiRTFM Hey :) You got some good tutorials, but I got an "issue". When I see this tutorial it is easy to make, because I just do what you do. If I should make this without the tutorial I would be completly lost.. How did you manage to learn all this and can remember what to type?.

  • how do we calculate exponents?

  • I feel like a Hacker :D

  • That was fun :D

  • I like using void main() because i dont gotta type return 0;

  • mine says "Hello World!!! Dont mess wit meh!!!!!

  • As far as I know, to keep your .exe file open, another statement, you may use is "getch()". It's the same work!

  • is there a List of commands and what they do somewhere?

  • in Xcode you need to type: std: before you type :cout << "Hello, World!";

  • lmao, "Hwlloe" hahhahaha

    

  • why does my compiler build it as .vcxproj instead of .exe ?

  • You are amazing!

  • I have already subscribed after 3 vids!!!

    Well Done!!

    

  • i have seen 3 vids and have already subscribed!!!

    Great Work!

  • where do you learned C++?

  • You talk alot.. To much.. get to the programming!

  • @MKHunited lol thats why hes spoon feeding you programming knowledge

  • @MKHunited it might seem annoying but it helps lots of people that are trying to learn and are 'noob'

  • Great video!

  • okay so this is good...but i want to LEARN how to make these not copy codes to make a program.....for example i know nothing about what the words mean such as cout or w/e ..hope you understand what im trying to say

  • @jokerscope Yes I have the same opinion.. I know nothing about what the words mean or anything

  • I dont know why, but making this little program drew a smile on my face :D

  • I always wonder how people hack computer?

  • So we can just make programs by typing the computer code language in the commaand promp?

  • It said my project is out of date?

    Im using the 2010 version

  • Comment removed

  • Comment removed

  • COMPILER != IDE .... meaning the IDE created those files for you, NOT the compiler.

  • Can u please zoom out !!

  • Sharing all of your videos on Facebook! good job man!

  • @sascha2495

    I got the same error too.

  • im using microsoft visual c++ and i did it exactly like in this video but i always get this error:

    1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup

    1>C:\Documents and Settings\personal\Mis documentos\Visual Studio 2010\Projects\sasxha\Debug\sas­xha.exe : fatal error LNK1120: 1 unresolved externals

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    someone help me please

  • @sascha2495 meaning you have a "wrong symbol" so read through it carefully and check for the correct symbol and the use and direction of it...

  • It's a huge change from C# which was my first language.

  • where did the Hello world! joke come from? I've never seen a tutorial start without it.

  • @fredark2 Hello world is a generic way of introducing a programming language. It is basic and straight forward. The reason why its "hello world" is due to the concept of the application or code being alive. Wikipedia has a list of "hello world" wrote in every language possible.

  • Does the amount of times you hit Return after typing #include stdafx.h affect anything?

  • @BlastFromYesterday no C++ doesn't pay attention to blank spaces

  • With Xcode Version 3.2.6 , do I just use the generic C++ plug in ? And how do I start the equivelent to the Win32 console application.Didn't see the word console anywhere, what might this be called.

  • Comment removed

  • Thank you soooo much for these videos!

  • Hey! i've just begun using you're videos as an attempt to learn c++ programming language for programming a basic video game. I'd just like to say thank you for starting from the bare minimum as i am an absolute n00b as far as programming goes. Looking forward to continuing to watch you're videos and hopefully learn more! Great video series!

  • thank you this really helped me. i finished the code for my first program. i just made it say "my first project" instead. looking forward to viewing more.

  • When are you starting the fps game programming tutorials?

  • hash is not pound

  • @Lenry1337 The sign can be called hash or pound.

  • @Lenry1337 phone language.... it has multiple names Hash, pound number sign. he used what the most common term is.

  • My document had errors.

  • Code::Blocks works too :D imma use that cuz i cant use anything else

  • @DareonNXbox Code::Blocks is as far as I know not a compiler but a IDE that includes the MinGW compiler.

    This compiler is used a lot so you should be ok. :D

  • @inyourfacesociety :D ok... well i finnally got my other computer working with internet and stuff so i got to be able to install VBC++

  • i can only get 2005... since im on a messed up linux... hopefully its not too diff

  • I'm using 2010 and when at the beginning you had to put pound, I accidentally put an asterisk because they kind of looked the same and I didn't pay attention when you said "Pound." It worked though so thanks.

  • it wont let me put the } at the end of hello world

  • 18 dislikes = failed C++

  • Just wanted t let you know, it wouldn't work unless i put a semicolon before return :/

    why did that happen?

  • @MCtargoon wooow -_- if i just waited 20 secs i would of figured out why.. xD whoops

  • @MCtargoon Because you didnt put the semicolon at the end of cin.get()

  • What does () even mean? or do?

  • @UndeadOnWifi () is called an encapsulation I believe, pretty much it says (whatever is inside of me is grouped together) just like if you were to do a math calculation where you wanted to do addition before multiplication. say you wanted 2+2*2=8 then you would have to do (2+2)*2 because 2+2*2=6...it's grouping just like in math, you'll realize as you learn more that most of programming stems from standard math logic.

  • @DarknessLPs thanks! i was wondering what that meant

  • Hey nice tutorials! :D

    When I type "cout << "Hello world!" ; it say's "cout" is an error why is this?

  • @Teleswagz shouldn't be a quote before cout.

  • @pneumalives there wasn't i was quoting cout i fixed it though ty

  • i could do this but through note pad is faster and easier as well

  • This does work perfectly in Visual C++ 2010. Just make sure that you type everything exacly as he has it.

    This does also work in Visual C++ 2006.

  • Um... Help, please. I'm using Visual Studio C++ 2010 Express, and every time I build the program it closes out of C++. I can run the .exe from the folder, but have to open the compiler again, haha. Any knowledge? I re-installed it once.

  • How do I get microsoft visual studios? :D

  • im getting a name creation failed on my visual ctudio c++ 2010

  • hi, uhm i have visual studio 2010 express, and when i press debug it says like in yours build succeeded 0failed but i get a message saying unable to start program, also, my folder looks completely different...

  • @Starscream1o1 Same with the folder. You may have missed something out somewhere, mine worked fine. By the way register it, its free. Go to Help then register.

  • @wood1996mon when i get out of school in a few weeks i will start making it.

  • I lost my "First Program" virginity here.

  • @BboySpikey so i guess that makes this guy a program whore

  • @zachem66 its the other way around :)

  • @BboySpikey me three

  • i love C++ i am going to make a minecraft clone ones i watch all these video's :D

  • It says "stdafx.h" no such directory.

  • does this work on windows 64 ?

    just pressed debug in microsoft visual c++ 2010 express

    and my folder looks completely diffrent

  • @NERDG0NEWILD same with me, you found a solution yet?

  • for live help

    #cpphelp on irc.mibbit.net, webclient at mibbit.com ;)

  • I just called up my mom because I made my first program :D

  • May I ask why you even include stdafx.h? It does nothing here. :/

  • Yeah! First try! Thank you so much I'm 13 and only I learn one or two programing languages my Father's company is hiring me for a job in programing. It's so fun!

  • this the best teacher ever

  • AHhh im having a problem when compiling :(. it says fatal error C1083: Cannot open include file: 'stdafx.h'!!! can anyone help??????

  • You sir, you are the best teacher i've ever had.

  • MY BRAIN CAN'T HANDLE TEH INFORMATION..AAARGH

  • Woot. badass tutorial.

  • Comment removed

  • I have a question. I am using xcode on the mac and I created this program but when I try to open it like he does in the video, it says unable to open...

    please help :(

  • Comment removed

  • @ThePinkMuffin10 well thats just a matter of opinoin...

  • @ThePinkMuffin10 yes it is c++

  • i hate the sence ou have to do a disk defrag wen you dont really argahrgahrgah

  • Can some1 PLEASE tell me witch version of C++ is he using and where can I torrent it from......or atleast witch version

  • @legokid1593 its the 2010 version and if you search for it online then it should come up with the microsoft website where you can download it from for free

  • hi i love ur tuts

    i started to be interested in c++ a few days ago and now i wanna be an expert so i can even go better when i will study c++ at university

    thnx again :)

  • I have a question. I'm using Bloodshed's Dev-C++ and in order for the cin.get() command to work I have to type it twice:

    cin.get();

    cin.get();

    Anyone know why? If I do it once it just closes.

  • I can't run the EXE "The following components could not be browsed".

  • I advise that new people who start programming start with basic or so and build their way up to C++. Why?

    The same program:

    Print "Hello World!"

    Wait key.

    C++ is GREAT but ya can't walk before ya crawl.

  • @defterade

    It's probably better like that, but is it really necessary?

    I am not a very patient guy, so I went ahead and bought myself a book called

    "Now I'm learning: C++" (I translated that, 'cuz the book i bought is German)

    about two weeks ago.

    And Once you get the basics and watch a few of these videos all you need is practice.

    My first program can convert Fahrenheit into Celcius and vice versa :-D

  • @VirtuousSnake

    you're probably right :) . but all I was saying is that it is easier to start with a more simple language to better understand what (for example: variables, loops and operators) are and what they do. In my case: it helped me understand what certain keywords do and why they are used. but yeah you could also watch awesome tutorials and read books, just the same as I'm doing now... :)

    ow and congrats on your first program. :D

  • @defterade About running before you can walk so to speak, i mostly agree, but sometimes, I think that throwing yourself into the deep end is a good thing, it accelerates learning. Just be sure that before you do that, you can atleast swim.

  • yes, i'm here again... i tried something else... i have an azerty keyboard and like i said, my } key doesn't work in my compiler, but i changed it to qwerty and there it works perfectly but the keys aren't right then so thats pretty anoying too... =(

  • oh yeah, and i just tried to copy paste the } and that does work but i don't gonna paste it every time i must use it, so problem isn't really solved yet...

  • ok... there's somthing really strange in my compiler (microsoft visual studio's 2010), i can't type the } is it possible that my compiler isn't downloaded/installed correctly because i don't know what to do... i have shut down the program already and opened it again and i can type every other sign i want expect the } i tried to run it and i got an error... please help somebody because i really want to learn programming and i can't do that because of this bug thing... :S

  • ur

  • IT WORKED except instead of Hello World! I wrote The Game...i should give this to my friends ;)

  • Nice tutorial, it worked. I didn't get any errors and it closed with any command I typed in along with the enter key. Thanks!

  • When i get to pressing finish (2:40), nothing happens. Therefore, i am forced to close it. What should i do?

  • WOO HOO! I did it! Thank you very much. :)

  • Comment removed

  • Comment removed

  • To anyone trying to do this on a Mac, use CodeBlocks, not XCode Tools.

  • "Console" as in "conman", not "console[-ation]'

  • Mad errors, dude. I give up.

  • Something with one less character, you could just include ostream....

  • Hwllo world? Really?

  • sorry i keep getting automation server can't create object error every-time i try to create a new object

  • Do I have to remember all the code that would be used?

    cuz I'm not smart enough to remember all the things... :(

  • @AndrewAnn217

    Yes. That and much more.

    On the bright side, you will later understand what the code is and what it's for and what is missing if you get an error, so it won't be as cryptic.

  • i did everythign and i got erorr !!!

  • @khafgalroo73bood Then obviously you didnt do everything.

  • Haha. This is how i started programming, when i was a totally noob. Now i'm learning a 2D library in C++ for making games ofcourse. Thanks dude, you rock.

  • Hey I see there are a few jokers on the comments thet have the attitude you were talking about. You can spoon feed me all you want as I am a complete noob. lol

    I was reading a site that helps you with the basics and was going through the exact same as you are now. at least this way I can watch and learn istead of following a paper book. Thank you as there are a lot of greatfull people out there that are watching and may not comment.

  • @EvilDxtreme I agree man, Im subscribing hehe :D

  • on anoher tut it said you should always use cin like this " cin >> ........." and im wondeing why you din't and yet it still works although the other tut didn't? can someone message me and explain?

  • So Microsoft visual C++ 2010 express is as good for game programming as any other version of C++ or programming language for that matter?

  • @EtienneLF VIsual c++ 2010 is just a program that's used to edit and compile c++, so there's no difference. C languages are also best for game programming

  • I don't understand how you convert the .cpp file into .exe. I've debugged and executed the program successfully but I'm having trouble finding it. I'd appreciate any help someone could give me.

  • @DeathEagle97 You should look in the folder where your IDE ( or has he calls it Compiler ( thats by the way wrong ) ) is installed. If you saved your programm in a subfolder ( the IDE or has he says compiler askes you where to save it, as soon as you create a project ), then open the subfolder and look for the exe.

    It should be there.

  • I just typed this code and it says I got "error C2001 : newline in constant" I'm new so I don't really understand much of this.

  • @DeathEagle97 What Compiler ( actually IDE) are you using ? I have NEVER heared of this kind of error.

  • How do I know exactly at what line to type the code?

  • @DeathEagle97 It doesnt matter, you can type your code whereever you want to.

    You can type include in line 1, 2,3,4,--- no matter.

    But all the functions have to stand in the main function (there are others too, but for now you should just follow that rule) between the int main(){ ->here is the code<- }

  • how did you learn c++ language

    

  • you background is so cool.

    it spells C++ :D

  • thanking you man :DD

  • my first program :D i'm so proud :D:D

  • I created F*** World :D

  • I WIN

  • really nice tutorials man!

    i actually got a error at the "return" and the correcting engine said "expected ';' before return" but anyways i fixed it because of that "C++ spelling correction" but you did not get any errors and that sound odd to me though...

  • @ormkiller Then you forgot a semicolon.

    It has to look like this : cout<<"Hello World!"; <----Semicolon ! Dont forget these.

    Also : return 0;<---Semicolon!

  • wait... buddy... more than programming.. if you are writing for noob.. you should tell what iostream means or what is the difference between semicolon or parenthesis many other things..

  • wait... buddy... more than programming.. if you are writing for noob.. you should tell what iostream means or what is the difference between semicolon or parethesis many other things..

  • thank you so much for this tutorial, you´re the best!!

  • ok this is al nice and good tutorial but are u not going to explain what al the codes are and means bcuz im now watching and its al good but i dont understand al the codes u just typed iostream etc etc..

  • lol you do better at explaining this than my C++ lecturer in my uni

  • really good job for a hello world... if you guys want to know a different way to type cin.get() try using system("pause"); although that might not be as useful in the long run.

  • Thanks for the tutorial! Helped me get started. I know Java but not the syntax of C++. Cheers!

  • I couldn't do it because i didn't have stdafx.h so it wouldn't build....

  • @rapidrush1

    you need stdafx.h JUST for visual studio... For any other compiler you dont need that line... just like he said..

  • lol that was funny when you failed and opened it in VS. Good tuts btw.

  • @FEARLORD1000 its a tutorial....

    you are either retarded or a troll whos retarded.