Click here to Skip to main content
15,917,582 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Directory Pin
Ravi Bhavnani25-Apr-02 19:24
professionalRavi Bhavnani25-Apr-02 19:24 
QuestionArgh! Report designer library?? Pin
paulccc25-Apr-02 5:33
paulccc25-Apr-02 5:33 
AnswerRe: Argh! Report designer library?? Pin
Nick Parker25-Apr-02 6:31
protectorNick Parker25-Apr-02 6:31 
GeneralRe: Argh! Report designer library?? Pin
paulccc25-Apr-02 6:35
paulccc25-Apr-02 6:35 
GeneralRe: Argh! Report designer library?? Pin
Nick Parker25-Apr-02 6:48
protectorNick Parker25-Apr-02 6:48 
GeneralRe: Argh! Report designer library?? Pin
paulccc25-Apr-02 6:56
paulccc25-Apr-02 6:56 
GeneralRe: Argh! Report designer library?? Pin
Nick Parker25-Apr-02 7:18
protectorNick Parker25-Apr-02 7:18 
Questionwhats going on?????? Pin
Rajveer25-Apr-02 4:57
Rajveer25-Apr-02 4:57 
This is a C question.

I have the following for loop in my program:

for(double i=0.0; i<360.0; i+=3.0/10.0)
{
//do stuff
}

everything works fine, but I changed it to this because I need to generalize the code later on:

double angle=3.0/10.0;
for(double i=0.0; i<360.0; i+=angle)
{
//do stuff
}

and now the program crashes when I run it. I don't see the difference between either of those two. And "no" there is nothing complicated in the for loop such as changing the value of angle part way through while I'm running through the loop. So what is going on here????????
AnswerRe: whats going on?????? Pin
Ernest Laurentin25-Apr-02 5:17
Ernest Laurentin25-Apr-02 5:17 
AnswerRe: whats going on?????? Pin
Joaquín M López Muñoz25-Apr-02 6:43
Joaquín M López Muñoz25-Apr-02 6:43 
GeneralRe: whats going on?????? Pin
Rajveer25-Apr-02 7:07
Rajveer25-Apr-02 7:07 
GeneralRe: whats going on?????? Pin
Joaquín M López Muñoz25-Apr-02 8:21
Joaquín M López Muñoz25-Apr-02 8:21 
QuestionHow can i destroy a window that doesn't want to? ;) Pin
argaleen25-Apr-02 4:06
argaleen25-Apr-02 4:06 
AnswerRe: How can i destroy a window that doesn't want to? ;) Pin
Ernest Laurentin25-Apr-02 5:02
Ernest Laurentin25-Apr-02 5:02 
GeneralRe: How can i destroy a window that doesn't want to? ;) Pin
argaleen25-Apr-02 5:09
argaleen25-Apr-02 5:09 
GeneralRe: How can i destroy a window that doesn't want to? ;) Pin
Ernest Laurentin25-Apr-02 5:37
Ernest Laurentin25-Apr-02 5:37 
GeneralRe: How can i destroy a window that doesn't want to? ;) Pin
argaleen25-Apr-02 23:08
argaleen25-Apr-02 23:08 
AnswerRe: How can i destroy a window that doesn't want to? ;) Pin
Ollie25-Apr-02 5:12
Ollie25-Apr-02 5:12 
Generalthe "PostMessage" function Pin
Aviv Halperin25-Apr-02 3:56
Aviv Halperin25-Apr-02 3:56 
GeneralRe: the "PostMessage" function Pin
Jeremy Falcon25-Apr-02 4:04
professionalJeremy Falcon25-Apr-02 4:04 
QuestionRead string at a certain point? Pin
Aoife25-Apr-02 3:48
Aoife25-Apr-02 3:48 
AnswerRe: Read string at a certain point? Pin
Michael P Butler25-Apr-02 3:50
Michael P Butler25-Apr-02 3:50 
AnswerRe: Read string at a certain point? Pin
Alexandru Savescu25-Apr-02 3:54
Alexandru Savescu25-Apr-02 3:54 
AnswerRe: Read string at a certain point? Pin
Tim Smith25-Apr-02 3:57
Tim Smith25-Apr-02 3:57 
GeneralRe: Read string at a certain point? Pin
Aoife25-Apr-02 4:49
Aoife25-Apr-02 4:49 

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.