Im trying to make SameGame.

This is a discussion on Im trying to make SameGame. within the C++ Programming forums, part of the General Programming Boards category; Hey out there, im trying to make SameGame. im pretty new to programming, but i couldnt find anything out there ...

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    1

    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 - Cprogramming.com ) inside the header or the cpp file? but since im pretty new i dont understand that much of yet hope someone could help me.


    Kapslow.

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

    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) - Cprogramming.com
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-27-2011, 05:14 PM
  2. Establishing 'make clean' with GNU make
    By Jesdisciple in forum C Programming
    Replies: 9
    Last Post: 04-11-2009, 10: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, 01:29 AM
  5. Replies: 6
    Last Post: 04-20-2002, 07:35 PM

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