Click here to Skip to main content
16,011,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGet execution time with Borland C++ Pin
kalamatianos12-Mar-03 13:26
kalamatianos12-Mar-03 13:26 
GeneralRe: Get execution time with Borland C++ Pin
Anonymous12-Mar-03 13:37
Anonymous12-Mar-03 13:37 
GeneralRe: Get execution time with Borland C++ Pin
kalamatianos12-Mar-03 13:48
kalamatianos12-Mar-03 13:48 
GeneralRe: Get execution time with Borland C++ Pin
kalamatianos13-Mar-03 3:51
kalamatianos13-Mar-03 3:51 
Questionhow to terminate the loop containing scanf? Pin
jcute12-Mar-03 13:07
jcute12-Mar-03 13:07 
AnswerRe: how to terminate the loop containing scanf? Pin
HJo12-Mar-03 20:29
HJo12-Mar-03 20:29 
GeneralRe: how to terminate the loop containing scanf? Pin
jcute13-Mar-03 1:59
jcute13-Mar-03 1:59 
GeneralRe: how to terminate the loop containing scanf? Pin
HJo13-Mar-03 4:21
HJo13-Mar-03 4:21 
Yes. If you don't want to wait for enter, you should read one character at a time, e.g. getchar().

Example from MSDN:

/* GETC.C: This program uses getchar to read a single line<br />
 * of input from stdin, places this input in buffer, then<br />
 * terminates the string before printing it to the screen.<br />
 */<br />
<br />
#include <stdio.h><br />
<br />
void main( void )<br />
{<br />
   char buffer[81];<br />
   int i, ch;<br />
<br />
   printf( "Enter a line: " );<br />
<br />
   /* Read in single line from "stdin": */<br />
   for( i = 0; (i < 80) &&  ((ch = getchar()) != EOF) <br />
                        && (ch != '\n'); i++ )<br />
      buffer[i] = (char)ch;<br />
<br />
   /* Terminate string with null character: */<br />
   buffer[i] = '\0';<br />
   printf( "%s\n", buffer );<br />
}

GeneralHide cursor withour ShowCursor Pin
TianYang12-Mar-03 12:13
TianYang12-Mar-03 12:13 
GeneralPlace Graphic at top right of menu like Internet Explorer Pin
ScottPrusinoski12-Mar-03 10:29
ScottPrusinoski12-Mar-03 10:29 
GeneralRe: Place Graphic at top right of menu like Internet Explorer Pin
includeh1012-Mar-03 13:51
includeh1012-Mar-03 13:51 
GeneralRe: Place Graphic at top right of menu like Internet Explorer Pin
Michael Dunn12-Mar-03 14:02
sitebuilderMichael Dunn12-Mar-03 14:02 
GeneralSend Email from dialog based appl Pin
AWebDude12-Mar-03 10:27
AWebDude12-Mar-03 10:27 
GeneralRe: Send Email from dialog based appl Pin
jmkhael12-Mar-03 10:31
jmkhael12-Mar-03 10:31 
GeneralRe: Send Email from dialog based appl Pin
AWebDude12-Mar-03 14:04
AWebDude12-Mar-03 14:04 
GeneralRe: Send Email from dialog based appl Pin
Rickard Andersson2012-Mar-03 20:56
Rickard Andersson2012-Mar-03 20:56 
GeneralRe: Send Email from dialog based appl Pin
SankaranPV13-Mar-03 2:57
SankaranPV13-Mar-03 2:57 
GeneralDialog Bar Pin
Gary Kirkham12-Mar-03 10:22
Gary Kirkham12-Mar-03 10:22 
GeneralRe: Dialog Bar Pin
valikac12-Mar-03 11:00
valikac12-Mar-03 11:00 
GeneralRe: Dialog Bar Pin
Yuri Kreinin12-Mar-03 11:02
Yuri Kreinin12-Mar-03 11:02 
GeneralDirectplay voice echo problem Pin
chengnan12-Mar-03 9:36
chengnan12-Mar-03 9:36 
QuestionDetect DirectX version? Pin
dandy7212-Mar-03 8:00
dandy7212-Mar-03 8:00 
AnswerRe: Detect DirectX version? Pin
Dominik Reichl12-Mar-03 8:40
Dominik Reichl12-Mar-03 8:40 
GeneralRe: Detect DirectX version? Pin
dandy7213-Mar-03 3:36
dandy7213-Mar-03 3:36 
GeneralProblem working with DLL: Main APP.EXE without some features Pin
Cris12-Mar-03 7:57
Cris12-Mar-03 7:57 

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.