Adblock breaks this site

Basic Question

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

  1. Darkest Dream

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

    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
    Basic Question

    edited out.
     
  2. Blupig

    Blupig BEEF TOILET
    $5 USD Donor

    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
    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.
     
  3. Darkest Dream

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

    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
    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! >


 
 
Adblock breaks this site