Added: 4 years ago
From: DailyHacker
Views: 46,284
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (69)

Sign In or Sign Up now to post a comment!
  • Best tutorial ever, I have seen many other tutorials but this is the best

    *subs*

  • THANK YOU IT WORKS :DDD

  • system("pause") is not good use for this example. Better cin.get(); Sometimes you must write cin.get();  cin.get();

  • why do you use "iostream.h"?

    "iostream" itself works perfectly fine..

  • @Doomfussel How so?

  • I find the best comiler for c++ is Dev-C++

    It's very compatible and it has a clean interface. You can change the font and size of the code in the IDE too!

  • i wonder what i did wrong is said theirs something illegal

  • If you download Microsofts programs they install a windows activation key that makes sure your registered with them (to prevent piracy and it gives you 30 days to enter in the key) if you lost that code then your locked out of your pc for ever untill you enter in a key. So incase you dont have that key and are not registered dont download c++ from windows

  • it's really helpful

  • i hit compile and is says. "can not find the file specified.

  • same. annoying.

  • de grande ajuda ! valeu

  • come have a look at my C++ lessons

  • Erm i wna make a dll file for a game i play, Lol

    I wna make hacks like other people, basically stuff like godmode, lawnmower and massivemower it would be cool to know this stuff

  • You play Gunz, hence the name and the hacks; lawnmower and massive mower.. its A cool game when you have a definite win

  • Can you help me? How can you get that video taker? And cursor is cool and i want like video take this can you help me? Thank you

  • Can someone teach me personally? I want to make a game, but dont really know c++

  • dude this actually comes in so much with XHTML XHTM JAVASCRIPT and other stuff cause i felt like i knew this

  • Comment removed

  • what is c++

  • Its a programing language. I recommend that you learn it.

  • can you teach me i am a newb

  • What do you want to get into. I.e do you want to program games or applications like Notepad.

  • anything..really i just want to learn some beginner stuff please

  • how i open compiler?

  • Use the command prompt, I think.

  • good quality

  • Umm that code seems a bit wrong is not:

    cout << "Hello World" << endl;

    Isn't that it?

  • Yep, that should output "Hello World"

  • Comment removed

  • Ur vid roks, but Im wid Java, Visual Basic n

    Ms-dos, probably after Ill learn C++,

    LOL

  • Nice job you have helped me alot and know i know how things kinda work on C++.I just bought a book about it and it costs me 50 dollars.

  • uh? Dev-cpp isn't a compiler! G++/GCC is a compiler! Dev-cpp is just a IDE that includes the cygwin version of gcc/g++ and other utilities

  • umm how is this sopposedly your program thing when every person on youtube with a c++ tutorial starts em like this

  • wot does the namespaces do? :S

  • Hahaha "No errors, perfect :D" Erm, iostream.h is old, iostream (no .h) should be used instead. AFAIK, iostream.h has no namespace, whilst iostream uses std namespace. Like everyone else has said, a pretty weak attempt at a tutorial, but a tutorial none the less.

  • This is not an appropriate introduction to the C++ language, it doesn't explain anything. You are just saying "do this, and it will work like that", but there is no depth to the statements you are making. You are teaching bad habits by not saying anything about "using namespace std;" usage. It pays to know something before teaching it to others, otherwise you are providing those who don't know with misinformation.

  • i agree a 100%

  • It's just the way it is. the people who know the language and use it professionally frown at tutorials like these. I checked the other ones, it's the same thing. These people are doing this to get their videos noticed on youtube. They are not real programmers. They are just putting lego blocks together and think they know.

  • yeah, its not about memorizing how to do a calculator but figuring out the logic behiend the calculator and see why everything is working.

    i remember 1st trying to learn the language from watching countless c++ hello world videos and being completely confused.

    i had countless questions like "what does namespace std do?" , "why does this happen?" "why does that happen"

    the only person who , IMHO who is a good teacher is Strelok (search his tutorials on youtube) and my professor :-P

  • @navesele Well oh noes..... maby someone needs something like this to learn something from c++ basics.

  • How did you get it to compile with including cstdlib for the system function? Also I do not recommend Dev C++. It is an abandoned project. If you are using Windows I suggest Visual Studio Express 05 or 08. If not then try Code::Blocks. Both of which are free with a quick google.

  • DevC++ was taken over by wxDevC++ which includes the wxWidgets tools for window authoring. I personally recommend Code::Blocks as I code for Linux, Mac and Windows, and like to have a standard IDE for all three platforms. At the same time I started with DevC++, and still use wxDevC++ under windows on occasions. Nostalgia I guess.

  • Why use system("PAUSE"), that is not C++, that is a special way of sending PAUSE to CMD.EXE for windows then waiting for the user to press any key as of the output of cmd.exe to the C++ app, I recommend using cin.get() so it waits for the user to hit enter to continue, and it works with all systems capable of running a C++ application

  • @Compgenius999

    System("pause") is better because you can press any key to continue, but with cin.get() you need to type something first and then press enter...

  • why you made a hello word tutorial when there are hundred of those already?

  • anyway he got a lot of views lol

  • Anyone who teaches C++ feels as though they should create the hello world program to correctly kick off their tutorial series.

  • i am using the same program dev c++. I copied exactly the same codes from your video, but it says there are 4 errors, could you help me a little bit. thanks

  • I would help you, but I need more information, send me a message

  • OOOOhh my goodness. First of all, Wineblood is right, you need to include the comment:

    using namespace std;

    under your #include statement. Second, you should change it to:

    cout << "Hello World!" << endl;

    The statement endl moves "press any key to continue" to the next line, which looks a lot nicer than "Hello WorldPress any key to continue". Third, you should let your viewers know when you encounter a problem compiling, and the solution to that problem. And, lastly, Dev-C++ isn't God.

  • Visual Studio Express (which includes C++) is FREE and aimed at the hobby programmer. More than enough for the average Joe at home.

  • not the best tutorial i've seen, definitely better ones. You neglected to mention you had one warning on compile.

  • That's terrible code and doesn't work. You need the line  using namespace std;

    before main.

  • grr it gave me a huge list of errors that i cant seem to fix

  • do i have to download Visual C++ from Microsoft to make C++ work?

  • Yeah its the best way.

  • Actually, not necesarily. That IS the best way, but I didn't feel like paying for visual C++, so I found a great compiler online called Bloodshed DEV-C++

  • Visual C++ is free, you can get the 2008 version, it's really good, search google: "Visual C++ 2008 Express Edititon"

  • @DailyHacker Visual C++ is free, registering the Express edition is free.

  • Comment removed

  • @DailyHacker Visual C++ is free, the Express version is. Registering is free

  • If you seriously want to learn to program I suggest downloading both. You need to try both and see which one you prefer. I use Visual Studio 2008. I have used Visual Studio 2005, Visual Studio 2005 Express (the free version), and Bloodshed Dev-C++ (also free). If you are simply going to be a hobbiest just learning a few things, I suggest the express version of Visual Studio. No sence in spending money on something you aren't committed in. But, if you're committed, buy VS 2005 or 2008.

  • test

  • You should talk.

  • very good tutorial, hope see more from you

  • Look at my other account, DeltaYourmom... I made this one just because my old account's name was kind of silly and my siblings posted other videos using my account.. but there's a second video on that account... DeltaYourmom

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more