J
Jean-Claude ROVIER
Hi All,
I'm really sorry for the dumbness of my questions but I'm from the TP/Pas
world.
Before I get enough money to buy to good C/C++ compiler (for DOS/Win/NT,
any suggestions ) and start learning C/C++, I need to translate a C
prog into TP.
Here are the supid questions:
1st:
I've got p as a pointer on a CStruct. p = *CStruct. No matter was CStruct
is.
If the program does 'MyPointer = p++' what does this mean?
1) MyPointer = p; increment p of 1;
2) MyPointer = p; Increment p of SizeOf(CStruct);
3) increment p of 1; MyPointer = p;
4) increment p op SizeOf(CStruct); MyPointer = p;
5) something else?
Second stupid question:
'if !(a = b)' means
1) if not a equal b (Hmmm I really don't believe this: equal is '==' not
'=')
2) a=b and if b=0 then....
3) something else?
Third stupid question:
When I use a _fmalloc(size). Would that block be 'de-allocated' on exit? I
couldn't find the 'dealloc' function in the prog.
If someone knows where to find basic c++ help (*.hlp, *.doc,...) on the
net...
Thanks a lot for your help, and please excuse the stupidity of my
questions.
I'm really sorry for the dumbness of my questions but I'm from the TP/Pas
world.
Before I get enough money to buy to good C/C++ compiler (for DOS/Win/NT,
any suggestions ) and start learning C/C++, I need to translate a C
prog into TP.
Here are the supid questions:
1st:
I've got p as a pointer on a CStruct. p = *CStruct. No matter was CStruct
is.
If the program does 'MyPointer = p++' what does this mean?
1) MyPointer = p; increment p of 1;
2) MyPointer = p; Increment p of SizeOf(CStruct);
3) increment p of 1; MyPointer = p;
4) increment p op SizeOf(CStruct); MyPointer = p;
5) something else?
Second stupid question:
'if !(a = b)' means
1) if not a equal b (Hmmm I really don't believe this: equal is '==' not
'=')
2) a=b and if b=0 then....
3) something else?
Third stupid question:
When I use a _fmalloc(size). Would that block be 'de-allocated' on exit? I
couldn't find the 'dealloc' function in the prog.
If someone knows where to find basic c++ help (*.hlp, *.doc,...) on the
net...
Thanks a lot for your help, and please excuse the stupidity of my
questions.