迈术瓦 发表于 2021-9-9 11:48:08

666

1243063488 发表于 2021-9-9 12:58:44

0.只认识0,1
1.机器语言
2.编译
3.编译语言能被计算机直接读取,解释型语言需要解释器解释和才能被计算机读取
4.能
5.
6.摩斯密码的原理是用特殊的符号代表具体的字母
7.


Mikasa_H 发表于 2021-9-9 13:39:42

鱼c做的真的挺好

素履. 发表于 2021-9-9 14:02:21

因为计算机是靠人的编程运行,其没有思想。
c语言
编译
不知道
可以但需要移植
不知道
查表

wahh 发表于 2021-9-9 14:24:11

查看参考答案

sky有点小shy 发表于 2021-9-9 14:30:25

鱼总帅气

码农号 发表于 2021-9-9 14:46:42

甲鱼甲鱼,为什么第17行总是报错啊(win系统
)

胡乱画画 发表于 2021-9-9 14:57:45

居然是龟仙人

科罗拉多小豪猪 发表于 2021-9-9 15:03:23

#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(counst char *path)
{
          struct_finddata_t fa;
          long handle;
          char thePath, target;

          strcpy(thePath, path);
          if((handle = _findfirst(strcat(thePath, "/*.c"), &fa)) ! = -1L)
          {
                  do
                        {
                                sprintf(target,"%s/%s", path ,fa. name);
                                total += countLines(target);
                        }while (_findnext(handle, &fa) == 0);
          }

          _findclose(handle);
}

void findALLDirs(const char *path)
{
          stuct _finddata_t fa;
          long handle; char thePath;

          strcpy(thePath , path);
          if((handle = _findfirst(stdcat(thePath, "/*"), &fa)) == -1L)
          {
                  fprint(stderr, "The path %s is wrong!\n", path);
                        ruturn;
          }

          do
          {
                  if(!strcmp(fa.name, ".") || !strcmp(fa.name, ".."))
                                continue;

                        if( fa.attrib == _A_SUBDIR)
                        {
                                  sprintf(thePath, "%s/%s", path , fa.name);
                                  findAllCodes(thePath);
                                  findALLDirs(thePath);
                        }

          }while (_findnext(handle, &fa) == 0);

          _findclose(handle);
}

int main()
{
          char path = ".";

          printf("计算中...\n");

          findAllCodes(path);
          findALLDirs(path);

          printf("目前你总共写了%ld行代码! \n\n", total);
          system("pause");


          return 0;
}

Kenzo_Tenma 发表于 2021-9-9 15:49:30

查看参考答案

sunshaobo 发表于 2021-9-9 16:31:05

000

Aston7 发表于 2021-9-9 16:34:14

0,只懂2进制
1,汇编语言
2,编译
3,是否有 解释器 操作
4,能
5,通过 解释器?
6,编码
7,才不想管你呢!

0,0……

叶子光 发表于 2021-9-9 16:44:50

已经完成,亲们趁敌人吃饭时发动攻击{:9_227:},这个代码自己打上去最后错了一点...

笙歌白云 发表于 2021-9-9 16:55:41

真不戳

猥琐的猎鹰 发表于 2021-9-9 17:08:18

零基础开始努力学习

LH8023559 发表于 2021-9-9 17:15:37

yydsgac 发表于 2021-9-9 17:16:26

答案

heyongqing 发表于 2021-9-9 17:29:27

参考答案

我是阿明 发表于 2021-9-9 17:31:51

102

傻眼貓咪 发表于 2021-9-9 17:43:19

{:5_105:}
页: 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 [1358] 1359 1360 1361 1362 1363 1364 1365 1366 1367
查看完整版本: S1E2:第一个程序 | 课后测试题及答案