Added: 2 years ago
From: thenewboston
Views: 64,374
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:
see all

All Comments (89)

Sign In or Sign Up now to post a comment!
  • tnx a lot new boston :D i just passed my programming assignment kinda late but this helps me lot.

  • have you made a video with switch,and loopings combined?

  • what if I want the program keep asking me to enter number after the break so that I won't need to compile each time to try out a new number?

  • When you enter in a statement can you punctuate and capitalize?

  • I'm probably gonna learn this soon, but can switch statements be used with sets of characters? (as in you define a variable as "char[4] yesorno", and you can respond differently whether the user entered yes or no)

  • @Jumbif its called strings and no not directly you will have to use functions in the string.h library

  • thanks a ton!

  • You have saved my butt in class! My Professor has totally forgotten what it's like to be a beginner!

  • Comment removed

  • LOLOLOLOLOLOLOLOLOLOLOLOLOLOLO­LOLOLOLOLOLOLOLOLOLOLOLOLOLOLO­LOL

    ... Can't be bothered

  • The Viewers are decreasing from part 1 until this part. :D

  • @GCCBT17000 can u count? :D

  • @Abraham2nd LOL... is that a request? or a challenge? Hahaha...

  • @GCCBT17000 erm... lol? 

  • Thank you again this is realy usefull. You are the best!

  • How do you enter number ranges? E.g. I want to enter a test case to see if the user enters any number between 90 and 100, inclusive.

  • Comment removed

  • After learning C++, this is sooo easy. I just learning C because im working with C and NASM to make programs :D

  • Thanks, this is very useful.

  • Since we are using int main(void) you do not have to return 0; because of the void

  • @kuljotak47 that is false because function mains return type is int, not void. if it was void main() it would be different.

  • continue ur works....

  • You should always return 0; at the end of your main function.

  • @deamon689 Logically you could also use exit(0);

  • @Spirrwell Granted

    

  • default: is the equiv of an else statement for switches.

  • wat compiler are u using?

  • @missle3944 Dev-C++

  • @missle3944 better to follow the lessons from the beggining.

  • What are the biggest differences between the switch and if functions?

  • @vman456 if u meant switch vs if : switch can have more checks . if u meant switch vs if +else if : if u remove the "break" it can test and carry out many things in the same cycle while with an if ur limited to one . its also simpler when u only need to check one variables properties , like input checking

  • CS50.net

  • Other tutorials online have said that you should have programs return a value of 0 at the end. Is this true, or is it just a holdover that we don't really need to use?

  • Thanks man ,, i have a an exam tomorow and u healped me allot,,, thanks

    :)

  • @Harref2007 me too i also have exam tomorow i wonder if we know each other

    i want to ask a questions

    why can't you write math function like for exampel

    case 100 >= 90: printf("you have got A on the test");

    i think the problem is with >=

    thx ahed

  • i want 2 ask questions

  • Comment removed

  • what will the program do if i put semi colon aside from colon after the reserved word "case" and the possible number?

  • Google Ads sucks!!! They distract me when I am studying X-(

  • @BulletForMyTeachers Firefox + Adblocker Plus. Then you don't see google adds no matter what site you visit.

  • I went on the website and I couldn't find this code...

    Were exactly did you the codes?

  • please come to Mcgill

  • . . .can this command contains a a whole number with a decimal point??? .i tried but it cannot. .like "2.5,1.7,etc. ,"

  • @rawliet666

    --did u used float instead of int?

  • nice! explanation ^_^!>...i wish u are my instructor hahha!.... my instructor sucks!...!!

  • great way of explaining things. very easy to understand :)

  • thanx

  • wats the difference between else if and switch? .... btw great tutorials thnx alot

  • Comment removed

  • so this works like else if

  • Thanks Bucky! Great job as always! You really make this stuff easy to understand!

  • another epic episode lol.

  • Great video.

  • wouldn't you want to put printf("enter a number"); before scanf so they know what to do?

  • @dudedudeshnitzel He probably doesn't want to take too much of our time :)

    But usually, yes, you should add

    printf("Enter the number of....");

    :)

  • Thanks for the video! You are great at teaching this!

  • Hey bucky, i am using Dev-c++ but the DOS window seems to be giving me wrong results. I followed your tutorials exactly as they are, do you know what's the problem? Plus i can't clear the previous program in the DOS simulation.

  • why do i need a break after executing default??

  • I only had a problem at the end the curly bracket "}"

  • hi can anyone hel me i do not how to use switch statement in C 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.

  • Thx man. Now u know u had teach a future programmer :D

  • do any of you guys know how i can get these programs so i can try them on my compiler i'v tried to look for them on his cite but had no luck, please some one help?

  • Thanks For the help but i really need your help i have to implement a switch statement while also using a sentinel controlled loop how would i do that .. my teacher isnt very good at explaining and the book is confusing i need to see some kind of example

  • thanks for teaching. youre alot better than those in VTC. :D

  • Thanx Bucky, your tutorials are awesome.... u don't know how much grateful i am to u... u are the first person I'm subscribing in you tube because i think its really worth it.....

  • Love your tut..you are making me think of buying the book lol

  • That's cool I've never used switch before. :)

    Curiosity...can you use less than, more than, equal to in switch statements?

  • @icekat83 no, you cant.

  • Thank you so much dude...nice job ^_^

  • i love you, thanks

  • dude you're the maaaaaaaaaaan ... lol

  • good job,excelente video  !

  • can't u just use the if statement?

  • Thank you....nw i last minute studying it for tomorrow exam... lazy to refer books, luckily got tutor in youtube~ TQ very much~

  • Can you do some exercises ? you know like homework ??? i managed to use this 9 lessons to make a program to convert USDolar to Pesos (argetina) but it would be sweet if you give as some practical exercises.

    the lessons are awesome thx you very much

  • wow for once i can understand. your special bucky noone can teach me shit inless your a saint lol

  • keep up the good job =)

  • Great Videos! Keep them coming!

  • really good tut. for some reason, i dont think most ppl use switch much. I dont, but it is useful. By the way your video is very crisp and clear and your audio is great too. good job.

  • your right.

    but why do you comment everyone of his videos....? just curious lol

  • nice

  • first

    nice

Loading...
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