I tried your code and it works perfect
(I run it on a borlandc++ 3.1 on WinXp)...
User Profile
Collapse
-
Copy constructur or bitwise copy
Hi I have a little c++ code but i'm not sure who makes the initialization for cp1.
Here is the code(in borlandc++ 3.1):
[code=cpp]
class A{
int i;
public:A(int val){i=val;
}
A(A&a){i=a.i;
}
};
void main()
{
A obj(1); A cp1(obj); A cp2=obj;
}
[/code]
The question is how makes the initialization... -
Graphics in c/c++
I'm trying to figure up how are implemented the graphic function. For exemple what is the code for function lineto();
This is the antent for it(in borlandc 3.1)
short_far_linet o(short x,short y)
If you know where( a site or something like this) can i found the code for graphic functions it would be greate.
Also I would like to know how to see the content of a .lib file(i'm intrested to see the... -
Your url =http://home.netcom.com/~tjensen/ptr/pointers.htm was very helpfully for me....Leave a comment:
-
This is a very intresting ideea of drawing a line. I'll try it....Leave a comment:
-
Thanks for solution I needed some time ago
Anyway thanks again...Leave a comment:
No activity results to display
Show More
Leave a comment: