高等教育 / 计算机可视化编程
假定有“struct BOOK{char title[40]; float price;}; BOOK *book=new BOOK;”,则正确的语句为( )。
A、strcpy(book->title,”Wang Tao”);
B、strcpy(book.title,”Wang Tao”);
C、strcpy(*book.title,”Wang Tao”);
D、strcpy((*book)->title,”Wang Tao”);
A、strcpy(book->title,”Wang Tao”);
B、strcpy(book.title,”Wang Tao”);
C、strcpy(*book.title,”Wang Tao”);
D、strcpy((*book)->title,”Wang Tao”);
参考答案:
佳题速递: