hanguang.chen Posted September 22, 2004 Share Posted September 22, 2004 1: what is the use of #ifndef /#define../#endif 2: what is the problem with the code below: int * getData(){ int data; Process(&data);/////this is another function to calculate the data; return &data; } and give at least 3 ways to solve the problem. 3:You gays get very farmiliar with CString in Microsoft's CString class, now write a class which can be used as follow: CString a="Hello"; CString b("World"); CString c; c = a + b; requirement: no memory leaks the more efficient, the better. 4: what is the essential differences between template and polymorphy. 5: evaluate the value of 100! 6: how many barbers are there in China. give your solution. If you don't konw SAP, and ask me what the hell do SAP do, please forgive me, Just left here. Link to comment Share on other sites More sharing options...
0 hanguang.chen Posted September 22, 2004 Author Share Posted September 22, 2004 pls be careful not leak the questions. It is Confidential. Link to comment Share on other sites More sharing options...
0 kjordan2001 Posted September 22, 2004 Share Posted September 22, 2004 (edited) pls be careful not leak the questions.It is Confidential. I think you already did....since anyone can view a topic :blink: You gays get very farmiliar with CString in Microsoft's CString class, now write a class which can be used as follow: At least you want gays to get "very farmiliar" with CString though. But who cares how many barber's there are in China? And you posted these why? Edited September 22, 2004 by kjordan2001 Link to comment Share on other sites More sharing options...
0 hanguang.chen Posted September 22, 2004 Author Share Posted September 22, 2004 pls be careful not leak the questions.It is Confidential. It is a joke, Can you see it?But who cares how many barber's there are in China? And you posted these why? this is a question through which We can see you ability to solve problems. of course you can replace China with USA, or Britain, But that doesn't make difference, How you get the number of barber , by what means, It is the key point. Link to comment Share on other sites More sharing options...
Question
hanguang.chen
1: what is the use of #ifndef /#define../#endif
2: what is the problem with the code below:
int * getData(){
int data;
Process(&data);/////this is another function to calculate the data;
return &data;
}
and give at least 3 ways to solve the problem.
3:You gays get very farmiliar with CString in Microsoft's CString class, now write a class which can be used as follow:
CString a="Hello";
CString b("World");
CString c;
c = a + b;
requirement: no memory leaks
the more efficient, the better.
4:
what is the essential differences between template and polymorphy.
5:
evaluate the value of 100!
6:
how many barbers are there in China.
give your solution.
If you don't konw SAP, and ask me what the hell do SAP do, please forgive me, Just left here.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts