qq176931114 发表于 2020-5-31 07:33:56

做完啦,看下答案

希斯莱杰 发表于 2020-5-31 08:03:59

啊哈~{:10_264:}

qweasdzxc123 发表于 2020-5-31 10:45:02

0、计算机只认识二进制
1、机器语言
2、编译
3、编译型语言一次编译下次直接使用,解释型语言每次运行都要重新解释一句执行一句
4、能
5、
6、查表

iyghk 发表于 2020-5-31 10:45:16

自己思考和动手,

gxygm 发表于 2020-5-31 10:51:40

学习

cy5703 发表于 2020-5-31 12:34:58

快乐的胖叮当 发表于 2020-5-31 14:00:08

啦啦啦

1507475074 发表于 2020-5-31 15:02:30


#include <io.h>
#include <direct.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAX      256

long total;

int countLines(const char *filename);
void findAllCodes(const char *path);
void findALLFiles(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 = fgetc(fp)) != EOF)
      {
                if (temp == '\n')
                {
                        count++;
                }
      }
      
      fclose(fp);
      
      return count;
}

void findAllCodes(const char *path)
{
      struct _finddata_t fa;
      long handle;
      char thePath, target;
      
      strcpy(thePath, path);
      if((handle = _findfirst(strcat(thePath, "/*.c"), &fa)) != -1L)

阿CC 发表于 2020-5-31 15:08:01

为什么window的到第53项就一直显示错误

TianG 发表于 2020-5-31 17:01:19

{:5_102:}

xuquifu123 发表于 2020-5-31 17:19:49

二进制 机械语言编译 吃饭和打火锅{:5_109:} 不能 通过虚拟机 这个忘了 ...

zhangsscc99 发表于 2020-5-31 18:06:49

1234

llikeyou 发表于 2020-5-31 18:08:33

-Tmac1Y 发表于 2020-5-31 19:59:20

谢谢哈

勿念_ 发表于 2020-5-31 20:03:11

{:10_257:}{:10_257:}{:10_257:}

buzhou 发表于 2020-5-31 20:42:46

1

阿文c 发表于 2020-5-31 20:51:04

开始了

祁怼怼 发表于 2020-5-31 21:57:20

111

huadie 发表于 2020-5-31 22:13:53

查看答案

Clean学编程 发表于 2020-5-31 22:18:25

查看参考答案
页: 713 714 715 716 717 718 719 720 721 722 [723] 724 725 726 727 728 729 730 731 732
查看完整版本: S1E2:第一个程序 | 课后测试题及答案