can you all take a look at my program code

This is a discussion on can you all take a look at my program code within the C++ Programming forums, part of the General Programming Boards category; alright its an experience calculator for an online game called runescape and its my first actual program that "works". so ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    77

    Post can you all take a look at my program code

    alright its an experience calculator for an online game called runescape and its my first actual program that "works".

    so unless you play the game you wont understand it.

    but can you look over the code and tell me what you think of it, you can compile and run it if you want and put in numbers and see what results you get.

    oh and it only works right now for the first skill, so enjoy .
    Attached Files Attached Files
    Hooked On Phonics Didn't Work For Me!

  2. #2
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,655
    That's cool. I have a suggestion, though. What if you wanted to change this line:

    printf("Enter Current Exp: \n");

    to:

    printf("Enter Your Current Exp: \n");

    You would have to change each repetive code snippet. Instead, whenever possible, try to keep things compact:


    else if(skill >= 2 && skill <= 13)
    {
    printf(" \n");
    printf("Enter Current Exp: \n");
    scanf("%d",&clvl);
    printf("Enter Desired Level: \n");
    scanf("%d",&dlvl);
    }

  3. #3
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Umm, I think his program is not finished and that he'll put more things in those if's later on.
    Otherwise the whole program makes no sense.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    77
    yeah other things will go into the other ifs, and i all the other printf's and scanf's will be changed to cout and cin.
    Hooked On Phonics Didn't Work For Me!

  5. #5
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    In response to your sig, jobolikescake, after reading your last post:

    I agree it didn't work for you 100%

    (no offense heh)

    (I'm not going to bother explaining)

  6. #6
    Registered User
    Join Date
    Jan 2002
    Posts
    77
    ......hmm.....i see what you mean
    Hooked On Phonics Didn't Work For Me!

  7. #7
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    heh, we're all here to learn remember

  8. #8
    Registered User
    Join Date
    Jan 2002
    Posts
    77
    im only physicaly here........not mentaly...try and understand that.
    Hooked On Phonics Didn't Work For Me!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I need the code of few programs in c++.plzzzzz help...plzzz
    By NAVINKR20 in forum C++ Programming
    Replies: 1
    Last Post: 05-08-2009, 09:13 AM
  2. large program code ,please help
    By Ash1981 in forum C Programming
    Replies: 14
    Last Post: 01-30-2006, 05:16 AM
  3. Run A Program from within a cpp code
    By Hexxx in forum C++ Programming
    Replies: 6
    Last Post: 01-02-2006, 07:05 PM
  4. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  5. very difficult code - program
    By gaurav_behl in forum C Programming
    Replies: 2
    Last Post: 06-15-2004, 11:33 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21