- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
[CODE] class CRealEstate { public: // constructor CRealEstate(int num_of_rooms , const string & address)throw(string*) { try { m_num_of_rooms=num_of_rooms; if(address=="\n") throw "Wronge Address..\n"; m_address=address; } catch(const char *str) { cout<<str<<endl; } } virtual void Print()const =0; virtual unsigned Profit()const =0; friend ostream& operator<<(ostream& os , const CRealEstate &p) { p.Print(); return … |
|
this is what i have, and i have lots of mistakes in class to class...and friends functions dont know why, need your help CCar.h: [CODE]#ifndef _CCar_H //מונע אפשרות להכללות כפולות של המודול #define _CCar_H #include "CWorker.h" #define LEN_N_FIRMA 20 //class CWorker; class CCar { char m_firma[LEN_N_FIRMA]; // car firma int … |
|
hello, i need help to solve this little problem. i have an error here.."cant access privet members declared in class CWorker..with is another class [CODE]void main() { CManager *Sasson = new CManager("Sasson Sassoni"); assert(Sasson); // adds workers Sasson->addWorker("Jojo"); Sasson->addWorker("Shilgiya", 1000); }[/CODE] i also have CManager.h... in CManager.cpp, its only part … |
|
I am doing a project now in school, and i really need help!. its goes like this: I have 1000 triangles in a file..did it already (its a struct)every triangle has 3 points and its binary catalog number. I have space in memory only for 200. in this file every … |
|
if anybody can help me with this code...plz [CODE]#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> void * scrambleArr(void * arr, int numElem, int elemSize,int (*func)(void*)); int func(void *x); void main( ) { int a[7]={1,2,3,4,5,6,7}; int i; int *p = NULL; p = scrambleArr(a, 7, sizeof(int),func); for (i = 0; … |
|
this is my code and i want to do this function to be general, how i do it? [CODE]#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> #include <string.h> void * DoIt (void *arr, int elemSize, int numElems, void (*f) (void *)); void Sqr (void *x); void main( ) { double a[3] = … |