Search:

Type: Posts; User: shaxquan

Search: Search took 0.01 seconds.

  1. Help with virtual function and virtual inheritance

    hi, anyone can help me. i have below codes


    class A
    {
    char k[3];
    public:
    virtual void aa() {}
    };
    class B : public virtual A
  2. Replies
    3
    Views
    1,321

    yes , i think so , thanks , it's okay now.

    yes , i think so ,
    thanks , it's okay now.
  3. Replies
    3
    Views
    1,321

    what's wrong with this piece of code?

    below code can be compiled but can not run, what's wrong with it?



    #include <stdio.h>
    void getmemory(char ** pchar) {
    pchar = (char **)malloc(100);
    }
    int main(int argc, char *argv[]) {...
  4. Replies
    5
    Views
    2,064

    i think can use this char temp[31];...

    i think can use this


    char temp[31];
    gets(temp);
    char *word1 = (char *) malloc(strlen(temp)*sizeof(char));
  5. Replies
    160
    Views
    1,229,956

    Sticky: i use sams C primer plus...

    i use sams C primer plus as my first book to learn C,
    i like this book , it also include many ansi c features.
    and i read this book , the c programming language, i use this book as reference
Results 1 to 5 of 5