Sorry my English... ;) I just have some dificulties to write well in english...
Type: Posts; User: Nautilus
Sorry my English... ;) I just have some dificulties to write well in english...
You should say, where do tou need help.... Nowbody here will do your work... try fisrt, and then put your realy questions, for get help..
ok???
Sure it must be class Derivater:public Bse. Sorry... :)
So imagine that you have this class
class Base
{
int x;
public:
Base (int xx=0): x(xx){}
Thanks shiv_tech_quest now that wokrs.... :)
Ok ok, i put a declarition of the function before main and it don't give me errors, but when a want to read a string from the stdin, it just read one letter, for exeample i want to write My car is...
Ok guys. I have a class String, and i need to put the operator >> in that class. so i do this:
istream & operator>>(istream &in,String &str)
{
char string[30];
in.getline(string,30,'\n');...
Thaks, whit that form it work's thank you!!!
But there ren't other way, more easy?? anytime a have to creat a new fnction i have to put int_ptr (&x) [10],char_ptr (&y) [10])??
Ok ok!! if i hav int x[10], but i don't have that, in my case i have
int * x[10], for exemple. then whit a for, i put all the elements pointing to NULL, an i want pass the refence os the array for a...
I put that, but i get more errors, like "A reference that is not to 'const' cannot be bound to a non-lvalue".
Should i put insert_cars(const car& maycar) ?????
thank's anyway
My quastion is very simple. Imagine that you have this:
class car
{
......
};
void main()
{
car * mycars[100]