Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Icon library format Pin
amehrpour28-Feb-05 12:11
amehrpour28-Feb-05 12:11 
GeneralRe: Icon library format Pin
David Crow28-Feb-05 8:00
David Crow28-Feb-05 8:00 
Generalcreate full duplex mode network Pin
javad_200528-Feb-05 6:41
javad_200528-Feb-05 6:41 
GeneralNew window in MFC for OpenGL rendering Pin
tordyvel28-Feb-05 6:36
tordyvel28-Feb-05 6:36 
GeneralBitmap Display Help Pin
LighthouseJ28-Feb-05 6:30
LighthouseJ28-Feb-05 6:30 
QuestionFont problem? Pin
RJT23428-Feb-05 6:23
RJT23428-Feb-05 6:23 
AnswerRe: Font problem? Pin
zhang80060528-Feb-05 21:08
zhang80060528-Feb-05 21:08 
Generalmystified Pin
gyrvwrzp28-Feb-05 6:17
gyrvwrzp28-Feb-05 6:17 
note where ive placed the comments in the following code and could you explain the results im getting, thanks.


// Evaluates a given input.

#include <iostream>
#include <conio.h>
using namespace std;

char menu(void);

char command = menu(); // dosent work here

void switchn()
{

char command = menu(); // works ok here

switch ( command )
{
case 'e':
case 'A': cout << "plebs";
break;
case 'j':
case 'B': cout << "flebs";
break;
default: cout << '\a' << flush;
}
getch();
return;
}

char menu(void)
{
char a;
cin >> a;

return a;
}
GeneralRe: mystified Pin
Blake Miller28-Feb-05 7:02
Blake Miller28-Feb-05 7:02 
Generalresizing View Pin
act_x28-Feb-05 5:35
act_x28-Feb-05 5:35 
GeneralRe: resizing View Pin
valikac28-Feb-05 18:56
valikac28-Feb-05 18:56 
GeneralCreating buttons and CRect Pin
bcemick28-Feb-05 4:05
bcemick28-Feb-05 4:05 
GeneralRe: Creating buttons and CRect Pin
Blake Miller28-Feb-05 5:32
Blake Miller28-Feb-05 5:32 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 6:21
bcemick28-Feb-05 6:21 
GeneralRe: Creating buttons and CRect Pin
Blake Miller28-Feb-05 6:58
Blake Miller28-Feb-05 6:58 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 5:35
professionalPJ Arends28-Feb-05 5:35 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 6:25
bcemick28-Feb-05 6:25 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 6:37
professionalPJ Arends28-Feb-05 6:37 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 6:45
bcemick28-Feb-05 6:45 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 6:53
professionalPJ Arends28-Feb-05 6:53 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 7:23
bcemick28-Feb-05 7:23 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 8:05
professionalPJ Arends28-Feb-05 8:05 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 8:29
bcemick28-Feb-05 8:29 
GeneralRe: Creating buttons and CRect Pin
PJ Arends28-Feb-05 9:57
professionalPJ Arends28-Feb-05 9:57 
GeneralRe: Creating buttons and CRect Pin
bcemick28-Feb-05 10:12
bcemick28-Feb-05 10:12 

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.