Basic Question

Discussion in 'Programming General' started by Darkest Dream, Oct 14, 2013.

Basic Question
  1. Unread #1 - Oct 14, 2013 at 8:56 PM
  2. Darkest Dream
    Joined:
    Jun 26, 2013
    Posts:
    7,457
    Referrals:
    1
    Sythe Gold:
    544
    Vouch Thread:
    Click Here
    Discord Unique ID:
    624783392625524785
    Sythe RSPS Player Two Factor Authentication User In Memory of Jon Christmas 2015 Doge Halloween 2013 Sythe's 10th Anniversary Off Topic Participant Gohan has AIDS
    Heidy Lawrence

    Darkest Dream I prefer to have my nightmares with open eyes.
    Darkest Dream Donor

    Basic Question

    edited out.
     
  3. Unread #2 - Oct 15, 2013 at 3:00 AM
  4. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    Basic Question

    What the fuck is this, BASIC? Doubt you'll find much help on here my friend, nobody's touched that shit in a professional manner in at least a decade. Why they're teaching you that deprecated language is beyond me.

    I've never done BASIC before, but if I had to give you answer it'd be that do-while loop. You're clearing the commandline and reprinting every single iteration as long as a$ is smaller than 6. The logic is weird and wrong imo. You should be looking at asking for input once, checking length, then repeating the process if it is smaller than 6. Right now, the way I see it, you're printing your line a shitload of times and clearing then asking for input. The "?" might be some kind of overflow error result or something.
     
  5. Unread #3 - Oct 15, 2013 at 11:12 AM
  6. Darkest Dream
    Joined:
    Jun 26, 2013
    Posts:
    7,457
    Referrals:
    1
    Sythe Gold:
    544
    Vouch Thread:
    Click Here
    Discord Unique ID:
    624783392625524785
    Sythe RSPS Player Two Factor Authentication User In Memory of Jon Christmas 2015 Doge Halloween 2013 Sythe's 10th Anniversary Off Topic Participant Gohan has AIDS
    Heidy Lawrence

    Darkest Dream I prefer to have my nightmares with open eyes.
    Darkest Dream Donor

    Basic Question

    Thanks for your input blupig, I'll re-work it when I get back to my workstation and see if that fixes it.

    And yes unfortunately it is BASIC -.- They use it as an introduction to programming in some of the computer science classes, don't ask me..
     
< About Python | programmers unite! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site