Click here to Skip to main content
14,830,769 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Simplifying new lines... Pin
bob169724-Sep-07 12:05
Memberbob169724-Sep-07 12:05 
GeneralRe: Simplifying new lines... Pin
MoboTech4-Sep-07 12:10
MemberMoboTech4-Sep-07 12:10 
GeneralRe: Simplifying new lines... Pin
Mark Salsbery4-Sep-07 12:27
MemberMark Salsbery4-Sep-07 12:27 
GeneralRe: Simplifying new lines... Pin
MoboTech4-Sep-07 13:06
MemberMoboTech4-Sep-07 13:06 
GeneralRe: Simplifying new lines... Pin
Mark Salsbery4-Sep-07 13:19
MemberMark Salsbery4-Sep-07 13:19 
GeneralRe: Simplifying new lines... Pin
David Crow4-Sep-07 13:28
MemberDavid Crow4-Sep-07 13:28 
GeneralRe: Simplifying new lines... Pin
songjacky4-Sep-07 13:49
Membersongjacky4-Sep-07 13:49 
AnswerRe: Simplifying new lines... Pin
bob169724-Sep-07 16:17
Memberbob169724-Sep-07 16:17 
// Lyrics.cpp : Displaying Lyrics.
// Steve Baker

#include "stdafx.h"

char* stuff[]= {
{"'Gone Crazy'"},
{"by Alan Jackson"},
{""},
{"Here I am all alone again tonight"},
{"In this old empty house"},
{"It's hard to learn what you don't think you need"},
{"You can't live without"},
{"Never leave the sound of the telephone"},
{"But ever since you left"},
{"I've been gone"},
{"Gone carzy, goin' out of my mind"},
{"I've asked myself the reasons,"},
{"at least least thousand times,"},
{""}
};

char otherStuff[]={
"\
'Gone Crazy'\n\
by Alan Jackson\n\
\n\
Here I am all alone again tonight\n\
In this old empty house\n\
It's hard to learn what you don't think you need\n\
You can't live without\n\
Never leave the sound of the telephone\n\
But ever since you left\n\
I've been gone\n\
Gone carzy, goin' out of my mind\n\
I've asked myself the reasons,\n\
at least least thousand times,\n\
\n"
};

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
int nCount=(sizeof(stuff)/sizeof(char*));

// One way...
for (int i=0;i<nCount;++i) {
cout << stuff[i] << endl;
}

// Another way...
cout << otherStuff << endl;

cout << "Press the Enter key to continue...";
cin.ignore(99,'\n');

return 0;
}
QuestionHow to measure user inactivity? Pin
concoran4-Sep-07 11:40
Memberconcoran4-Sep-07 11:40 
AnswerRe: How to measure user inactivity? Pin
concoran4-Sep-07 11:43
Memberconcoran4-Sep-07 11:43 
GeneralRe: How to measure user inactivity? Pin
Russell'4-Sep-07 21:24
MemberRussell'4-Sep-07 21:24 
GeneralRe: How to measure user inactivity? Pin
Rajesh R Subramanian5-Sep-07 0:33
professionalRajesh R Subramanian5-Sep-07 0:33 
GeneralRe: How to measure user inactivity? Pin
Russell'5-Sep-07 0:42
MemberRussell'5-Sep-07 0:42 
GeneralRe: How to measure user inactivity? Pin
Rajesh R Subramanian5-Sep-07 0:50
professionalRajesh R Subramanian5-Sep-07 0:50 
GeneralRe: How to measure user inactivity? Pin
Russell'5-Sep-07 1:02
MemberRussell'5-Sep-07 1:02 
GeneralRe: How to measure user inactivity? Pin
Rajesh R Subramanian5-Sep-07 0:35
professionalRajesh R Subramanian5-Sep-07 0:35 
QuestionHow to terminate an MFC application after a period of inactivity Pin
Sriramak4-Sep-07 11:09
MemberSriramak4-Sep-07 11:09 
AnswerRe: How to terminate an MFC application after a period of inactivity Pin
led mike4-Sep-07 11:31
Memberled mike4-Sep-07 11:31 
AnswerRe: How to terminate an MFC application after a period of inactivity Pin
Vaclav_4-Sep-07 11:33
MemberVaclav_4-Sep-07 11:33 
AnswerRe: How to terminate an MFC application after a period of inactivity Pin
David Crow4-Sep-07 13:38
MemberDavid Crow4-Sep-07 13:38 
GeneralRe: How to terminate an MFC application after a period of inactivity Pin
Vaclav_5-Sep-07 3:15
MemberVaclav_5-Sep-07 3:15 
GeneralRe: How to terminate an MFC application after a period of inactivity Pin
David Crow5-Sep-07 3:25
MemberDavid Crow5-Sep-07 3:25 
GeneralRe: How to terminate an MFC application after a period of inactivity Pin
Vaclav_5-Sep-07 6:12
MemberVaclav_5-Sep-07 6:12 
GeneralRe: How to terminate an MFC application after a period of inactivity Pin
David Crow5-Sep-07 6:18
MemberDavid Crow5-Sep-07 6:18 
QuestionPossible to prevent [Space] key from pressing OK, and [Esc] pressing CANCEL ? Pin
abiemann4-Sep-07 9:42
Memberabiemann4-Sep-07 9:42 

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.