Results 1 to 6 of 6

Thread: Ugh, finally got the isValid function done

  1. #1
    Reemer's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Iowa
    Age
    25
    Posts
    625
    Thanks
    348
    Thanked 414 Times in 242 Posts


    Downloads
    30
    Uploads
    9
    Mentioned
    200 Post(s)
    Time Online
    2 d 17 h 46 m
    Avg. Time Online
    2 m
    Rep Power
    7

    Ugh, finally got the isValid function done

    Would've been a lot easier to count the number of *'s and |'s if I didn't reset their count to 0 every time the loop ran.
    Anyone else hate making stupid mistakes like that? It seems to happen to me a lot.

  2. #2
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,748
    Thanks
    2,779
    Thanked 16,225 Times in 4,236 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2985 Post(s)
    Time Online
    293 d 12 h 12 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    Haha yeah..............sort of...

  3. #3
    Banned
    Join Date
    Dec 2011
    Gender
    Age
    25
    Posts
    490
    Thanks
    304
    Thanked 549 Times in 260 Posts


    Downloads
    13
    Uploads
    4
    Mentioned
    34 Post(s)
    Time Online
    1 h 58 m
    Avg. Time Online
    N/A
    Rep Power
    0

  4. #4
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    What were you trying to do? I think I know a real easy way to do it.

  5. #5
    Reemer's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Iowa
    Age
    25
    Posts
    625
    Thanks
    348
    Thanked 414 Times in 242 Posts


    Downloads
    30
    Uploads
    9
    Mentioned
    200 Post(s)
    Time Online
    2 d 17 h 46 m
    Avg. Time Online
    2 m
    Rep Power
    7
    Quote Originally Posted by Zachafer View Post
    What were you trying to do? I think I know a real easy way to do it.
    It was just for a Java assignment, it had to do with the Mayan number system, which was base 20. It only had four characters that were valid: "*", "|", "0", " ". The *'s were 1 and |'s were 5. |** would be 7 and * | would be 25 (because of the space). It had to be in a certain order (**| wouldn't work), and only 3 |'s were allowed and 4 *'s. No other characters were allowed either.

    It wasn't so bad once I realized my silly mistake. Got the assignment done pretty easily after that.

  6. #6
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14
    Next time check out regex!

  7. The Following User Says Thank You to Zachafer For This Useful Post:

    Miguel (03-11-2012)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •