为了账号安全,请及时绑定邮箱和手机立即绑定

printX和Y函数调用缺少参数列表?

printX和Y函数调用缺少参数列表?

C++
qz_zy 2016-03-16 17:15:20
#include <stdlib.h> #include <string.h> #include<iostream> using namespace std; class Coordinate { public:     int x;     int y;     void printX()     {         cout << x << endl;     }     void printY()     {         cout << y << endl;     } }; int main(void) {     Coordinate coor;     coor.x = 20;     coor.y = 30;     coor.printX;     coor.printY;     system("pause");     return 0; }
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 1509 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号