-
cputs
鎖定
- 外文名
- cputs
- 屬 性
- 函數
- 用 法
- TC2.0中函數原型
- 描 述
- 若成功則返回0
函數名: cputs
程序例1:(VC6.0中運行通過)
#include <conio.h> int main(void) { /* 輸出一些文本 */ cputs("This is within the window\r\n"); /* 等待按鍵 */ getch(); return 0; }
程序例2:(TC2.0中運行通過)
#include <stdio.h> int main(void) { /* clear the screen */ clrscr(); /* create a text window */ window(10, 10, 80, 25); /* output some text in the window */ cputs("This is within the window\r\n"); /* wait for a key */ getch(); return 0; }