none
Game program not getting the proper output

All replies

  • It's nice to see a full listing of your code. However, you should add a description. What does this program do? What is its expected output? How does it differ from the actual output?

    The more detail the better. You need to provide some incentive for someone to run your program and debug it.

    Sunday, May 23, 2010 4:06 PM
  • Actually the program out put should be a game reversi

    But the out put what i am getting is just numbers.

    Monday, May 24, 2010 12:20 AM
  • >But the out put what i am getting is just numbers.

    I suspect the numbers are co-ordinates. You use
    them to enter the row and column where you want
    to place a new piece.

    It's a text-based game. What output did you expect?

    - Wayne
    Monday, May 24, 2010 1:04 AM
  • No it is not text base game.

    Actually the output should be a BoardDisplay and the Discs we have to move

    Hope you heard about a game Revesi?

    Exactly i expect the same out put.

    But i don't understand why the Display board is not getting on the screen?

     

    Monday, May 24, 2010 2:28 AM
  • I'm very familiar with "Reversi" (AKA "Othello"),

    >No it is not text base game.

    Yes, the version *you posted* most certainly *is*
    text-only, no graphics.

    >i don't understand why the Display board is not
    >getting on the screen?

    Because your expectations are wrong. The code you
    have posted does not draw any *graphical* output.

    I trust you're not a C/C++ programmer?

    >the output should be a BoardDisplay and the Discs
    >we have to move

    You don't "move" discs in Reversi. You place new
    discs on the board.

    - Wayne
    Monday, May 24, 2010 2:46 AM
  • You are right i am not a C/C++ programmer.

    I am just trying to learn.

    Please help me how to develop a reversi game using

    VC++ programming software.

     

    Monday, May 24, 2010 4:34 AM
  • Since you have no experience to speak of in C/C++
    the learning curve will be long and steep. Expect
    to spend several months getting up to speed. You
    won't get there just by asking questions in forums.
    You need to work through one or more text books,
    take one or more courses, and/or follow one or
    more tutorials.

    If your main desire is to create a Reversi program,
    you may get there faster by way of Visual Basic.

    - Wayne
    Monday, May 24, 2010 5:31 AM
  • Hi rocky881,

    I am writing to check the status of the issue on your side.  Would you mind letting us know the result of the suggestions? 

    Because you have deleted the code in your initial post, we have no idea how to help you. We suggest you post some sample code, it will be helpful.

    In addition, as a beginner, we suggest you start with a basic C++ book or go through some programming tutorials.

    The MSDN Library is a great tool for you to learn programming; it includes how-to and reference documentation, sample code, technical articles, and more.

    Here is the C++ Beginner’s Guide from MSDN, which makes it easy to learn to use C++ at your own pace.

    http://msdn.microsoft.com/en-us/beginner/cc305129.aspx

     

    We also recommend www.codeproject.com for some excellent tutorials and articles.

     

    Cheers

    Yi Feng Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Friday, May 28, 2010 2:34 AM
    Moderator
  • Hi Mr.Yi Feng Li

    Thank you.

    can you help me how to put a table in a window. actually

    i have designed a program for window using Directx

    now i want to insert some text in that window.

     

    Monday, May 31, 2010 2:33 AM
  • Hi rocky881,

    In Visual C++ Language Forum, issues are regarding the C++ language, compiler, and linker. This forum covers all standardized languages, extensions, and interop technologies supported by Visual C++.

     

    DirectX is out of topic here. There is more information (documents, tutorials and sample codes) about DirectX at Direct development center. If you have any problem related to DirectX, the forum http://forums.xna.com/forums/ is a great place to post the DirectX questions. There are more experts who are familiar with DirectX.

    Cheers

    Yi Feng Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, May 31, 2010 3:18 AM
    Moderator
  • Hi Mr.Yi Feng Li,

    Thank you.

    Can you send me good link to learn algorithms for which helps to make games coding.

     

    Monday, May 31, 2010 6:10 AM
  • Hi rocky881,

    Unfortunately, I’m not familiar with game coding.  I believe the DirectX Tutorial is good way to start.

    Cheers

    Yi Feng Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Monday, May 31, 2010 6:37 AM
    Moderator
  • >Can you send me good link to learn algorithms
    >for which helps to make games coding.

    http://www.gamedev.net

    Note especially:

    Articles and Resources
    http://www.gamedev.net/reference/

    "Welcome to the articles and resources library of
    GameDev.net. Here, you will find over one thousand
    game programming/development tutorials, articles,
    and other resources."

    - Wayne
    Monday, May 31, 2010 5:18 PM
  • Hi Mr.Yi Feng Li

    actually i tried in a single project, First example of for loop program & second example of if else condition with different code.

    but it is compling the First example only.

    can you guide me, In visual studio 2010 C++ using One Project file how to include various .cpp programs?

    thanks.

     

    Thursday, June 03, 2010 1:48 AM
  • Hi rocky881,

    Normally we define all functions in the .h file and implement the functions in the .cpp file. Assume we have two cpp files, A.cpp and B.cpp; we also have two h files for these cpp files, A.h and B.h.   The following sample shows how the A.cpp includes B.cpp using h file.

    // A.h
    void FooA();
    
    // A.cpp
    
    #include "A.h"
    #include "B.h"
    
    FooA(){
    	//to do:
    }
    
    //only one main function
    int main(){
      FooA();
      FooB();
      
      return 0;
    }
    
    //B.h
    void FooB();
    
    //B.cpp
    #include "B.h"
    
    FooB(){
     //to do:
    }

     

    Cheers,

     Yi Feng Li


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Thursday, June 03, 2010 2:48 AM
    Moderator
  • Hi Mr.Yi feng li,

    Actually i am having a program which gives out put on a command line, now i want to display the

    command line output data in window, actually using the DirectX i have created a window but how to insert

    this the command line out put program in to DirectX program or if their is any other examples please

    send me.

     

    Tuesday, June 08, 2010 2:40 AM