您的位置:首页 >简易的VC程序编写
发布于2025-01-23 阅读(0)
扫一扫,手机访问

ti.settime() 必须带参数。。还有,类结束以后必须有};
class time {
int hour,minute,second;
public;
time(int h=0,int m=0,int s=0)
{hour=h;minute=m,second=s;}
void set-time(int h,int m,int s)
{hour=h;minute=m,second=s;}
void show( )
{cout< time t1( ); time t2( ); t1,show( ); t2,show( ); t1,set time (12,43,34 ); }; 这样就好了吧。不过有点小白了。。。 #include using namespace std; class CPoint { private: int x; int y; public: void CPoint() { x=60;y=75; } void display() { cout<<"x="< cout<<"y="< } void setPoint(int a,int b) { x=a; y=b; } }; int main() { CPoint a; a.display(); a.setPoint(80,150); a.display(); return 0; } void CDemoDlg::OnPaint() { CPaintDC dc(this); // device context for painting RECT rect={0,400,200,20}; ::DrawText (dc.m_hDC,"大方广:", -1,&rect,DT_SINGLELINE | DT_LEFT | DT_VCENTER |DT_END_ELLIPSIS ) ; RECT rect1={0,440,400,20}; ::DrawText (dc.m_hDC,"其身正,不令而行,其身不正,虽令不从", -1,&rect1,DT_SINGLELINE | DT_LEFT | DT_VCENTER |DT_END_ELLIPSIS ) ; RECT rect2={0,480,200,20}; ::DrawText (dc.m_hDC,"行有不得,反诸己", -1,&rect2,DT_SINGLELINE | DT_LEFT | DT_VCENTER |DT_END_ELLIPSIS ) ; }VC程序设计
VC编写一个应用程序
上一篇:win10家庭版设置禁止本地登录
下一篇:解决电脑不对U盘作出响应的方法
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
售后无忧
立即购买>office旗舰店
正版软件
正版软件
正版软件
正版软件
正版软件
1
2
3
4
5
6
7
8
9