Click here to Skip to main content
15,916,188 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Hello world... please help Pin
WakenDJ13-May-07 18:15
WakenDJ13-May-07 18:15 
GeneralRe: Hello world... please help Pin
Christian Graus13-May-07 18:42
protectorChristian Graus13-May-07 18:42 
GeneralRe: Hello world... please help Pin
WakenDJ13-May-07 18:55
WakenDJ13-May-07 18:55 
GeneralRe: Hello world... please help Pin
Christian Graus13-May-07 19:12
protectorChristian Graus13-May-07 19:12 
GeneralRe: Hello world... please help Pin
WakenDJ13-May-07 19:28
WakenDJ13-May-07 19:28 
GeneralRe: Hello world... please help Pin
Christian Graus13-May-07 19:30
protectorChristian Graus13-May-07 19:30 
GeneralRe: Hello world... please help Pin
WakenDJ13-May-07 19:40
WakenDJ13-May-07 19:40 
GeneralRe: Hello world... please help Pin
Christian Graus13-May-07 20:39
protectorChristian Graus13-May-07 20:39 
If you add a break point, the program will stop. If it crashes, then it's broken. If you did what I suggested, then you wouldn't need a breakpoint.

main()
{
int a;

printf("Hello\n");

scanf("%d",&a);
}

This will stop and wait for you to enter a number.

WakenDJ wrote:
Can you please tell me the code about that program with the asterisks? with do...while at least.It is too difficult to find it out.


No - the point of your course is that you learn both C, and how to do a little research. I've told you all you should need to know. The next step is to ask yourself, what does 'do while' do ? How can it be used to create this output you're after ? What data do you need to generate that output ? Think about it in small steps. If you still can't work it out, you need to speak to your teacher for some help, so she knows your level of ability and the difficulty you're having and can tailor her efforts to helping you understand these basic concepts.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Hello world... please help Pin
WakenDJ13-May-07 20:44
WakenDJ13-May-07 20:44 
GeneralRe: Hello world... please help [modified] Pin
Nelek13-May-07 20:49
protectorNelek13-May-07 20:49 
GeneralRe: Hello world... please help Pin
Christian Graus13-May-07 20:54
protectorChristian Graus13-May-07 20:54 
GeneralRe: Hello world... please help Pin
WakenDJ13-May-07 20:58
WakenDJ13-May-07 20:58 
GeneralRe: Hello world... please help Pin
Christian Graus13-May-07 21:46
protectorChristian Graus13-May-07 21:46 
GeneralRe: Hello world... please help Pin
WakenDJ13-May-07 22:14
WakenDJ13-May-07 22:14 
GeneralRe: Hello world... please help Pin
Christian Graus13-May-07 22:34
protectorChristian Graus13-May-07 22:34 
GeneralRe: Hello world... please help Pin
Nelek13-May-07 22:53
protectorNelek13-May-07 22:53 
GeneralRe: Hello world... please help Pin
Nelek13-May-07 22:27
protectorNelek13-May-07 22:27 
GeneralRe: Hello world... please help Pin
Nelek13-May-07 20:46
protectorNelek13-May-07 20:46 
GeneralRe: Hello world... please help Pin
David Crow14-May-07 3:27
David Crow14-May-07 3:27 
QuestionHello world... help Pin
WakenDJ13-May-07 17:23
WakenDJ13-May-07 17:23 
AnswerRe: Hello world... help Pin
amets13-May-07 22:53
amets13-May-07 22:53 
QuestionThreadpool Linker Problem Pin
Cyrilix13-May-07 12:35
Cyrilix13-May-07 12:35 
AnswerRe: Threadpool Linker Problem Pin
led mike13-May-07 15:44
led mike13-May-07 15:44 
GeneralRe: Threadpool Linker Problem Pin
Cyrilix13-May-07 16:59
Cyrilix13-May-07 16:59 
QuestionProblem with print function ? Pin
Lewis0113-May-07 10:31
Lewis0113-May-07 10:31 

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.