1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

class/functions Help

Discussion in 'C++' started by abyss, May 26, 2007.

Thread Status:
Not open for further replies.
  1. abyss

    abyss New Member

    Joined:
    May 26, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I'm mainly trying to figure how to understand and implement classes/functions. I'm trying to create a program where the user enters yes or no, if there is a disc or a manual in a game case. Im just doing it as a starter program. Please dont flame, thank you!

    Code:
    #include stdlib.h
    #include iostream.h
    using namespace std;
    
     
    
    int main()
    {
        char Gamecheck;
        cout << "Is there a disc?" << endl;
     cin >> DiscCheck >> endl;
    
    void Gamecheck::CheckDisc(int DiscCheck);
    { // check for cd
         if (DiscCheck == "yes")
         {
         // make a statement for cd missing
         }
         else
         {
         // remaining statement
         }
         }
         
        cin.get();
    }
     
    Last edited by a moderator: May 26, 2007
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    Duplicate of [thread=4431]class/functions Help[/thread]. Thread closed.
     
Thread Status:
Not open for further replies.

Share This Page