WoW!! 发表于 2021-4-12 20:27:04

emmm

tennct 发表于 2021-4-12 21:48:01

学习

张彦杰来学C 发表于 2021-4-12 22:20:01

1

xx133 发表于 2021-4-12 22:50:34

太难了吧

shanke 发表于 2021-4-12 22:52:51

我爱小甲鱼

潘仔仔 发表于 2021-4-12 23:28:35

111

Jieni0307 发表于 2021-4-13 00:40:20

只是别0和1
计算机语言
编译器
编译语言一次性编译,解释型语言每执行一次编译一次
可以
源代码移植

16beat 发表于 2021-4-13 01:09:00

阿斯顿撒旦

Xianing0618 发表于 2021-4-13 08:55:05

注册可真麻烦

Leishe 发表于 2021-4-13 10:05:13

Gg

wajnysys 发表于 2021-4-13 10:34:04

大龄小白来做作业了。

努力的Reyes 发表于 2021-4-13 11:14:44

我是初学者,理论与实践结合起来的教学我非常喜欢,小甲鱼加油!

Vvvi 发表于 2021-4-13 11:15:57

#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>

#define MAX 256

long total;

int countLines(const char *filename);
int isCode(const char *filename);
void findAllDies(const char *path);

int countLines(const char *filename)
{
      FILE * fp;
      int count=0;
      int temp;


      if((fp = fopen(filename,"r")) == NULL)
      {
                fprintf(stderr ,"Can not open the file: %s\n",filename);
                return 0;

      }
      while((temp = fgect(fp)) != EOF)
      {
                if(temp == '\n')
                {
                        count++;
                }

      }

      fclose(fp);

      return count;

}

int isCode(const char *filename)
{

      int length;

      length = strlen(filename);
      if( !stecmp(filename + (length -2), ".c"))
      {
                return 1;

      }

horikia 发表于 2021-4-13 11:44:53

哦天,咋有文字

张峰无敌 发表于 2021-4-13 12:49:17

我不知道

人来疯 发表于 2021-4-13 13:15:59

答案

东楼123 发表于 2021-4-13 14:10:55

{:9_241:}

Savior_ 发表于 2021-4-13 14:49:06

.

斩鞍 发表于 2021-4-13 15:45:55

签到

QCLMM 发表于 2021-4-13 15:46:47

为什么我抄下来22,43,48行代码出现了错误
页: 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 [1155] 1156 1157 1158 1159 1160 1161 1162 1163 1164
查看完整版本: S1E2:第一个程序 | 课后测试题及答案