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

C / C++ / MFC

 
AnswerRe: CD drive open and close Pin
David Crow5-Sep-07 5:02
David Crow5-Sep-07 5:02 
QuestionReading Wav file [modified] Pin
rp_suman4-Sep-07 16:20
rp_suman4-Sep-07 16:20 
AnswerRe: Reading Wav file Pin
David Crow4-Sep-07 17:11
David Crow4-Sep-07 17:11 
AnswerRe: Reading Wav file Pin
Stephen Hewitt4-Sep-07 22:17
Stephen Hewitt4-Sep-07 22:17 
GeneralRe: Reading Wav file Pin
rp_suman5-Sep-07 15:23
rp_suman5-Sep-07 15:23 
AnswerRe: Reading Wav file Pin
Russell'4-Sep-07 23:53
Russell'4-Sep-07 23:53 
GeneralRe: Reading Wav file Pin
rp_suman5-Sep-07 15:29
rp_suman5-Sep-07 15:29 
QuestionSimplifying new lines... Pin
MoboTech4-Sep-07 11:57
MoboTech4-Sep-07 11:57 
When I apply new lines, I feel that there's got to be a more easier and byte consuming way of making new lines. I'm new to the programming scene, so much help is appreciated. Instead of applying cout and endl beside every line, is there a more common and better way of doing this? Please offer advice. Thank you.

Here's my code:

// Lyrics.cpp : Displaying Lyrics.<br />
// Steve Baker<br />
<br />
#include "stdafx.h"<br />
#include <iostream><br />
<br />
using namespace std;<br />
<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
<br />
	cout << "'Gone Crazy'" << endl;<br />
	cout << "by Alan Jackson" << endl;<br />
	cout << endl;<br />
<br />
	cout << "Here I am all alone again tonight" << endl;<br />
	cout << "In this old empty house" << endl;<br />
	cout << "It's hard to learn what you don't think you need" << endl;<br />
	cout << "You can't live without" << endl;<br />
	cout << "Never leave the sound of the telephone" << endl;<br />
	cout << "But ever since you left" << endl;<br />
	cout << "I've been gone" << endl;<br />
	cout << "Gone carzy, goin' out of my mind" << endl;<br />
	cout << "I've asked myself the reasons," << endl;<br />
	cout << "at least least thousand times," << endl;<br />
	cout << endl;<br />
<br />
	cout << "Press the Enter key to continue...";<br />
	cin.ignore(99,'\n');<br />
<br />
return 0;<br />
}

AnswerRe: Simplifying new lines... Pin
bob169724-Sep-07 12:05
bob169724-Sep-07 12:05 
GeneralRe: Simplifying new lines... Pin
MoboTech4-Sep-07 12:10
MoboTech4-Sep-07 12:10 
GeneralRe: Simplifying new lines... Pin
Mark Salsbery4-Sep-07 12:27
Mark Salsbery4-Sep-07 12:27 
GeneralRe: Simplifying new lines... Pin
MoboTech4-Sep-07 13:06
MoboTech4-Sep-07 13:06 
GeneralRe: Simplifying new lines... Pin
Mark Salsbery4-Sep-07 13:19
Mark Salsbery4-Sep-07 13:19 
GeneralRe: Simplifying new lines... Pin
David Crow4-Sep-07 13:28
David Crow4-Sep-07 13:28 
GeneralRe: Simplifying new lines... Pin
songjacky4-Sep-07 13:49
songjacky4-Sep-07 13:49 
AnswerRe: Simplifying new lines... Pin
bob169724-Sep-07 16:17
bob169724-Sep-07 16:17 
QuestionHow to measure user inactivity? Pin
concoran4-Sep-07 11:40
concoran4-Sep-07 11:40 
AnswerRe: How to measure user inactivity? Pin
concoran4-Sep-07 11:43
concoran4-Sep-07 11:43 
GeneralRe: How to measure user inactivity? Pin
Russell'4-Sep-07 21:24
Russell'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
Russell'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
Russell'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
Sriramak4-Sep-07 11:09 

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.