No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I declare a array of pointers: [CODE]char *a[13];[/CODE] And how can I allocate memory for it using "new"? (I'm a Chinese student,so my expression may be not so exact~) |
|
please help...when case 2, 3, or 4 are chosen the program goes into an infinite loop except for case 1 which works fine.... [code] //this program performs addition (grades 1,2,3,4), subtraction (grades 2,3,4), multiplication (grades 3,4), and division(grade 4) #include <cstdlib> #include <ctime> #include <iostream> using namespace std; int main() … |
|
At runtime I obtain an instance of descendant of TObject (for example its name is TGoodForm). The definition of TGoodForm is unknown at compile time (I know that it is TGoodForm from TObject::ClassName()). [B]The question: how to create new instance of TGoodForm ?[/B] In another words, can I get address … |