|
Nope. I'm not curious.
BTW:
Why do you think so?
Do you really think so?
How old are you?
Where do you come from?
Are you really a Software developer?
What is you preferred food?
Are you a football fan? What team do you support?
No, I'm definitely not curious...
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.
[my articles]
|
|
|
|
|
CPallini wrote: Why do you think so?
Do you really think so?
How old are you?
Where do you come from?
Are you really a Software developer?
What is you preferred food?
Are you a football fan? What team do you support?
Maybe
|
|
|
|
|
Oh.. sorry... now I realize what my answer would mean. you are right, sir. I actually meant to say that the scope of variable aaa is not confined to the 'for' loop and hence it would retain its value for each iteration of the inner and outer for loops.
Regards,
Vijay.
modified on Wednesday, January 30, 2008 9:27:11 AM
|
|
|
|
|
OK. I got the point. Both you and I were a bit inaccurate, indeed.
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.
[my articles]
|
|
|
|
|
CPallini wrote: OK. I got the point
Thanks.
Regards,
Vijay.
|
|
|
|
|
li zhiyuan wrote: any problem?
Quite a lot, indeed.
What about a good C programming language book or tutorial?
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.
[my articles]
|
|
|
|
|
CPallini wrote: What about a good C programming language book or tutorial?
Maybe he should turn to do some HTML or ASP, as what he says in his profile.
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: Maybe he should turn to do some HTML or ASP, as what he says in his profile.
Whatever fancy language he uses, he definitely needs a good C tutorial (every man needs to feel the thrill of the real thing, sooner or later... ).
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.
[my articles]
|
|
|
|
|
thanks for your suggestion..but i really am not familar with C alanguage....how to solve it or any C book or tutorial? thanks again
Li Zhiyuan
5/10/2006
|
|
|
|
|
|
Hi,
I'm working in MFC and have a problem with files that are used by my app. At opening time my app open some files and set's the readonly property to them. Everything works just fine if the app doesn't crash. If the app crashes the files remain readonly. My question is... in what wya can I catch some kind of messages or something when my app crashes and then reset tfe file attributes to previous state?
Thanks
|
|
|
|
|
You don't worry about your application crashes, do you?
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.
[my articles]
|
|
|
|
|
Why don't you fix the crash instead ??
|
|
|
|
|
My opinion is that you should rather be worried about *why* your application is crashing and how to prevent it, than worrying about the file attributes.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
don't set file attributes until u fix the crash
|
|
|
|
|
5!
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Maxwell Chen
|
|
|
|
|
The application crash was by design.
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.
[my articles]
|
|
|
|
|
|
dear all
how to debug just one function? no need to debug other include main function. thanks
Li Zhiyuan
5/10/2006
|
|
|
|
|
What do you mean by "debug only one function" ?
You can set a breakpoint into this function and step line per line with the F10-Key
|
|
|
|
|
F9
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
thanks,
i mean if my project is so big..too much source code, i just want to check my specified function..dun debug anything of project.
thanks
just debug one function..
Li Zhiyuan
5/10/2006
|
|
|
|
|
Are you actually reading the replies you get?
|
|
|
|
|
Keep the cursor in the line of code where you want the execution to stop and then press F9. This will set a breakpoint. Alternatively, you could use DebugBreak(); or use __asm int 3;
Example:
MyFunction(int iVal)
{
i = i+1;
__asm int 3;
}
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|