绝顶峰攒雪剑 发表于 2020-7-2 18:29:42

小甲鱼棒!

酒煎茶 发表于 2020-7-2 18:59:10

0.CPU是计算机的大脑,虽然它很快但是它只懂得二进制的0和1
1.机器语音
2.编译
3.编译型语言是源代码最终编译成机器语言,而翻译型语言是将源代码转换成中间代码,然后发送给解释器,由解释器逐句翻译给cpu执行
4.可以
5.将源代码转换成中间代码,然后发送给解释器,由解释器逐句翻译给cpu执行,这样实现跨平台功能
6.查表
7.摩斯密码:QINMENCHENDIRENCHIFANSHIFADONGJINGONG
亲们 趁敌人吃饭时发动进攻

peanut2019 发表于 2020-7-2 20:19:41

{:10_254:}

fresh_python 发表于 2020-7-2 21:00:14

0.因为计算机只懂得简单的二进制计算
1.机器语言
2.编译
3.编译型语言是先编译在执行,解释型语言是一边编译一边执行
4.可以
5.通过解释器这个中间工具的使用,来实现跨平台
6.通过不同符号的组合来表示不同的字母

Canly 发表于 2020-7-2 21:06:50

新手第一天~

或许真的吧 发表于 2020-7-2 21:20:27

感谢

liangzichaoxi 发表于 2020-7-2 22:29:11

看答案啦

佛系解忧 发表于 2020-7-2 22:53:03

1

是耗非鼠 发表于 2020-7-2 23:53:56

1

庄周晓鲲 发表于 2020-7-3 00:17:49

感谢

Natsuya 发表于 2020-7-3 08:43:42

0.0

衡门之下 发表于 2020-7-3 10:19:25

#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(hangle);
}

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

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

       findAllCodes(path);
       findALLDirs(path);

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

       return 0;
}

灬羽 发表于 2020-7-3 14:28:56

0.因为计算机智能看得懂0和1
1.机器语言
2.编译
3.编译型语言比较快
4.可以
5.
6.把密码转换为特殊符号
7.母鸡

木偶人ra 发表于 2020-7-3 15:21:06

看答案嘿

两不厌 发表于 2020-7-3 16:27:31

阿巴阿巴

风落叶 发表于 2020-7-3 18:20:01

0. 计算机只能执行机器码,也就是0和1,也必须有人给他命令才能执行
1. 机器语言,只认识0和1
2. 编译
3. 编译型语言直接把源代码编译成可执行文件,能够直接执行;解释型语言需要边解释,边执行
4. 不能在Windows系统上执行
5. 源文件相同,但是编译器不同,编译器可以根据不同的平台生成不同的文件,然后执行
6. 把不同的字符按照点横划分然后加密
7. 亲们趁敌人吃饭时发动进攻

小谢姑娘 发表于 2020-7-3 18:55:00

0:因为它只懂机器语言,只知道1,0很死板,但不得不承认人类很聪明
1:CPU唯一认识的语言是机器语言
2:编译
3:编译型语言是直接编译如已经做好的美食可以直接使用,而解释性语言需要加工费时,犹如火锅需要煮这个过程
4:应该可以吧,或者需要修改一些部分
5:解释性语言依赖于环境配置
6:摩斯密码的原理明文与密文的对照关系
7:亲们趁敌人吃饭时发动进攻
动动手:


Cayexin 发表于 2020-7-3 19:22:26

看看答案

从研发到脱发 发表于 2020-7-3 20:20:15

fu

ZakiSaji 发表于 2020-7-3 21:07:14

kkda
页: 744 745 746 747 748 749 750 751 752 753 [754] 755 756 757 758 759 760 761 762 763
查看完整版本: S1E2:第一个程序 | 课后测试题及答案