Help me with a C++ project

Discussion in 'Programming' started by babes_pile, Feb 11, 2009.

  1. #1
    I am making small c++ project for my school assignment and something is going wrong.. Its not showing output properly.. can you guys please help me fix it

    Download it here: http://pyng.org/c++.txt
     
    babes_pile, Feb 11, 2009 IP
  2. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #2
    I gave it a quick glance my C++ is a little rusty. Here's a couple notes:

    void cric(int,int,int,int);
    I think you should declare this outside of main()

    void cric(int,int,int,int);
    Should be void cric(int); because you only pass it one value--ch

    int ch,a,b,c;
    You don't use a,b,c in the main function so you don't need them.

    case '1':
    Remove the quotes around 1 because d is an integer


    Are you getting any specific compiler errors?
     
    plog, Feb 11, 2009 IP
  3. it career

    it career Notable Member

    Messages:
    3,562
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    270
    #3
    What do you mean by output not showing properly ? what exactly is wrong with output?
     
    it career, Feb 11, 2009 IP
  4. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #4
    Take on board what plog said, I didnt see any other issues than what he found.
    If you fix it and you still have problems update the txt file
     
    m0nkeymafia, Feb 16, 2009 IP