⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 charout.c

📁 c版本的
💻 C
字号:
                                         /* Chapter 10 - Program 2 */
#include "stdio.h"
main()
{
FILE *point;
char others[35];
int indexer,count;

   strcpy(others,"Additional lines.");
   point = fopen("tenlines.txt","a"); /* open for appending */

   for (count = 1;count <= 10;count++) {
      for (indexer = 0;others[indexer];indexer++)
         putc(others[indexer],point);  /* output a single character */
      putc('\n',point);                /* output a linefeed */
   }
   fclose(point);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -