Click here to Skip to main content
16,016,623 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Picture Erases Pin
Perspx14-Nov-08 22:18
Perspx14-Nov-08 22:18 
AnswerRe: Picture Erases Pin
Aabid14-Nov-08 22:22
Aabid14-Nov-08 22:22 
AnswerRe: Picture Erases Pin
Hamid_RT14-Nov-08 23:00
Hamid_RT14-Nov-08 23:00 
GeneralRe: Picture Erases Pin
Aabid14-Nov-08 23:07
Aabid14-Nov-08 23:07 
GeneralRe: Picture Erases Pin
Hamid_RT14-Nov-08 23:11
Hamid_RT14-Nov-08 23:11 
QuestionC program small question Pin
nuttynibbles14-Nov-08 18:39
nuttynibbles14-Nov-08 18:39 
AnswerRe: C program small question Pin
PJ Arends14-Nov-08 19:19
professionalPJ Arends14-Nov-08 19:19 
AnswerRe: C program small question Pin
CPallini14-Nov-08 21:15
mveCPallini14-Nov-08 21:15 
In the program (1) you're printing all the input characters coming from the console
(you're printing eve '\n'.

In program (2) you're printing all odd characters coming from the console (and you're checking for the termination condition only on the even one). This (probably unwanted) beahavior is due to the double call of getchar() (one is in the while condition): each call returns a new character from the console.

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

GeneralRe: C program small question Pin
nuttynibbles15-Nov-08 1:24
nuttynibbles15-Nov-08 1:24 
QuestionTransparency problem Pin
Dhiraj kumar Saini14-Nov-08 17:59
Dhiraj kumar Saini14-Nov-08 17:59 
AnswerRe: Transparency problem Pin
Hamid_RT14-Nov-08 23:08
Hamid_RT14-Nov-08 23:08 
GeneralRe: Transparency problem Pin
Dhiraj kumar Saini15-Nov-08 0:05
Dhiraj kumar Saini15-Nov-08 0:05 
GeneralRe: Transparency problem Pin
Hamid_RT15-Nov-08 1:42
Hamid_RT15-Nov-08 1:42 
GeneralRe: Transparency problem Pin
Code-o-mat15-Nov-08 3:40
Code-o-mat15-Nov-08 3:40 
QuestionProblems with indexer in a ListControl Pin
Larry Mills Sr14-Nov-08 10:45
Larry Mills Sr14-Nov-08 10:45 
AnswerRe: Problems with indexer in a ListControl Pin
Code-o-mat14-Nov-08 23:37
Code-o-mat14-Nov-08 23:37 
GeneralRe: Problems with indexer in a ListControl Pin
Larry Mills Sr16-Nov-08 3:44
Larry Mills Sr16-Nov-08 3:44 
QuestionHow to catch tab key for controls? Pin
sabdalla8014-Nov-08 10:32
sabdalla8014-Nov-08 10:32 
AnswerRe: How to catch tab key for controls? Pin
Hamid_RT14-Nov-08 23:09
Hamid_RT14-Nov-08 23:09 
AnswerRe: How to catch tab key for controls? Pin
josip cagalj16-Nov-08 21:51
josip cagalj16-Nov-08 21:51 
QuestionCreateFileMapping and OpenFileMapping accross different users. Pin
Darrel Q Pham14-Nov-08 8:27
Darrel Q Pham14-Nov-08 8:27 
AnswerRe: CreateFileMapping and OpenFileMapping accross different users. Pin
Randor 14-Nov-08 8:49
professional Randor 14-Nov-08 8:49 
GeneralRe: CreateFileMapping and OpenFileMapping accross different users. Pin
Darrel Q Pham14-Nov-08 8:56
Darrel Q Pham14-Nov-08 8:56 
GeneralRe: CreateFileMapping and OpenFileMapping accross different users. Pin
Randor 14-Nov-08 9:35
professional Randor 14-Nov-08 9:35 
GeneralRe: CreateFileMapping and OpenFileMapping accross different users. Pin
Darrel Q Pham14-Nov-08 10:44
Darrel Q Pham14-Nov-08 10:44 

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.