Added: 3 years ago
From: thenewboston
Views: 71,731
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (239)

Sign In or Sign Up now to post a comment!
  • Comment removed

  • now i can program......O M G shall i be a hacker one day

  • cout << "Thanks for the tutorials!"

  • @BadGamingYT You forgot ";" at the end :P

  • cout << "Very nice tutorials. I am learning Java at my college and this is very easy to understand from a Java background.";

    int yourlevelofawesomeness = 9000;

    cout << "Your level of awesomeness is over " << yourlevelofawesomeness << "!!!!!!!" << endl;

  • i used to take arrows to the knee but then i took an arrow to the knee

  • Very nice wotk man

    cout<<"13 people just misclicked";

  • thnx man really appreciate you!

    cout << "love your videos keep it up";

  • thanks for doing all these videos for us! really appreciate you!

  • cin >> whatevertheintis; doesnt work for me D:

    The program '[9128] name.exe: Native' has exited with code 0 (0x0).

  • cout -- "you make this very easy to learn; --endl;

  • @IANR632 Everybody used to make arrow to the knee jokes, but then NORMAL PEOPLE RAGED

  • I used to program computers.... but then I took an arrow to the knee!

  • tytytytytytytyty

    

  • 13 people have windows 98...F**KING WINDOWS 98!!!

  • 20/20/20/20/20

    sry iam trying to deel with it :D

  • Comment removed

  • Cause In this tut it appears that yu can use cin(C++ version of system.in from java) and seeing as how both langs r similar, itd make sense

  • Cant you do a system.in().function in java instead of importing scanner all the time? I was just curious, not saying Scanner isnt hard, but it seems ineffective to use all the time...

  • thenewboston maybe u shud tell people that u can add another integer and name it blah (for example) then u can say cout << (your original integer) + blah; This makes it so it can + two answers u want

  • Learning from scratch and so far yours are the best tutorials I've come across so good on ya.

  • Please become a teacher! You'd be a great one, you cut the crap and explain stuff well.

  • Using cin.get() instead of system(pause) the program closes as soon as I hit enter (to enter my input), what do?

  • @Tokiopopski nvm, using cin.get() again fixes it

  • @Tokiopopski System("Pause");

  • Great stuff. Helping me through foundation degree. Best C++ video yet.

  • i won't cin >> name

    so they have to put in their name...

    but if i use that value

    it's a number?...

    how to fix it?

  • @arnoturelinckx string name; cin >> name; cout << "What you wrote:"; cout << name <<endl;

    instead of using int, you use string, remember to declare it first, before you get the user to initialize it.

  • tutorial 1-5 my first 3hours of programming lectures and seminars condensed into about 25mins

  • i know you probably dont read comments from these old videos, but how much mathmatical knowledge do you need to become skilled in C++. Cause i would like to do a Unversity course in C++ and you need a high qualification in mathmatics, but i can do an exam after year 1. but is it difficult to understand and use effectively.

    Thanks :-)

  • it says on line 8 " C:\Users\Nick\Documents\ex3.cp­p `cout' undeclared (first use this function) "

    idk what to do i put literally exactly what he put and checked it several times. using the same compiler.

  • @ntaylor1991 check if you hav ; on everyline

  • what does 'gresgsnum' mean? can somebody answer please?

  • @boogieman626 Check that you have put the semicolon at the end of the previous line

  • Thank you !

  • @TheRush905 Black Hole.

  • 13 faggots

  • @TheRush905 It crashes :D

  • Guys just a little tip.

    If you want to add a new variable which includes the old variable value such as when he writes: 'gregsnum = gregsnum = 20;'

    Another way of writing this is to say:

    gregnum += 20;

    The + is basically saying gregnum + 20. If instead you would like to minus a number you would replace the + with a -.

    Hope that helps.

  • "Sorry, my favorite number is 20. So, deal with it..." XD

  • Everytime I put in "using namespace std;" it gives me an error! It says syntax error before namspace or "using undeclared" then it says all my cout and endl stuff are undeclared!

  • @AutomatonGames Put the ; thing at the end?

  • @AstralVids Yep

  • @AstralVids I ffxed that error though I think.

  • These videos are perfect when studied along with C++ Without Fear version 2

  • @EpilepticElbow hows that going.

    

  • You can just use char f; cin >> f if using cin.get() is problematic.

  • Well, I saw first 17 Java programming tutorials so this is easier if you know little bit of Java

  • Int Variable;

    Variable = Awesome;

    cout <<"Bucky you are";

    cout << Variable;

    cout << endl;

    Compile

  • if you used cin.get (); instead of system("pause"); you have to type

    cin.get(); two times instead of one.

  • cant you use /n instead of the endl statement?

  • @dagr8master Only if you're using it within quotation marks. You can't add \n after a variable.

  • thumbs up if you are learning more from him than at school x3

  • This is same as tut 4... D:

  • Great tutorials. Thanks a lot

  • Not studying from this awesome guy is a ''cin''

  • Buckysfavnum = 20

  • Thank you!

  • I'm very thankful

  • I made a calculator with only tutorials up to this point. LOL.

  • i tryed a different method of my own to see if it worked, i changed like 2 lines around and it works! i cant believe im ACTUALLY learning coding now!!!

    instead of gregsnum = gregsnum + 20

    i just put cout << num1 + 20 << endl

  • @spyroglitcher

    I made a calculator with only tutorials up to this point. LOL.

  • Hi bucky, I'm very proud of u. great job. well presantation. continue....

    thanks for the tutorial.

  • I do all that code, except instead of using system("pause);

    I use cin.get();

    When I debug, type in a number and press a number it just closes without printing the new number. I'm guessing it has something to do with using cin.get();

    I used it because some guy said to use it in a previous tutorial.

  • @deenotheman2 Follow the boss Bucky when you are watching his tutorials :D

  • @thenishanth420

    Yessir

  • @deenotheman2

    Just in case you still want to use cin.get(), which is preferable.

    You have to copy cin.get() and use it twice because when you press return for the first input, you get an echo, which causes the first cin.get() to end, so you need the second as a buffer.

  • my favorite number is 13 :P

    just kidding

    thanks for these great tutorials :))

  • What's the difference between c, c++, c# etc?

  • "its my favorite number so deal with it" lol

  • cin>>

    cout<<

    Just posting this for a reminder.

  • thanks for the simple, to the point tutorials... Me and my friend are 12 and 13 and we both understand this

  • When I type a string to assign a value to gregsnum, it outputs a bunch of numbers. I understand That we declared gregsnum an integer, but why wouldn't c++ give me an error, instead of giving me a large number?

  • What is gregsnum  , heheheeee...

  • plz help me... i use cin.get(); but it closes inmediatly when i press enter. how do i keep it going?

  • @Addison199666

    return 0;

  • I'm learning more from you than the shit school I pay 2,300$ a month to go to.

  • @EyeTheOf Wtf? 2,300$??

  • @EyeTheOf SHIT YOUR LOADED

  • @EyeTheOf cout << Ditto

  • I'm learning more from you than the shit school I pay 2,300$ a month to go to.

  • Comment removed

  • Great, great, great, great, great, greaaaat!!! Thank you a lot!!

  • why doesnt cin.get() work for this one? [

  • I always thought CIN meant Command In and COUT meant Command Out.

  • my favourite number is 69

  • youtube wont let me post the code

  • great tutorials but i have a question. I copied the code exactly as you have it on the screen, but it still comes up with errors. I did not copy anything wrong or make nay typos. Im using Microsoft C++ 2010, and I have no idea what i did wrong

  • @sportsguy831 Then post the errors

  • @sportsguy831 I had that problem too, but then I installed the program again , and it worked , but my program is Dev-c++, I hope this solution can help you too.

  • i dont know why but when i try to run and compile this, the Hey now brown cow comes up. lol so wierd how do i fix this? its not even there

  • COUT >> - Program is sending or is going to send some informations (send OUT)

    CIN << - Program is recieving or is going to recieve some informations (send IN)

  • why is it >> in cin ?

  • @manga103 its just the way c++ was programmed to regognise it

  • Wow, this one was useful for the program im trying to construct. Thanks alot! ;)

  • i don't know why but my anti virus triggered a warning!!!!

    LOve you tutorials i am gona watch them all

  • i don't know why but my anti virus triggered a warning

  • It surprises me that you didn't mention string variables a single time here.

  • lol my numbre XD

  • I spent a month trying to learn C++ off of some site and I just ended up in fustration. I go on youtube and I find one of the best C++ tutorials in the world. I'm definitely watching all of your videos.

  • awesome tutorial

    

  • how to syntax if I want the user input to be not visible or it will not print out on the screen while they are typing it and after but the program will read it?

  • cout << "You are awesome.";

  • @kIPTOX << endl;

  • if this is difficult to understand a very good place to get some logic (logic meaning a base of knowledge of how code works) on scripting and code, try batch files first. extremely simple, and it can really help you get some understanding on how c++ works as well.

  • SWEET video!

  • WoW man your tutorials are the best, very well explained and nice step by step!!!

  • Your awsome dude.

    I tried learning programming from those sites from India.

    I gave up on India sites.

    It was like trying to understand a man from Mars.

    I can understand you perfectly.

  • speaklouder!!!!

  • i rather using \n and cin.get();

  • Great tutorials.

  • When I type system("pause"); it doesnt work. I tried it with a space and no space between system and pause's perenthis. Thx! :)

  • Thank you you make it really easy to learn. much appriciated

  • trieed learning from a book not as good as your tutorials

  • Guy's watch this video, then just review byyourself and check if you get error? Try to fix it byyour self and keep reviewing the video. I understand steps 1 - 6 Perfectly by heart I also jotted down notes of reference.

  • cin = scanner in Java :)

  • 2:13 gets confusing

  • cin.get() doesn't work when stopping the program D:

  • @jeffery12108 why is that?

  • @bubinasuit It doesn't work when you are using cin>>

  • lol i made mine say"you have just received 8 dicks in ur ass

  • Greg is such a num-nuts.

  • how do u make a string variable, i tryed str like in python but no go

  • @hunter131211

    Char

  • Hey, I know I've left like 20 comments in total in your videos, but here's the 21st!

    I love your tutorials so much! You explain everything so well and keep everything going at a nice pace! You deserve so many more subscribers and video views than what you have, but the people who do watch your videos appreciate them ALOT!

    Thanks again!

  • hi can anyone hel me i do not how to use switch statement i have to make a program that calculate sale taxes using switch statements.first it will ask for base price and category. the category is 1=0% 2=2% 3=5% 4=8.5% and it will print the tax amount and the total to be paid and it will exit at category 5. thanks.

  • instead of just 'gregsnum = gregsnum + 20' just put 'gregsnum +=20' same thing.

  • this messes up when I use endl

    system("pause");

  • Theres an error in: using namespace std;

    hmmm :S

  • yeah using namespace std; needs to be above the function main

  • Thanks so much! These are very helpful. I am learning Java, and started switching over to C++. It looked like hell at first, but your tutorials take it slow and explain things very well!

  • Thanxxx

  • Thank you Bucky for your well explained tutorials. [:

  • @eaglepassdaily  His name is Greg

  • if when u enter the value to ur variable and press enter the console closes, youll need to add an if statement to your getchar() (assuming your using getchar())

    if(getchar() != '\n')

    {}

    getchar()

    this is saying if getchar() is NOT equal to return run script which is nothing as the paranthesis don't contain any code.

  • First off Thanks for the tuts - just a quick question with the cin function

    I was playing around and if you don't enter an integer (as gregsnum was declared int) one of the following seems to occur

    Number value - converts to int (i.e. 3.3 --> 3)

    string/char value - doesn't change default value of 2.

    Is this normal - are there futher rules that should be taken into consideration??

  • You need to use different variable types for input that isn't an integer.

  • @thisuserhas

    int is an integer and holds a hole number.

    double can hold a decimal number with 16 decimals i think like 3.12345678

    float can hold a decimal number with 8 decimals.

    char can hold a single character 'a',

    string can hold a string of characters "Hi Youtube"

  • very good thanks

    would like to see some more tutorials on more advaced stuff, that would be great

  • Great tutorials m8

  • Error: The system cannot find the file specified.. :( pls hlp

    (this also in compile log Compiler: Default compiler

    Executing g++.exe...

    g++.exe "C:\Dev-Cpp\new.cpp" -o "C:\Dev-Cpp\new.exe"

    Execution terminated

  • you gotta save new projects first :P

  • another good tutorial!

    nice and fast!

  • this bit didnt work for me for some reason

  • Thanks!

  • An easiest way to remember CIN and COUT is

    CIN= Comment in or input

    COUT= Comment out or output

  • see-in and see-out is how its pernounced

  • @g33ky898 n00b

  • @g33ky898

    actualy it's console out and console in;)

  • @g33ky898

    Actually it's like this:

    CIN - Console Input

    COUT - Console Output

    ;)

  • @g33ky898 thats how i did it

  • @g33ky898 actually, I recall it as console input, and console output :P

  • @g33ky898 yeah useing exactly what the code means is a good way to remember it.....

  • How do i remove that "Press a key to continue" thingy in the CMD window ? do i type system("pause <nul") like in batch ?

  • The "press a key to continue" in the cmd window is caused by the line of c++ code before "return 0;". the part where it says "system("pause"); causes it to say press any key to continue. did i answer your question or no?

  • well yes...and no, how do i remove it ?

  • inline void KeepOpen()

    { char ch; cin >> ch;

    }

    int main()

    { KeepOpen();

    }

    ps: you don't need to return a value if your using the windows operating system at least thats how it is with the Visual Studio C++ compiler

  • you're a good teacher, i know exactly what's going on now

  • yea! it's not like some shity books or tutorials which just tell you to write down the code and they don't exaplain anything...

  • TheNewBoston is making an army of programmers!!

    I love it! <33

    :D

    Reply to this comment if you agree with me : )

  • i believe

  • haha... I've only watched 5 of these tutorials and now I'm making an averaging calculator

  • i kept forgetting the f'ing ;;;;;;;; and i wasn't sure what i was doing wrong

  • this tutorial is helpful

    while im 12 i can learn alot so when i grow big i know alot about c++

  • I'm 14 the stuff in these tutorials i think are knida common since.. still helpfull for complete begginers.

  • same thing i said about

    luminifereousAether you too should have learned it when u were still a kid

    but some kids only knows how to play

  • lol im 15 and im just learning all these stuffs i downloaded a book from internet but its kinda hard to read...thanks man these tutorials really help