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

Link to this comment:

Share to:

All Comments (99)

Sign In or Sign Up now to post a comment!
  • how can i make a true and false if i put t it wont let me only numbers

  • OMG!! Tutorial number 18!! I never reached number 4 on other dudes...U DA MAN DAWG!!

  • =3

  • Great tutorials. Thank you so much!!!

  • I allready knew this from your java tutorials :)

  • You are awesome!! Your tutorials are now my new study buddy, very clear and decisive when explaining the steps. THANKS

  • Press 8, hear F

  • thank you so much XD

  • very big thank

  • Thank you.

  • THANK YOU!

  • Thank you so much! You saved me from over 5 errors of "illegal if without matching else"'s!

  • Thank you for your detailed tutorials.

  • PLEASE can someone help?

    I have 2 variables and to make the variables I have to peices of code saying:

    cin >> num1;

    cin >> num2;

    "cin >> num2;" is under an "if" statement and it uses num1 as the variable and still runs even if the "if" statement is false.

  • @ilovehpwands make an else statement that has nothing in it.

    if (num2 == //what you want here)

    {

    //whatever you want here

    }

    else{

    }

  • What is Bucky short for??

  • can you have more than 2 "else" options?

  • @Iceblade157 watch the next part... that will answer your question :)

  • @Iceblade157 It works in java. So I assum so.

  • @Iceblade157 Yup, easier to use switch though

  • @BadMi5tak3s -_- Are you even a programmer?

  • Thank you.

    I had trouble displaying the answer of the one playing my quiz.

    I knew I had to declare a variable to the answer but just didn't know how. Now I know though, thanks once again.

  • what if i want a text to be an answer?

  • Thanks to Bucky, C++ is addictive!

  • Is there a way I can do an if else statement with words instead of numbers?

  • This is really similar to python... i loved those tutorials also!

  • Nice, THANKS :=)

  • Comment removed

  • "How old is Bucky? uuuhhhhh, 45? You're wrong" :') I like your tuts, ur awesome :D

  • @crazygranade98 thx for helping me, but i've given up on C++ for the moment. I'm going to college now and i'm currently learning Java.. But, thx anyway :)

  • ok i got a script to update, but im not sure whats "->" for, i never seen it. what is it

  • are u god ?

  • Dear Bucky,

    Thank you for being an awesome teacher! I learned more in 5 minutes than I do in a week in my programming class. I love you man! My instructor sucks but you've saved my arse. Thanks for your tutorials. :)

    -Ren

  • the best programmer of the world...I love your videos man...!!!

  • helo thenewboston.. i really appreciate your tutorial its very informative. i had a hard time with my c++ programming subject, but when i see your tutorial you teach better than my instructor.. nice knowing you my name is genesis.. your great i hope you will response to me soon.... thank you so much i will look forward for more tutorials from you..

  • helo thenewboston.. i really appreciate your tutorial its very informative. i had a hard time with my c++ programming subject, but when i see your tutorial you teach better than my instructor.. nice knowing you my name is genesis.. your great i hope you will response to me soon.... thank you so much i will look forward for more tutorials from you..

  • isnt greg 21? ;)

  • AWEEEEEEEEEEEEESSSSSSSSSSOOOOO­OOOOOOMMMMMMMMMEEEEEEEE

  • HELP !! .. Can we assign more than 1 value in "IF condition" like "if (x == 1,2)" or

    "if (x == 1 or 2)" ...??? I know both the above 2 types is wrong , If it is possible help me how to do it ..

  • @awfultalha Yes it is possible use the || operator it is the C++ OR operator, so you if statement may look like this.

    "if (x == 2 || x==3)"

  • @ZipArray Thank you :) .. Can you also chk this problem please

    w,w,w,.youtube.com/watch?v=g3t­XRQvHekg

  • Dude you are an amazing teacher , i have always been interested in computers and i have been following your tutorials for only 2 days and ive got this down and memorized by heart , the best part is im getting a head start cus im only in 8th grade , i dont plan on being a game designer or somthing stupid like that but i do plan on learning this into as much depth asipossibly can so when i take this course i will glide through it. Thanks bro.

  • just did mine thank to u an 100 test question about sport and politics it wasnt easy

  • Don't you need to initialize the variable answer.. like go answer = 0???

  • what if i want it to say the age of a person.. for example

    enter a name bob

    he is 21

  • you should continue C++ tutorials :D

  • I understand how the if else statement works, and I wrote the exact same code as you, but when i enter the right answer the console window shuts down, in stead of displaying the( 'you're right' message) and waiting till I close the window.. Can anybody explain why plz?..

  • @quiqiflip send me the entire code please and i will tell you whats wrong with it :)

  • @quiqiflip probably cause you didn't use

    system ("pause")

    return 0;

    Ive herd this isn't the greatest way to do it but that you should use

    cin.get()

    i use it but everyonce inawhile cin.get doesn't work but system pause always does but that may b the problem im no expert but hey thought I would try to help :)

  • Thanx Bucky....  :)

  • HAHA I FINALLY FIGURED OUT MY PROBLEM WITH ENDL

    i wasnt puting a space after th "<<"

  • does any knw how to use a pointer in a class

  • i followed all instructions bit somehow i'm getting an error at 'else' "',' or ';' expected before 'else'" .... i checked it multiple times, but i cant figure it out... can anyone help??

  • @EveryBodyWasKungFuFi I know this is a very late response but you might have put a semicolon after the if statement . That's how I got the same exact error as you did

  • you make this seem so simple in your explanations. it takes other ppl two videos to say what you did in 5. WELL DONE AND THANK YOU

  • 5 idiots have watched this video..

  • THe best MAN !!!!! your awesome keep it up !!

  • anyone know how to make the program keep going if you get it wrong? You know so you can keep guessing.

  • Im trying to make some math thing...like ...(Sry for my bad english)..well..anyways

    it asks you an X-axis, and Y-axis... then it checks that, does they 'match' in a straight .. xDD.. but it will always match, i need a third one...well..send me a pm if u know how to do this..

  • you are waaaaayyy better than a college professor

  • you really are best i cuold not explain this for my dad that is working with computers

    in 1 hour!!! i love theese tutorials don't stop making this!!!!!!!!!!!!!!!!!!!!!

  • can any body write the website of this man..?

  • v use(==)for comparison otherwise v can use single =......

  • @hamadrehman Always use the == operand for conditions, always use the = operator for assignment

  • so much typo's on youre website XD

  • So many *

  • != means NOT equal to

  • is == the same as != in a if statement?

  • @MeneerJK When you use the ! operand in C++, it negates truth. For example.

    if (!ttrue)

    { // this will not be executed

    }

    that basically like saying

    if (not true = true)

  • @MeneerJK no, == is equality, != is inequality

  • == means equal to

    != means not equal to

  • @jrmovies1234321 Also if its just 1 equal, the program won't go past the if statement, it will assign answer to 21 and stop, but if you do == or is equal to, it will go further cause its comparison

  • @jrmovies1234321 correnction == means is it true != means if its not ;)

  • good

  • You are the best teacher ever!

  • You also could have used a string and had a better question like, "is the person reading this comment an idiot" and then you could make it so the correct answer is yes and everything else is just wrong :D

  • lols

  • this helps a lot thank you very much

  • Lol, I already figured this out myself in the tutorial before, making a math check (does 2+2=4?)

    But i hadn't thought of a minigame of guess the number. So I made one :D

  • thx for the tutorials really helped

  • lol on ur website it says:

    hey im wokring on this site

    wokring lol

  • YOu are the most AWESOMEST DUDE on youtube, better than that Urban Ninja guy and you do programming instead of back flips!!!! You just summarised something that took my lecturer 2 fricken hours to explain to me and the class!!! you are the best!

  • what ?

  • website is down?

  • Awesome vids, thanks man!

  • bucky my bro is 16 & I am 28, thank you for teaching us both.

  • "oops, that's embarassing" XD lol thks for the vids :D

  • Really great tutorials, you are clear and concise in your instructions as well as showing it smoothly in the video. Great work, its awesome to see people giving knowledge away to help others.

  • I love how you personify c/the compiler lol!!!

  • bool iloveyou=true;

    bool ireallyloveyou=true;

    if(iloveyou){

    cout<<"i love you";

    } else if(ireallyloveyou){

    cout<<"<3";

    }

  • that would output:

    <3press any key to continue...

  • theres not necesarilly a: system ("PAUSE");

    they might have used:

    cin.ignore();

    cin.get();

    return 0:

  • thank you for keeping doing this!! ill be waiting for more!! :)

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