Click here to Skip to main content
15,905,229 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem of Edit Box Control. Pin
David Crow2-Apr-08 3:35
David Crow2-Apr-08 3:35 
GeneralCreating dynamic output in command prompt Pin
Auchioane2-Apr-08 1:31
Auchioane2-Apr-08 1:31 
GeneralRe: Creating dynamic output in command prompt Pin
Cedric Moonen2-Apr-08 2:12
Cedric Moonen2-Apr-08 2:12 
GeneralRe: Creating dynamic output in command prompt Pin
Auchioane2-Apr-08 2:44
Auchioane2-Apr-08 2:44 
GeneralRe: Creating dynamic output in command prompt Pin
Cedric Moonen2-Apr-08 2:57
Cedric Moonen2-Apr-08 2:57 
GeneralRe: Creating dynamic output in command prompt Pin
Auchioane2-Apr-08 12:03
Auchioane2-Apr-08 12:03 
GeneralRe: Creating dynamic output in command prompt Pin
Cedric Moonen2-Apr-08 20:36
Cedric Moonen2-Apr-08 20:36 
GeneralRe: Creating dynamic output in command prompt Pin
Maximilien2-Apr-08 2:48
Maximilien2-Apr-08 2:48 
You are wanting to do a simple "text interface".

Well, you need a lot of std::cout, std::cin, and a "state machne"

for example :

you have this menu ( I assume typing the number will "do" the action)

1.create new object
2.quit to main menu

user press "1" this will do the "create new object" action and print the same menu again (stays in the same state); user press "2" then the program goes to a new state) and print the "main menu" (for example )

1.score
2.create new object
3.quite to main menu

user press "1" to do the score state (or action).

'anyway, I hope you get the picture.

One suggestion, is to take a piece of paper, a pen and draw the different link (arrows) between each action and each "state" and after the "scenario" is drawn, try to put in in code. (lot of if, case, loops, ...

Maximilien Lincourt
Your Head A Splode - Strong Bad

GeneralRe: Creating dynamic output in command prompt Pin
Auchioane2-Apr-08 16:00
Auchioane2-Apr-08 16:00 
QuestionCallStack checking? Pin
RamaraoPV2-Apr-08 0:35
RamaraoPV2-Apr-08 0:35 
GeneralRe: CallStack checking? Pin
Cedric Moonen2-Apr-08 0:57
Cedric Moonen2-Apr-08 0:57 
GeneralRe:Thanks still i have the question? Pin
RamaraoPV2-Apr-08 1:13
RamaraoPV2-Apr-08 1:13 
GeneralRe:Thanks still i have the question? Pin
Cedric Moonen2-Apr-08 2:14
Cedric Moonen2-Apr-08 2:14 
GeneralPrinter DC Pin
Developer6112-Apr-08 0:22
Developer6112-Apr-08 0:22 
GeneralRe: Printer DC Pin
_AnsHUMAN_ 2-Apr-08 1:14
_AnsHUMAN_ 2-Apr-08 1:14 
GeneralRe: Printer DC Pin
Developer6112-Apr-08 1:28
Developer6112-Apr-08 1:28 
GeneralRe: Printer DC Pin
Rajkumar R2-Apr-08 1:51
Rajkumar R2-Apr-08 1:51 
GeneralRe: Printer DC Pin
Rajkumar R2-Apr-08 1:19
Rajkumar R2-Apr-08 1:19 
GeneralRe: Printer DC Pin
Krishnakumartg3-Apr-08 21:37
Krishnakumartg3-Apr-08 21:37 
GeneralRe: Printer DC Pin
Hamid_RT7-Apr-08 3:54
Hamid_RT7-Apr-08 3:54 
QuestionHow to get focus to property sheet in windows programming(win32) Pin
Swty2-Apr-08 0:15
Swty2-Apr-08 0:15 
GeneralApplication is crashing when trying to display messagebox Pin
RamaraoPV2-Apr-08 0:11
RamaraoPV2-Apr-08 0:11 
QuestionRe: Application is crashing when trying to display messagebox Pin
CPallini2-Apr-08 1:51
mveCPallini2-Apr-08 1:51 
QuestionRe: Application is crashing when trying to display messagebox Pin
RamaraoPV2-Apr-08 2:10
RamaraoPV2-Apr-08 2:10 
GeneralRe: Application is crashing when trying to display messagebox Pin
Cedric Moonen2-Apr-08 2:21
Cedric Moonen2-Apr-08 2:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.