Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Questions about creating a 3D array class Pin
Branislav26-Sep-07 0:29
Branislav26-Sep-07 0:29 
Questionwav file Pin
aldo hexosa25-Sep-07 18:04
professionalaldo hexosa25-Sep-07 18:04 
AnswerRe: wav file Pin
Nishad S25-Sep-07 19:43
Nishad S25-Sep-07 19:43 
AnswerRe: wav file Pin
Mark Salsbery26-Sep-07 6:17
Mark Salsbery26-Sep-07 6:17 
QuestionReplace numbers with words? Pin
MoboTech25-Sep-07 18:00
MoboTech25-Sep-07 18:00 
AnswerRe: Replace numbers with words? Pin
Nishad S25-Sep-07 19:39
Nishad S25-Sep-07 19:39 
GeneralRe: Replace numbers with words? Pin
MoboTech25-Sep-07 19:44
MoboTech25-Sep-07 19:44 
GeneralRe: Replace numbers with words? Pin
Nishad S25-Sep-07 20:03
Nishad S25-Sep-07 20:03 
I see...

I think you are seeking for a logic using if-else or functions, right?
Well... Smile | :)


char* MonthToStr( int n )
{
    if( n == 1 ) return "Jan";
    else if( n == 2 ) return "Jan";
    // .....
    // .....
    else if( n == 12 ) return "Dec";
    else return "Invalid";
}

main()
{
    char* s = MonthToStr( 1 );
}


- NS -

AnswerRe: Replace numbers with words? Pin
p_25-Sep-07 20:18
p_25-Sep-07 20:18 
AnswerRe: Replace numbers with words? Pin
toxcct25-Sep-07 21:00
toxcct25-Sep-07 21:00 
GeneralRe: Replace numbers with words? Pin
MoboTech25-Sep-07 21:15
MoboTech25-Sep-07 21:15 
GeneralRe: Replace numbers with words? Pin
toxcct25-Sep-07 21:24
toxcct25-Sep-07 21:24 
GeneralRe: Replace numbers with words? Pin
MoboTech25-Sep-07 21:40
MoboTech25-Sep-07 21:40 
GeneralRe: Replace numbers with words? Pin
toxcct25-Sep-07 21:47
toxcct25-Sep-07 21:47 
GeneralRe: Replace numbers with words? Pin
MoboTech25-Sep-07 22:01
MoboTech25-Sep-07 22:01 
GeneralRe: Replace numbers with words? Pin
toxcct25-Sep-07 22:05
toxcct25-Sep-07 22:05 
GeneralRe: Replace numbers with words? Pin
MoboTech25-Sep-07 22:15
MoboTech25-Sep-07 22:15 
GeneralRe: Replace numbers with words? Pin
Eytukan26-Sep-07 4:45
Eytukan26-Sep-07 4:45 
GeneralRe: Replace numbers with words? Pin
Jeremy Falcon26-Sep-07 5:00
professionalJeremy Falcon26-Sep-07 5:00 
GeneralRe: Replace numbers with words? Pin
Christian Graus25-Sep-07 22:39
protectorChristian Graus25-Sep-07 22:39 
GeneralRe: Replace numbers with words? Pin
MoboTech25-Sep-07 22:52
MoboTech25-Sep-07 22:52 
GeneralListen! [modified] Pin
Eytukan26-Sep-07 4:37
Eytukan26-Sep-07 4:37 
GeneralRe: Replace numbers with words? Pin
David Crow26-Sep-07 3:22
David Crow26-Sep-07 3:22 
GeneralRe: Replace numbers with words? Pin
El Corazon26-Sep-07 3:27
El Corazon26-Sep-07 3:27 
GeneralRe: Replace numbers with words? Pin
Shog926-Sep-07 3:55
sitebuilderShog926-Sep-07 3:55 

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.