boll112233 发表于 2020-3-30 15:19:34

0. 因为它只能看懂0和1

1. 0,1语言

2. 编译

3. 编译型是所有代码编译完之后运行:解释型是一遍编译一遍运行

4. 可以 ?

5. 这个真不知道

6. 就是0,1组合

7. QINMENCHENDIRENCHIFANSHIFADONGJINGONG

小ying文 发表于 2020-3-30 15:23:58

翻译出来了一串不是单词的字母

闫桐硕爱编程 发表于 2020-3-30 15:30:19

111

HELLOC。 发表于 2020-3-30 15:32:54

0.以为计算机只认识0和1
1.CPU唯一认识的语言是机器语言
2.编译过程
3.一个给计算机看,一个给人看
4.能
5.不知道
6.原理就是0和1
7.不知道

喵帕斯丶 发表于 2020-3-30 15:38:38

谢谢小甲鱼{:5_100:}

厉飞羽 发表于 2020-3-30 15:38:59

测试题答案

厉飞羽 发表于 2020-3-30 15:43:24

B站上找到的,最近刚开始学。作为一个新手,感觉小甲鱼讲的很仔细还有课后作业很用心,非常感谢{:5_109:}

chen112233 发表于 2020-3-30 15:48:30

0.他不能自己思考
1.机器语言
2.编译
3.编译语言是翻译为机械语言去让cpu执行,解释型语言是字节码通过解释器解析后让CPU执行
4能
5.通过不同的解释器
6.通过参照表传达信息
7.qinmenchendirenchifanshifadongjingong

Hlinx 发表于 2020-3-30 15:51:26

1

wdx 发表于 2020-3-30 16:02:02

来来来

1907费内巴切 发表于 2020-3-30 16:22:37

1

superzexal 发表于 2020-3-30 16:54:40

1

大大怪超人 发表于 2020-3-30 18:38:59

我爱小甲鱼

chenenze 发表于 2020-3-30 20:11:27

。。。。。。。。

a2316565897 发表于 2020-3-30 21:15:31

666666666

单曲2019 发表于 2020-3-30 21:44:54

0.计算机内部只有2进制
1.机器语言
2.编译
3 忘了。。。
4 可以吧
5 .。。
6 编译
7

sheguosheng 发表于 2020-3-30 21:50:06

{:10_279:}

sword_ 发表于 2020-3-30 21:51:43

{:10_256:}

NEEPHYTE 发表于 2020-3-30 22:11:23

看看答案

暴富是我的目标 发表于 2020-3-30 22:26:56

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

#define MAX 256

long tatal;

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"))==)
        {
                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(conset char *path)
{
        struct_finddate_t fa;
        long handle;
        char thePath,target;
       
        strcpy(thePath,path);
        if(handle=_finffirst(thePath,"/*.c"),&!=-1L)
        {
                do
                {
                        sprintf(target,"%s/%s,path,fa.name");
                        tatal+=countLines(target);
                }
               
                _findclose(handle);
        }
        void findALLDirs(conset char *path)
        {
        struct_finddata_t fa;
                longhandle;
                char thePath;
               
          stecpy(thePath,path);
                if(handle=_finddirst(strcat(thePath,"/n"),&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("目前你总共写了%1d行代码!\n\n",total);
                system("pause");
               
                return 0;
        }
}
页: 643 644 645 646 647 648 649 650 651 652 [653] 654 655 656 657 658 659 660 661 662
查看完整版本: S1E2:第一个程序 | 课后测试题及答案