NEWOPER.CPP
资源名称:C++100.rar [点击查看]
上传用户:wszmarenbt
上传日期:2013-04-26
资源大小:2552k
文件大小:0k
源码类别:
Windows编程
开发平台:
Visual C++
- #include <iostream.h>
- #include <math.h>
- int main(void)
- { int gotoxy();
- int puttext();
- char *BUFFER;
- int COLUMN,ROW;
- gotoxy(10,10);
- cout<<"THIS IS JUST AN EXAMPLE!n";
- gotoxy(10,11);
- cout<<"WIDTH=24n";
- gotoxy(10,12);
- cout<<"HIGHT=3n";
- COLUMN=25;
- ROW=3;
- BUFFER=new char[COLUMN*ROW*2];
- gettext(10,10,10+COLUMN,10+ROW,BUFFER);
- puttext(50,20,50+COLUMN,20+ROW,BUFFER);
- delete BUFFER;
- return 0;
- }