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
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.
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.
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
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
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.
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++
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.
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
Best tutorial ever, I have seen many other tutorials but this is the best
*subs*
Protocolback 1 month ago
THANK YOU IT WORKS :DDD
afker553 5 months ago
system("pause") is not good use for this example. Better cin.get(); Sometimes you must write cin.get(); cin.get();
BoOoreczech 10 months ago
why do you use "iostream.h"?
"iostream" itself works perfectly fine..
Werdna3791 1 year ago
@Doomfussel How so?
AES256bit 1 year ago
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!
KillTheFace55 1 year ago
i wonder what i did wrong is said theirs something illegal
TX3Thiefxxx3 1 year ago
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
KudendarX007 1 year ago
it's really helpful
hamza98888 2 years ago
i hit compile and is says. "can not find the file specified.
RazorSRaider 2 years ago
same. annoying.
CityBoyMillionaire 2 years ago
de grande ajuda ! valeu
hacker000380 2 years ago
come have a look at my C++ lessons
rade134 2 years ago
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
Gunztheduel6 2 years ago
You play Gunz, hence the name and the hacks; lawnmower and massive mower.. its A cool game when you have a definite win
MasterSenji 2 years ago
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
skywipe 2 years ago
Can someone teach me personally? I want to make a game, but dont really know c++
darkprofitz 2 years ago
dude this actually comes in so much with XHTML XHTM JAVASCRIPT and other stuff cause i felt like i knew this
96odtx 3 years ago
Comment removed
HackerCertified 2 years ago
what is c++
glammerglittergal 3 years ago
Its a programing language. I recommend that you learn it.
herby490 2 years ago
can you teach me i am a newb
BboyHibito 2 years ago
What do you want to get into. I.e do you want to program games or applications like Notepad.
herby490 2 years ago
anything..really i just want to learn some beginner stuff please
BboyHibito 2 years ago
how i open compiler?
granddrag187 3 years ago
Use the command prompt, I think.
ZhadoxFlamez 3 years ago
good quality
siemka321 3 years ago
Umm that code seems a bit wrong is not:
cout << "Hello World" << endl;
Isn't that it?
homedawg60 3 years ago
Yep, that should output "Hello World"
smasher2256 3 years ago
Comment removed
HumanStickFigure 2 years ago
Ur vid roks, but Im wid Java, Visual Basic n
Ms-dos, probably after Ill learn C++,
LOL
Yaroslav94 3 years ago
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.
Jacob12609 3 years ago
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
deb4Carlos 3 years ago 2
umm how is this sopposedly your program thing when every person on youtube with a c++ tutorial starts em like this
pumpkinbeast 3 years ago
wot does the namespaces do? :S
theman1860 3 years ago
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.
FeeshNL 3 years ago
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.
navesele 3 years ago 3
i agree a 100%
cptBraver 3 years ago 3
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.
navesele 3 years ago 3
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
cptBraver 3 years ago 2
@navesele Well oh noes..... maby someone needs something like this to learn something from c++ basics.
zsakker 1 month ago
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.
thanatos454 3 years ago
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.
Electricearlobe 3 years ago
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 3 years ago 6
@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...
pufixas 9 months ago
why you made a hello word tutorial when there are hundred of those already?
zombicreature 3 years ago
anyway he got a lot of views lol
cplusplustutorial 3 years ago
Anyone who teaches C++ feels as though they should create the hello world program to correctly kick off their tutorial series.
atwistedillusion 3 years ago 2
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
championofjudo 3 years ago
I would help you, but I need more information, send me a message
cplusplustutorial 3 years ago
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.
rferrarifjr 3 years ago
Visual Studio Express (which includes C++) is FREE and aimed at the hobby programmer. More than enough for the average Joe at home.
vandal2k6 3 years ago
not the best tutorial i've seen, definitely better ones. You neglected to mention you had one warning on compile.
zomgpro 3 years ago
That's terrible code and doesn't work. You need the line using namespace std;
before main.
Wineblood 4 years ago
grr it gave me a huge list of errors that i cant seem to fix
blaidsofwar 4 years ago
do i have to download Visual C++ from Microsoft to make C++ work?
artur1991iinc 4 years ago
Yeah its the best way.
miniCruzer911 4 years ago
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++
DailyHacker 4 years ago
Visual C++ is free, you can get the 2008 version, it's really good, search google: "Visual C++ 2008 Express Edititon"
4dm5 4 years ago
@DailyHacker Visual C++ is free, registering the Express edition is free.
FOOFlGHTERS 1 year ago
Comment removed
FOOFlGHTERS 1 year ago
@DailyHacker Visual C++ is free, the Express version is. Registering is free
FOOFlGHTERS 1 year ago
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.
rferrarifjr 3 years ago
test
Plissken07 3 years ago
You should talk.
l2edemption 4 years ago
very good tutorial, hope see more from you
abhalla02 4 years ago
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
DailyHacker 4 years ago