No no no
look
i want to know how many time i declared an array.
cat Cuty[4];
i want a variable in my class that will contain the number 4 because i have 4 cats !
so i will be hable to do :
Cuty.Ubound() // witch will give the number 4 (Upper Bound)
A graph is an array of nodes, a node to another node u have a segment. I want to delacre a graph, with will contain an array of POSSIBLE link. supose that u have 20 nodes in a graph, there is (NBOFNODES - 1) possibles links, since a link to it self is not really important.
Im trying to...
Simple question, Hard Awnser :
1) Seg is my class
class seg {
... nanan anan anan
}
2) i do
seg Dot[20];
i want to have 20 in a variable
i tryed [] overloading and didnt work
and constructor wont be usefull ( seg Dot[20] = {20,20,20,20,20, etc...})
so how coud i get the Bound of the...
10312F20 rep movs dword ptr [edi],dword ptr [esi]
this is from the ddebugger. Do you know what it mean, there is a problem when it load the files and this ligne cause the error...
When i start a new project, after like 10 sec the program crash (not responding) and i got an error message. I've looked trought microsoft support and i did'nt found where that error was from. So i downloaded the Sevice Pack 6 and i still got an error. Can anyone help me, im trying to avoid a...
OMFG i found it, so mutch easy this way :
class clsRectangle {
public:
int Height;
int Width;
int Aire (void) {return (m_Height*m_Width);}
int Perrimeter (void) {return ( 2*m_Height + 2*m_Width);}
};
int main(){
clsRectangle Rect;
Rect.m_Height = 100;
Rect.m_Width = 10...
I know hot to make a fonction,
but i dont want to put something like : Rect.Width (10)
i want something like that: Rect.Width = 10
i think timay said its cant be done in c++ but im not really sure.
May someone help me with overloading, i just started C++ and im programming a rectangle class :
class clsRectangle {
public:
int m_Height;
int m_Width;
clsRectangle operator= (clsRectangle);
int area (void) {return (m_Height*m_Width);}...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.