Thread: Nested while loop inside for loop

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Hmm....why don't you try that out and see what you get.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  2. #2
    Registered User
    Join Date
    Jul 2011
    Posts
    38
    Quote Originally Posted by AndrewHunter View Post
    Hmm....why don't you try that out and see what you get.
    I did and it works perfectly. How'd you decipher it so fast?

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Sonny View Post
    I did and it works perfectly. How'd you decipher it so fast?
    Quzah and I phoned him and told him what to post in a conference call

  4. #4
    Registered User
    Join Date
    Jul 2011
    Posts
    38
    Quote Originally Posted by CommonTater View Post
    Quzah and I phoned him and told him what to post in a conference call
    Very efficient. :P haha thanks a lot for the help guys. Hopefully after a little more experience I can help future noobs like you're helping me.

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Sonny View Post
    Very efficient. :P haha thanks a lot for the help guys. Hopefully after a little more experience I can help future noobs like you're helping me.
    It's all about practice and experience... Keep writing code... One day the little light goes on and you can officially declare "I get it!"...

  6. #6
    Registered User
    Join Date
    Jul 2011
    Posts
    38
    Quote Originally Posted by CommonTater View Post
    It's all about practice and experience... Keep writing code... One day the little light goes on and you can officially declare "I get it!"...
    Yeah my prof keeps telling me it's about practice. Doing a few programs everyday but it gets really tedious after a while I don't know how you guys do it.

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by Sonny View Post
    Yeah my prof keeps telling me it's about practice. Doing a few programs everyday but it gets really tedious after a while I don't know how you guys do it.
    If you don't enjoy it, it's not worth doing. Words to live by.


    Quzah.
    Hope is the first step on the road to disappointment.

  8. #8
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by Sonny View Post
    Yeah my prof keeps telling me it's about practice. Doing a few programs everyday but it gets really tedious after a while I don't know how you guys do it.
    Can't speak for the others... but I Don't.

    I tend to walk around in a haze thinking about this or that function or module and then when I'm ready I'll sit down and zip it out in short order. Typing code is a very small part of programming... The big skill is not learning a language with less than 2 dozen words in it... it is in understanding a problem (i.e. project) well enough to write an adequate solution. For small stuff like you're doing now, an experience programmer might only need a couple of minutes to plan it out... but when the projects get big, the understanding and planning stages can take weeks or even months sometimes... Writing code is the second to last step in creating a program. The last step is fixing all your smegups and getting it to work...

  9. #9
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by Sonny View Post
    Yeah my prof keeps telling me it's about practice. Doing a few programs everyday but it gets really tedious after a while I don't know how you guys do it.
    quzah is right about that. However, if you generally like programming, it might just be because of the type of programs you are working on. Going through a book is in no doubt a good way to learn, however it gets boring. Take what you know already, and then work on making something fun. If you know loops and some basic logic functions, why not make a game? It really doesn't take too much to start working on making an asteroids style arcade shooter. You will learn a lot by doing that as well.

    @Tater: I agree, however it would also be nice if we could fill it out in our profile and it showed up in all the free space next to our name.

    <--------
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  10. #10
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by CommonTater View Post
    Quzah and I phoned him and told him what to post in a conference call
    D**n, now my secret is out! ...LOL


    EDIT: BTW Tater, I like your new tag line.
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  11. #11
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by AndrewHunter View Post
    D**n, now my secret is out! ...LOL
    That was a secret? OOPS... my bad.

    EDIT: BTW Tater, I like your new tag line.
    Actually it would pretty cool if everyone listed their compiler/IDE and OS in the .sig... would save a lot of confusion on OS specific stuff.

    The windows aptitude test is one of those nifty "cookies" that people should explore.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. change var inside loop and run loop again
    By d387420489 in forum C Programming
    Replies: 5
    Last Post: 07-29-2011, 01:19 AM
  2. For Loop inside While Loop
    By mesmer in forum C Programming
    Replies: 1
    Last Post: 11-29-2008, 12:29 PM
  3. for loop ignoring scanf inside loop
    By xIcyx in forum C Programming
    Replies: 2
    Last Post: 04-17-2007, 01:46 AM
  4. for loop inside of a for loop
    By pippen in forum C++ Programming
    Replies: 5
    Last Post: 03-28-2003, 04:11 PM
  5. Nested Loop
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 05-07-2002, 12:40 AM