A Question about compilation
-
Why does this compile in Arizona, but not California or New York?
#include <Constitution>//Includes Rights.h as well
#include <stdio>CObject CGunControl(CHandgun pstl, CTarget trgt)
{ CGunControl::CGunCOntrol(pstl, trgt)
{CGunControl,CreateObject(gc);
}
public boolean practice(pstl, trgt)
{int i;
for(i=0;i<5;i++)
{pstl.aim("center");
pstl.squeezeTrigger(1);
}
if(trgt.inTenRing !=5)
{trgt.reset();
pstl.reload(5);
return(False);
}
else
{return(True);
}
}
public void main()
{CHandGun pistol = new(CHandGun);
pistol.load(5);//Initialize Pistol
CTarget target = new(CTarget);
target.reset;//Initialize Target
CGunControl gc = new(CGunControl);
while(!gc.practice(pistol,target));
cout << "Finally!";
return(0);
}Always be a straight shooter, and the Dean of Men will drop like a rock... - old bumper sticker from the '70s
-
Why does this compile in Arizona, but not California or New York?
#include <Constitution>//Includes Rights.h as well
#include <stdio>CObject CGunControl(CHandgun pstl, CTarget trgt)
{ CGunControl::CGunCOntrol(pstl, trgt)
{CGunControl,CreateObject(gc);
}
public boolean practice(pstl, trgt)
{int i;
for(i=0;i<5;i++)
{pstl.aim("center");
pstl.squeezeTrigger(1);
}
if(trgt.inTenRing !=5)
{trgt.reset();
pstl.reload(5);
return(False);
}
else
{return(True);
}
}
public void main()
{CHandGun pistol = new(CHandGun);
pistol.load(5);//Initialize Pistol
CTarget target = new(CTarget);
target.reset;//Initialize Target
CGunControl gc = new(CGunControl);
while(!gc.practice(pistol,target));
cout << "Finally!";
return(0);
}Always be a straight shooter, and the Dean of Men will drop like a rock... - old bumper sticker from the '70s
Is CGunControl derived from CWnd or are you using the 3rd party CStatutes Class stuff, My compiler still doesn't handle type Bool So I can't return True Oh yeah please post this kinda techo question in the appropriate forums for the best responses. :-) Regardz Colin J Davies
Sonork ID 100.9197:Colin
I live in Bob's HungOut now
-
Why does this compile in Arizona, but not California or New York?
#include <Constitution>//Includes Rights.h as well
#include <stdio>CObject CGunControl(CHandgun pstl, CTarget trgt)
{ CGunControl::CGunCOntrol(pstl, trgt)
{CGunControl,CreateObject(gc);
}
public boolean practice(pstl, trgt)
{int i;
for(i=0;i<5;i++)
{pstl.aim("center");
pstl.squeezeTrigger(1);
}
if(trgt.inTenRing !=5)
{trgt.reset();
pstl.reload(5);
return(False);
}
else
{return(True);
}
}
public void main()
{CHandGun pistol = new(CHandGun);
pistol.load(5);//Initialize Pistol
CTarget target = new(CTarget);
target.reset;//Initialize Target
CGunControl gc = new(CGunControl);
while(!gc.practice(pistol,target));
cout << "Finally!";
return(0);
}Always be a straight shooter, and the Dean of Men will drop like a rock... - old bumper sticker from the '70s
I think this question should be asked in the .NET forum! Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
-
Is CGunControl derived from CWnd or are you using the 3rd party CStatutes Class stuff, My compiler still doesn't handle type Bool So I can't return True Oh yeah please post this kinda techo question in the appropriate forums for the best responses. :-) Regardz Colin J Davies
Sonork ID 100.9197:Colin
I live in Bob's HungOut now
Colin I jus found out that td and tr tags dont work. See below :- Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
-
Colin I jus found out that td and tr tags dont work. See below :- Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
This is intersting Nish, Lets think up some ways of exploiting it before Chris finds out, :-) Suggestions ?
Regardz Colin J Davies
Sonork ID 100.9197:Colin
I live in Bob's HungOut now
-
This is intersting Nish, Lets think up some ways of exploiting it before Chris finds out, :-) Suggestions ?
Regardz Colin J Davies
Sonork ID 100.9197:Colin
I live in Bob's HungOut now
We could post a tutorial and teach people about the use of and
It'll be easy as we can type in
without having to use & and lt and ; :-) Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
-
We could post a tutorial and teach people about the use of and
It'll be easy as we can type in
without having to use & and lt and ; :-) Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
Hmmm not exactly what I was thinking Nish, But its good to see you are thinking and not asleep. :-) Regardz Colin J Davies
Sonork ID 100.9197:Colin
I live in Bob's HungOut now
-
Is CGunControl derived from CWnd or are you using the 3rd party CStatutes Class stuff, My compiler still doesn't handle type Bool So I can't return True Oh yeah please post this kinda techo question in the appropriate forums for the best responses. :-) Regardz Colin J Davies
Sonork ID 100.9197:Colin
I live in Bob's HungOut now
Colin Davies wrote: My compiler still doesn't handle type Bool The rednecks here see everything in absolutes, so all matters are either True or False - no shades of grey. For some reason, that seems to make all languages accept boolean types. I suspect that Microsoft, in its collective wisdom, ships a special version of the compiler to this state. That would certainly explain why it only compiles here:) Colin Davies wrote: Oh yeah please post this kinda techo question in the appropriate forums for the best responses. Being a lame joke, rather than an actual program, this seemed the better place to post it...
-
I think this question should be asked in the .NET forum! Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut
-
Colin Davies wrote: My compiler still doesn't handle type Bool The rednecks here see everything in absolutes, so all matters are either True or False - no shades of grey. For some reason, that seems to make all languages accept boolean types. I suspect that Microsoft, in its collective wisdom, ships a special version of the compiler to this state. That would certainly explain why it only compiles here:) Colin Davies wrote: Oh yeah please post this kinda techo question in the appropriate forums for the best responses. Being a lame joke, rather than an actual program, this seemed the better place to post it...
Roger Wright wrote: The rednecks here see everything in absolutes, so all matters are either True or False - no shades of grey. For some reason, that seems to make all languages accept boolean types. I suspect that Microsoft, in its collective wisdom, ships a special version of the compiler to this state. That would certainly explain why it only compiles here Ah Ok, I think we have discovered the mystery then Roger, most of these sort of problems have simple solutions etc, And I think we have found it. Roger Wright wrote: Colin Davies wrote: Oh yeah please post this kinda techo question in the appropriate forums for the best responses. Being a lame joke, rather than an actual program, this seemed the better place to post it... Roger my "appropriate forums" comment was my attempt at a lame joke. :-) Regardz Colin J Davies
Sonork ID 100.9197:Colin
I live in Bob's HungOut now