单项选择题有以下类定义 class Point public: Pointint x = 0, int y=0) _x = x; _y = y; void Move int xoff, int yoff) _x +=xoff;_y+=yoff; void Print() const cout<<’(’<<_x<<’,’<<_y<<’)’ << end1; private: int_x,_y; ; 下列语句中会发生编译错误的是
单项选择题下列程序的输出结果是 #include <iostream> using namespace std; int main () char a[] = Hello,World : char*ptr = a; while (*ptr) if(*ptr>= ’a’ &&*ptr <=’z’ cout<<char*ptr+’A’-’a’); else cout<<*ptr; ptr++; return 0;