iiiNeflibata 发表于 2023-5-15 17:09:30

0.因为CPU是计算机的大脑,CPU主要复杂计算机大部分日常的计算功能,而CPU原理上只认识0和1。
1.机器语言
2.编译
3、编译型语言将源代码编译成CPU认识的机器码,然后CPU进行执行;解释性语言并不直接编译成机器码,而是将源码转换成中间代码,再经过解释器逐句翻译给CPU执行。
4.不能
5.解释型编程语言为每个操作系统专门定制了一个解释器作为中转,因此解释器只需要提供一个统一的入口即可。
6.摩斯密码对应有莫斯密码表,通过比对即可得出信息。
7.亲们趁敌人吃饭时发动进攻。

NOITA 发表于 2023-5-15 18:48:23

        1. 只懂二进制的0和1
        2. 机器语言
        3. 编译
        4. 不能直接被cpu执行
        5. 可以
        6. 将源代码转成中间代码
        7. 点横的组合

czyghj 发表于 2023-5-15 20:19:56

加油,跟好鱼哥,学好c

czyghj 发表于 2023-5-15 20:27:07

1

dawn1234 发表于 2023-5-15 21:41:38

1

AkiTomato 发表于 2023-5-15 22:02:18

已完成

WangZo 发表于 2023-5-15 23:34:21

测试题
1.为什么说计算机是二傻子?
答:计算机只能看得懂0/1,只能看的解释之后的语言
2.CPU唯一人生的语言是什么语言?
答:汇编语言
3.C语言编写的源代码转换为汇编语言的过程叫什么?
答:解释吧
4.编译型语言和解释性语言的本质区别是什么?
答:不会
5.linux系统上用C语言编译的可执行程序,能否在Windows系统上执行?
答:能,因为C语言可移植,只需加工一下就能移植到别的系统上去
6.解释性编程语言是如何实现跨平台的?
答:不会
7.莫斯密码的原理其实是什么?
答:应该就是将一个语言变换成一个个符号
8.摩斯密码:qinmenchendirenchifanshifadongjingong【亲们趁敌人吃饭时发动进攻】

xxxasd 发表于 2023-5-16 10:03:57

1

学医救不了蒙德 发表于 2023-5-16 11:19:22

答:计算机其实只认识“0”和“1”两个数字。
答:汇编语言
答:编译
答:编译型语言是全部编译后执行,而解释型语言是编译一条执行一条
答:大部分可以执行,少部分需要经过修改后才可以
答:将代码转换成字符
答:编码和解码
qin men chen di ren chi fan shi fa dong jin gong
亲 们 趁 敌 人 吃 饭 时 发 动 进 攻

林晓雪 发表于 2023-5-16 13:26:39

+3

DEVIL锐刻 发表于 2023-5-16 16:13:16

查看参考答案

0x大爷 发表于 2023-5-16 18:00:27

获取答案~~~

vicrim 发表于 2023-5-16 19:44:53


#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)
      {
                do
                {
                        sprintf(target, "%s/%s", path, fa.name);
                        total += countLines(target);
                }while (_findnext(handle, &fa) == 0);
      }
   
      _findclose(handle);
}

void findALLDirs(const char *path)
{
      struct _finddata_t fa;
      long handle;
      char thePath;
      
      strcpy(thePath, path);
      if((handle = _findfirst(strcat(thePath, "/*"), &fa)) == -1L)
      {
                fprintf(stderr, "The path %s is wrong!\n",path);
                return;
      }
   
      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;
}

hanghanga 发表于 2023-5-16 20:05:06

看看答案吧

humrous 发表于 2023-5-16 21:03:15

answer

organce 发表于 2023-5-16 21:49:34

1

13340865629 发表于 2023-5-17 08:16:48

1,因为计算机只能对二进制,0,1进行计算,所有的代码,什么的,都要经过编译成二进制,才可以被计算机进行使用
2,机器语言
3,编译
4,看情况
5,不知道
6,就是二进制的不同组合方式
7,发动总攻击,没记清,看的弹幕

JigenDaisuke 发表于 2023-5-17 09:40:48

hello

jxy111 发表于 2023-5-17 10:17:42

1

18300098089 发表于 2023-5-17 15:51:24

h
页: 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 [1894] 1895 1896 1897 1898 1899 1900 1901 1902 1903
查看完整版本: S1E2:第一个程序 | 课后测试题及答案