|
-
October 6th, 2011, 11:18 AM
#1
debug mode
forgive me for lack of more info. In the "start debugging" mode, in case 1, the main never begins, i see circled cursor, but in case 2 it does. why?. vc2008.
case 1:
int main(...)
{
std::cout << "Begin .." < std:;endl;
Myclass myc;
myc = ref.rcl(...);
if A(...)
{
...
myf.open(myc.f().file1);
myf.close();
myf.clear();
}
if B(...)
{
...
myf.open(myc.f().file1);
myf.close();
myf.clear();
}
if C(...)
{
...
myf.open(myc.f().file1);
myf.close();
myf.clear();
}
etc.
}
case 2:
int main(...)
{
Myclass myc;
myc = ref.(...);
char *s = myc.f().file1;
if A(...)
{
...
myf.open(s);
myf.close();
myf.clear();
}
if B(...)
{
...
myf.open(s);
myf.close();
myf.clear();
}
if C(...)
{
...
myf.open(s);
myf.close();
myf.clear();
}
etc.
}
-
October 6th, 2011, 11:52 AM
#2
Re: debug mode
No idea what you're trying to do. Why would the definition of main be inside a switch statement?
-
October 6th, 2011, 12:31 PM
#3
Re: debug mode

Spotted this however
Code:
std::cout << "Begin .." < std:;endl;
but since the entire code is mutilated it probably doesn't mean anything.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|