C Programming Tutorial – 6 – While Loops


Part 7 – www.youtube.com All of this code is FREE on my website thenewboston.com

25 Comments

  1. Antarktida1337 says:

    @mcholera1 Thanks, i just learned somethng useful from your comment and did not even watch the video yet :D

  2. SpeedCubingCentral says:

    @bondservant4Him Ah, thanks, that makes sense.

  3. bondservant4Him says:

    @SpeedCubingCentral yes and no, in scanf you are storing that variable in a memory addresss thats why you need the ‘&’ because its a pointer pointing to a location in memory that u choose to store, but you can use an ‘&’ in other places if you wish for instance in a function parameter.

  4. SpeedCubingCentral says:

    Do you only need to use a “&” when you are using “scanf” statements?

  5. Novica89 says:

    The only “confusing” part would be (for the ones not watching this realy carefuly),would be the execution of the program. Instead of “TOTAL” number of hotdogs eaten,you should put like “average hotdogs eaten” good tut

  6. mcholera1 says:

    instead of saying loopcount = loopcount +1
    it is much easier saying loopcount++
    which has the same effect it adds 1 to loopcount every time the loop is executed

  7. Logart8 says:

    @bondservant4Him np

  8. bondservant4Him says:

    @Logart8 nicee man i never knew that thanks

  9. Logart8 says:

    @bondservant4Him Yes, but unfortuently instead of running it in the background it opens the file up. Thankfully you can still go through the program while the music plays.

  10. bondservant4Him says:

    @Logart8 does it work at the command line? when u run your program?

  11. Logart8 says:

    @bondservant4Him lol. I am currently using C++ and the simpliest way i know to use music is simply doing system(“MUSICNAMEHERE.mp3″); of course you would replace ‘musicnamehere’ with the name of the file. as far as i know it only works with mp3′ss but you could try a .wav

  12. bondservant4Him says:

    @Logart8 how would you go about adding music is that done in C?

  13. Logart8 says:

    @howdouwin Later on when you get better there may be a situation where you want music to play while you’re in a certain pert of the game. the if statement will only play through the music once, where as a while loop will play the music over and over and over until you get past that part of the game.

  14. foosta5 says:

    dude ive covered almost 3 chapters in my engineering computation textbook in less than an hour, EXCELLENT WORK!

  15. mircheda41 says:

    where is this code??i didnt found it in your website..

  16. howdouwin says:

    Why cant you just use an if statement and not while? As in saying if the total number is <5.

  17. TheLitefire says:

    can someone make a os without Assembly? and how hard is it to learn? and could I just put in a little code from someone else so my c code would work?

  18. sumatijadhav says:

    Thank you so much for uploading this videos .U made learning C programming so easy

  19. vivekkumardaga says:

    @blakestrasel1 lolz,
    in fact, the chinese can eat everything from those small cockroaches to persons like u as well…

  20. vivekkumardaga says:

    @TheALPHAKILLER hey buddy, dont bother! it is dog, n ll remain dog, even if it is hot or cold…
    lolz..

  21. vivekkumardaga says:

    @TheALPHAKILLER – lolz…

  22. deathbyaccident says:

    hacking is different from this. Changing a few variables is much easier than the architecture of a whole program.

  23. 7250706 says:

    *GASP* u ate an average of 17 dogs ! :O .. DOG EATER !

  24. 12white1 says:

    jou’r a verry good teacher :)

  25. nulledsession says:

    Why did you declare loopcount twice instead of just initializing it?

    As far as the average and total count of hotdogs, I’m sure it was most likely just a simple mistake. Thanks for taking the time to make these videos even if there is an occasional mistake:P

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by Yahoo! Answers