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

Link to this comment:

Share to:

All Comments (160)

Sign In or Sign Up now to post a comment!
  • "thanks so much"

  • Every video i watch i feel i have to say thanks!

    so good. Right to the point, love it.

  • what's there to not like about this video?

  • Im not gay but.. Dude I love you :D

  • so what is the code to separate them and get the text onto the next line?

  • Once I am done all these videos will I know C++ or enough to make advanced software? What should I do, Watch or read when I'm done these videos? I also have C++ for dummies so that might help?

  • @RetroCopS that book sux. i have it.

  • why does my backspace come out as a yen?

  • I like how he starts to refer to the compiler as "he"

  • hmmmm... Still trying to figure out which programming language I think is better: C++ or Java.

  • @SuicidalWaltDisney

    from what i understand, c++ is more complicated but it makes everything fast

    and java its not that complicated, but it can be slow and suck plenty of ram...

    i think, im not sure..

  • @NekitoTwilight Java is just about as complicated and despite what many people thing tests have shown that Java, if properly coded, runs faster then c++, however using more ram in the process. Also, Java can be used for programming things other than just a computer. For instance, all of the apps on the android market are running on Java as well as many other phones.

  • @SuicidalWaltDisney A properly coded C++ program will frequently still beat a properly written Java program for speed (not always, I'll give you that), but cleanly written Java programs should still be completely adequate in 99% of the cases. Unfortunately, 90% of all programs out there (C++, Java or otherwise) are not exactly master pieces of advanced programming ...

  • @antred11 wrong, java will always load faster then C++ because it only has 1 lib to pull from unless called upon. C++ has 21, but only 7 are executed at the start, so java loads about .4* faster (assuming you could make 2 programs do the same thing)

  • @ShinoJereamachi I'm sorry but I have idea what you're talking about. What has ANY of that got to do with what I said in the post you referred to??

  • Thank you man a lot!!! I'm starting C++ here :D

  • Ha

  • I am unable too debug.

  • LOOOOOOL I LOVE SCRIPTING!

    Me:  cout << 15/0

    *compiling*

    (Warning) Division by 0 on 15/0

    lmao

  • This is very helpfull but i only have one question;

    How much wood would a woodchuck chuck

    if a woodchuck could chuck wood?

  • @dervish2173 oops u didn't got any thumbs up on that comment :P

    it was horrible try to get those

  • @ashbringlife that's an interesting comment, however... Can you can a can as a canner can can a can?

  • @dervish2173 no, the REAL question is how much oil can a gum boil boil if a gum boil could boil gum boil oil?

  • In the video you said we could make a funny message and send to our friends to play but you didnt tell us how to send it to others. can you please tell me how to send it to my friends so they can see it ? thank you.

  • @thawk144

    you can add it as a file to an email message or skype. after they download it they can play it and see the message

  • I'll never understand why some people dislike these videos. The tutorials are much better explained than those in the 2 C++ books I've bought, and clearly you go through them way faster!

    Good job man, and thanks for sharing your knowledge/expertise :)

  • how can i type quotes inside the quotes?

  • @MrChaosChef Escape characters

    for example:

    cout << " \"Hello World\" "

    the \ (backslash (the one above enter)) is called an escape character. If you are using anything that would normally interfere with your program (like a quote in a quote) you use an escape character (\) to tell the programming language (in this case c++) that this character is actually part of the text (in this case) and then the compiler will read it as text, not as the ending quotation for the line.

  • @hjjais its supposed to be 2 /'s (ex. "hello world" // will put out : hello owrld" but isnt it supposed to be seperate lines also? so basically you totally wrong right? @mrchoaschef i dont think you can but you can be an escape char under neath it... like

    "whatever here"

    // say something about up there

  • @DareonNXbox @MrChaosChef * read the one before this... spelled yer name wrong

  • @DareonNXbox if you use // it will comment out your code for the rest of the line. so that will not work. try to run this code

    cout << "Jimmy Said \" Hello \"" << endl; // prints out Jimmy Said "Hello"

    That should be a working code and the quotes should appear when the line is printed. I put in the // just so I can show you that what you put after the line will not be printed out.

  • I like how you refer to the compiler as a him xD

  • Imma pause every 5 videos

  • do you know what C# is?

  • very ultra noob friendly!!

  • for live help

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

  • lol this video was uploaded april 6, is his 6th video in the series, and has 6 dislikes (as of now).

  • TRIVIA:

    The "output operator", as he calls it, is actually a "bitwise shift" operator that has (in this case) been changed ("overloaded") from it's normal functionality for this specific object ("cout") to work as a function call. This operator is normally used to shift the position of bits to the left or right in the memory. This is of course a very advanced topic that you might not ever run into as a hobby programmer.

  • Why dont you use endl command instead \n, it it much easier to understand.

  • NICE TUTS THANK U VERY MUCH !!

  • I like to improvise: i just didcout << "Suck My Balls \n" ; cout << "Here is a number: "; cout << 10 <<" oh, and I did your mom"; cout << endl; cout << "I am retarded; how much is 15 + 17? I'd reckon the answer is"; cout << 15+17;

  • these tutorials are amazing man I just understand it lol xD But I've a question: How can I change the title name in the program? Cause now there stands the location of the file...

  • anyone know what bool is and flag? what do they do?

  • lol, lot of people got trolled by \n thinking it was /n

  • So endl and \n are basically the same thing? they can always be used as eachother?

  • Use winforms for better ui

  • can you make me a prog. that can convert all of the computation pllls>>>>>>>>>>>>

  • is there one reason to use endl instead of /n?

  • every1 having this problem with the \n simple because you are all pushing / (Thats the one with the ? if you shift up) so try pressing \ its right next to the enter key on most keyboards and save antiRTFM his time

  • thanks a lot for the great noob friendly c++ they really helped a lot

  • When you print 10, it's printing text with the value of 10 in text, not just the text "10" a string could be assigned to be equal to "10", but it's in characters. A variable declared as a double precision number can have a numerical value of 10, but not a character value.

  • when I type the same code this happens

    fatal error LNK1120: 1 unresolved externals

    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

  • this video is not working for me for some reason, ive tried everything if some one could plz sum up what this video is about that would help alot.

  • Unfortunately it will not show me this video it speeds through it. Even when it doesn't do that it pauses at 1:15. Do I need to watch this or can i skip ahead one?

  • Video is not loading for me as well :(

  • video not working please fix it

  • video not working reload it bro

  • This videos loading is pissing me the fuck off

  • watched all you vids they are great but i want to know whats the diff between \n and endl?

  • so I feel kinda dumb...first off excellent tutorials. ive never had the beginnings of c++ explained so well...however I did the hello world program fine, then changed everything and it is programmed the same as whats on the screen but the hello world program keeps getting run, not this new one I typed...help?

  • so I feel kinda dumb...first off excellent tutorials. ive never had the beginnings of c++ explained so well...however I did the hello world program fine, then changed everything and it is programmed the same as whats on the screen but the hello world program keeps getting run, not this new one I typed...help?

  • is it just me, or is this video not working very well?

  • @MRpoopsniff

    its not working for me either..

    i can hear audio but there is no video

    and it scratches sometimes

    ???

  • It feels like i started over again, at college. This tutorial is great, it gives you a great feeling about c++ and what it includes. I can keep watching the showing numbers to be going down for every video i watch, cool. Keep up your professional mind in c++

  • Comment removed

  • vid isn't  working can u "fix" it?

  • guys my compiler told me that the answer of 15+17=27

  • You sir, are a great person. your saving thousands of veiwers money by not having to buy books, but watch your great tutorials. i learned more in the last hour then i did trying to read off google. thank you i love your tut's. subbed and rated 5/5

  • you have to put "std" whenever you want to make a virus file like "aids.bot" or something.

    lol I made that up Im still learning LMAO.

  • i send my friend a message inside a console and i put VIRUS ALERT! in it

    he was freaking out lol

  • @blazedragoon666 haha nice one , I used to do this when I was 10 ..now I want to learn the real way of making a virus !

  • With tutorials like this it makes C++ easier to learn than visual basic!

  • great tutorial,

    I am learning.

  • The \n is just like in java.

  • Java, like c++, is based off the actual c language ;p

  • Can I code Hacks for An online FPS ?

  • Counter Strike?

  • counter strike is BALLS it costs money and graphics SUCK try combat arms it is 100% free and has INTENSE graphics

  • its 20 bucks thats it. The game play is better than any game in existence

  • what how??? look up combat arms on youtube then compare them

  • @benblue3 i play both. combat arms and cs... but i prefer cs.. i mean combat arms is a great game but cs is just so classic :) and gameplay is more awsome than any game.. but you cant expect graphics to be good. its a 1998 game!

  • Yes of course just learn how to make hooks and how to modify memory addresses for the most part and then usually .dll injection.

  • @viagra1978 if you want to hack something, you're very far from the ability to, should you be watching episode 6 in a "spoonfeed" tutorial.

  • @TutorialGuyDudeMan You have to start somewhere...

  • i love your tutorials, keep them coming, this is the most i have ever understood about C++, i feel like i am in college learning about this professionally!

  • Same here he is awsome

  • what does the using namespace mean? he explains about the std, but can someone explain the using namespace for me please?

  • it states that we want to use all of the stuff in the standard file (standard=std) so we dont have to type out all of the stuff in the standard file

  • Thanks! But how can I make it like that:

    20*sin80 ?

    To the next tut!

  • you are absolutely excellent

    this is the first time i ever have understood anything to do with programming

  • Pardon my imperfect english.

    Your English Rocks!!! BTW Thx On Tutorials You Deserve Some Reward..

  • exactly, i dont get why he says he has imperfect english, i honestly see no issues with it. And what reward are u thinking of? I'll gladly help lol

  • Well , Im Not Sure But Something Like Best C++ Teacher Or Something... You Have Imaginiation Too ;)

  • fair enough. We should make him an actual award like how Pogobat got one for best instructional video for teaching us the rubiks cube (which i cant finally solve any size cube now because of him) so yea

  • THX MAN THIS IS FUCKING GREAT, TY!!

  • Wow im actually learning!!

  • i can use this programme to do my homework :)

  • loll thats what a calculators for?

  • wonder what happens if you try to make it calculate pi, would it crash? and by the way, what is the other mathematical signd? minus is probably -, but whats the rest (just the "standard" ones)

  • im pretty sure its:

    +,-,*, and /

    for add, subtract, multiply, and divide

  • yup your right but your missing one more!!

    % - modulo

    Suppose you didnt know about it becuase people dont tend to use it really but it may come in useful for you :)

  • whats the difference between '/" and %

  • and modulas "%", and adding to a variable "+=", taking away "-="

  • cout << 10;

    cout << endl;

    could be replaced by :

    cout << 10 << endl;

    and try return EXIT_SUCCESS instead of return 0, so your screen will automatically say : "press any key to continue . . . "

    some tricks to make your code a little smaller =)

  • You could also use system("PAUSE"); to display the default any key thingy. But I think it looks ugly. :P

  • As I've said on the comments here, system("PAUSE"); is just for Windows OS. If you want your program to work with Apple OS, Linux etc, do not use that code. Cin.get() is best overall, and does the same job (and it looks nice'r and tidy'er).

  • Very true. :)

    I love just printing my own version of "press any key" and using cin.get. :)

  • remember its lowercase cin :P

  • hey um is there any benefit of using visul studio over dev c++?

  • GNSstudios:

    Not really. I haven't found any difference that is important at all. The GUI is mostly the same, and it does the same things with comments, commands, etc.

    The only main difference is that stdafx.h is NOT in Dec C++.

    That is the only difference that I have found.

  • Okay thank you.

  • lol "sned your program on the mail"

  • your exit method is good but i find

    system("PAUSE"); to be more useful in this situation

    is there any reason to use your method instead of this one?

  • ("PAUSE") is ONLY for Windows.

    Don't do this if you want your program to work with Apple OS, Linux etc.

  • i see thanks for clarifying! :D

  • Not as text, but as a special .. something else.

    I LOVE how you avoid techincal terms to lower this to newb level:) Its highly appreciated!

  • oh sorry nevermind it turns out next to it there was a soloution and i had forgot a ; delete comment if you want :P

  • the excact sam thing happened to me :D --- but when you do the "rebuild solution" it always says what the problem is so you dont have to search that much xD xD lol i bet this sound so funny to real programmers

  • i got problem C2146 Syntax error but im sure copied you right? any help

  • if /n makes a new line how would you display '"/n" in the counsel window?

  • its \n (not /n)

    very good question

    the backslash is a hint that the next character is an "escape character". \n is a carriage return escape character. \t is a tab escape character

    as for your question, the answer is \\

    \\ is a backslash escape character :) so if you type \\n it will print \n to the console

  • Comment removed

  • zdmey123: i suggest you review the video about the difference between "text and code"

    in an upcoming video you will learn how to make comments in C++. But basically you use // (not \\)

  • @zdmey123 ehhh // or /* */ means comment in C++. Don't try to tell people how to code when you don't know yourself.

  • @zdmey123 get raped.

  • @zdmey123 you've got your slashes mixed up. \\ is not comments

    // is

  • @zdmey123

    isnt a comment // not \\

    the escaping character is \ comments is the opposite //

    at least in Java it is... idk about c++ (just learning)

  • hey , sorry but i have some problems , when i try to compile exactly the same codes as you it says : fatal error C1083: Cannot open precompiled header file: 'Debug\tutorial2.pch': No such file or directory . What is worng ?:I

  • Try Build > Rebuild Solution (or ctrl+alt+f7)

    Have you disabled Precompiled Headers when creating the project or by editing the project properties? this is discussed in an upcoming vid

    if all else fails, try creating a new project from the beginning

  • I have a problem ...

    When i start debugging the program it asks me if i would like to build it then when i click yes it asks me to type the executable file name so what should i do?

  • seems like you're making a DLL project

    start all over again from the beginning (create a new project), and make sure you make a "Win32 Console Application"

  • why isn't '32' on the next line?

    by the way, GREAT TUTORIALS!!

  • only the "\n" or "endl" magic causes text to print on the next line

    the white-space carriage-return in your source code doesnt make a difference. so even though cout << 15 + 17; is on the next line of code, that doesnt mean it will print text on the next line in the actual program

  • are /n and endl th same thing?

  • cout << "Great video! I know a lot of C++, and hope to cover stuff my old teacher didn't cover since I don't have a book like C++ for dummies, :P";

    cin.get(response);

  • "cout" is is exactly like the command "disp" on my calculator.

  • haha dude i did the 15+17 n got 3232 lol programmings fun thanks for teachen man

  • Dude i started like 2 hours ago and thanks to you I know pretty much. TY!!!!

  • hI antiRTFM, I learned a lot in your video tutorial, It's really amazing video tutorial. by the way, do you have any sample program or tutorial for C++ machine application?, like for example a simple moving of toy car.

    tnx..

  • see channel FAQ #2

  • Legend :D

  • Instead of \n can't you use endl;

  • yup, though there's more to endl than just carriage return... but for now lets just say its same as \n

  • cout << "You RoX best teacher in c++, your english is not imperfect its good";

    cin.get();

  • cout << "You really are a great teacher. I can't wait to learn everything there is to learn";

  • return "thanks :)" ;

  • what do i have to do when there is a problem like this: too many characters in constant

  • i'm not sure how you got that error, try to PM me with the source code that caused this error

  • And errors like:1>.\lines.cpp(3) : error C2146: syntax error : missing ';' before identifier 'std'

    1>.\lines.cpp(3) : error C2873: 'namepsace' : symbol cannot be used in a using-declaration

  • you must make sure you "include iostream" and everything else shown in the videos. Running Visual Studio with Administrator permissions may also help out

  • runing as administrator has helped me.Thank you

  • Your tutorials are great but i have problems with my compiler.Sometimes,not always it gives some erors eventhough my program is typed corectly,as yours.I am totally confused:(.Errors like:1>.\lines.cpp(9) : error C2065: 'cout' : undeclared identifier

    1>.\lines.cpp(10) : error C2065: 'cin' : undeclared identifier

    1>.\lines.cpp(10) : error C2228: left of '.get' must have class/struct/union1>.\lines.cp­p(3) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

  • Hi there. excuse me when I want to execute a command like shown above, a window will pop up which says :" executable file name: ". Can you explain in a simple way what should I do here?

  • make sure your project is a "win32 console application" not a DLL or so.

    try starting again from the beginning. create a new project, select the win32 console project, and type your code again as shown in the videos.

  • so basically when you use:

    cout << 10;

    is taking it in possibly as a mathematical problem?

    Since 10 times, plus, minus, and divided by nothing is 10.

    by nothing i don't mean zero i mean nothing.

  • im not sure i understand you. yes you can enter mathematical equations to be printed, and no if you type "cout << 10 + ;" or "cout << 10 * ;" that will be a compile error

  • Well i meant why would the compiler recognize a numeric value and print it to the screen and not recognized alphabetic ones.

    So i just assume that theirs a possibility numbers are taken in as math even when they are by themselves. like if someone told me to solve 10. i would just put 10=10 so ten is printed to the screen, well that's just me mumbling. Tough i don't have any idea how the language was coded.

  • wow i learned so much from watching your videos

  • These are great but it would be really helpful if you included the lesson name in the title.

  • How come you don't use

    system("pause");

    in place of

    std::cin.get(); ?

    Because the system("pause"); allows you to press any key, rather than wait for an enter press, which could be confusing.

  • excellent and VERY important question.

    As you will learn in a future "wrap" video, we should always try to stick as much as possible to whats called "Standard C++", not platform-dependent code.

    std::cin.get() is standard, while system("pause") is a command specific to microsoft windows.

  • ahh, so it's like a compatability issue then ? I see. Thanks =)

  • it di only work on dev-c++ not in visual c++ 2008 express edition.

  • what didnt work?

  • i lov these tuts

  • Thanks again!

Loading...
Alert icon
0 / 0