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

C / C++ / MFC

 
GeneralRe: DLL Pin
Michael Dunn3-Mar-02 7:33
sitebuilderMichael Dunn3-Mar-02 7:33 
Questionhow do i use DeleteObject()... Pin
John Cruz2-Mar-02 21:44
John Cruz2-Mar-02 21:44 
AnswerRe: how do i use DeleteObject()... Pin
Christian Graus2-Mar-02 21:44
protectorChristian Graus2-Mar-02 21:44 
GeneralRe: how do i use DeleteObject()... Pin
John Cruz2-Mar-02 21:57
John Cruz2-Mar-02 21:57 
GeneralTexture filter in OpenGL Pin
Mazdak2-Mar-02 19:30
Mazdak2-Mar-02 19:30 
GeneralRe: Texture filter in OpenGL Pin
alex.barylski2-Mar-02 22:55
alex.barylski2-Mar-02 22:55 
GeneralRe: Texture filter in OpenGL Pin
Mazdak2-Mar-02 23:23
Mazdak2-Mar-02 23:23 
GeneralUsing Delimiter EOF :: C++ Pin
valikac2-Mar-02 19:26
valikac2-Mar-02 19:26 
Hi.

I am working on a small practice program for a C++ class. I need to implement a way to delimite using EOF. The user can break out of a while, for example, with ctrl-d (dos) or ctrl-z (unix).

What is the best way to implement something like that?

I have tried this:

while((num = cin.get()) != EOF) // from Deitel
{}

The above does not work.

Thanks,
Kuphryn
GeneralRe: Using Delimiter EOF :: C++ Pin
Mazdak2-Mar-02 19:29
Mazdak2-Mar-02 19:29 
GeneralATL doubt Pin
Nish Nishant2-Mar-02 18:15
sitebuilderNish Nishant2-Mar-02 18:15 
GeneralRe: ATL doubt Pin
Mazdak2-Mar-02 19:21
Mazdak2-Mar-02 19:21 
GeneralRe: ATL doubt Pin
Nish Nishant2-Mar-02 21:04
sitebuilderNish Nishant2-Mar-02 21:04 
GeneralRe: ATL doubt Pin
Mazdak2-Mar-02 21:28
Mazdak2-Mar-02 21:28 
GeneralRe: ATL doubt Pin
Nish Nishant2-Mar-02 22:30
sitebuilderNish Nishant2-Mar-02 22:30 
GeneralRe: ATL doubt Pin
Christian Graus2-Mar-02 21:41
protectorChristian Graus2-Mar-02 21:41 
GeneralRe: ATL doubt Pin
Nish Nishant2-Mar-02 22:31
sitebuilderNish Nishant2-Mar-02 22:31 
GeneralRe: ATL doubt Pin
Christian Graus2-Mar-02 22:42
protectorChristian Graus2-Mar-02 22:42 
GeneralRe: ATL doubt Pin
Nish Nishant2-Mar-02 23:12
sitebuilderNish Nishant2-Mar-02 23:12 
GeneralRe: ATL doubt Pin
pba_3-Mar-02 2:52
pba_3-Mar-02 2:52 
GeneralRe: ATL doubt Pin
pba_3-Mar-02 3:13
pba_3-Mar-02 3:13 
Questionhow to new a doc in MDI application in programme?? Pin
benben2-Mar-02 17:40
benben2-Mar-02 17:40 
AnswerRe: how to new a doc in MDI application in programme?? Pin
Roger Allen4-Mar-02 1:16
Roger Allen4-Mar-02 1:16 
GeneralHelp writing a game tree for tictactoe Pin
John Cruz2-Mar-02 17:02
John Cruz2-Mar-02 17:02 
GeneralRe: Help writing a game tree for tictactoe Pin
alex.barylski2-Mar-02 18:32
alex.barylski2-Mar-02 18:32 
GeneralRe: Help writing a game tree for tictactoe Pin
John Cruz2-Mar-02 18:50
John Cruz2-Mar-02 18:50 

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.