Thread: Im trying to make SameGame.

  1. #1
    Registered User
    Join Date
    Oct 2012

    Im trying to make SameGame.

    Hey out there, im trying to make SameGame.
    im pretty new to programming, but i couldnt find anything out there there could answer my question
    So i have writed the header file and the and the cpp file.
    But now he wants me to, "Now that we have our game board encapsulated into an object we can create an instance of that object in the document class. Remember that the document class contains all of our game data and it is separated from the view or display code. We will then set up the document as follows. Here is the header file, SameGameDoc.h (changes bolded)." thats my problem i dont understand what he wants me to do, i mean, what i was thinking is that he wants me to write what the 3. picture says (you can see it here "The Same Game" - Creating a Document/View Architecture in MFC - ) inside the header or the cpp file? but since im pretty new i dont understand that much of yet hope someone could help me.


  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Well the key point of the text is pointing out this line of code.

      /*  Instance of the game board */
      CSameGameBoard m_board;
    Here's a simpler introduction to the concept of multiple source files.
    FAQ > Multiple source files for one program (C++ example) -
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-27-2011, 04:14 PM
  2. Establishing 'make clean' with GNU make
    By Jesdisciple in forum C Programming
    Replies: 9
    Last Post: 04-11-2009, 09:10 AM
  3. How would I make a c++ prgoram make a .exe file?
    By Rune Hunter in forum C++ Programming
    Replies: 9
    Last Post: 12-26-2004, 05:56 PM
  4. Make window in VB but make program in C/C++?
    By Boomba in forum Windows Programming
    Replies: 1
    Last Post: 06-23-2004, 12:29 AM
  5. Replies: 6
    Last Post: 04-20-2002, 06:35 PM