Search:

Type: Posts; User: yusaku

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,047

    Yeah, it's the reason why I called it a "funny...

    Yeah, it's the reason why I called it a "funny way" - It's not a real solution for the problem

    Anyway, I'd already gave up and began to change the function "test" - previously, I didn't want to...
  2. Replies
    5
    Views
    2,047

    Thx for ur information!! Actually, I got a...

    Thx for ur information!!

    Actually, I got a funny way to solve this problem from the other forum :-)


    class CA {
    public:
    void setA( int num ) { a = num; }
    void doSth() {
    printf( "A is:...
  3. Replies
    5
    Views
    2,047

    Upcast problem of an array

    My program allocated an array of class "CB" (CB* pB = new CB[3];), and then, "pB" will be post to a method as a parameter (void test( CA* pA, int num)). CA is the superclass of CB. So, in function...
Results 1 to 3 of 3