jasmile 发表于 2023-11-27 11:06:34

0.计算机只能识别0和1
1.机器语言
2.编译
3.编译型语言:编译出可执行文件,然后CPU执行。
解释型语言:将源代码转化为中间码,发送给解释器,由解释器翻译给CPU执行。
4.能
5.
6.

junghoiming 发表于 2023-11-27 14:34:01

1

1357874363 发表于 2023-11-27 17:01:46

{:5_94:}

YingOvO 发表于 2023-11-27 19:50:02

.

阿防永防 发表于 2023-11-27 20:22:08

好好学习

Hugo_DQ 发表于 2023-11-27 20:33:35

959

feiafei_1 发表于 2023-11-27 21:21:11

{:5_109:}

风惜 发表于 2023-11-27 21:25:26

答案

风惜 发表于 2023-11-27 21:29:40

测试题:
0.因为计算机只读得懂0和1
1.机器语言
2.编译
3.编译语言是面向过程的,解释性语言是面向对象的
4.不能
5.解释性语言可以转化成中间代码,然后由解释器翻译给CPU执行
6.原理是通过特定的编码表,将字符组合翻译成我们可以读懂的文字
7.亲门,趁敌人吃饭时,发动进攻。
动动手

levied 发表于 2023-11-27 22:21:10

不会

levied 发表于 2023-11-27 22:22:12

我想看看答案

棺材铺小二 发表于 2023-11-27 23:19:00

看看答案!

lwbld 发表于 2023-11-28 08:42:49

{:5_109:}

1239398089 发表于 2023-11-28 09:51:33

1

AB胶· 发表于 2023-11-28 10:18:43


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

#define MAX      256

长总计;

int countlines(cinst char *文件名);
无效 findAllCodees(const char *path);
void findALLFiles(常量字符 *文件名)

int countLines(常量字符*文件名)
{
        文件 *fp;
        int 计数 = 0;
        int 温度;
       
        if ((fp = fopen(filename, "r")) == NULL)
        {
                fprintf(stderr, "无法打开文件夹:%s\n",filename);
                返回 0;
        }
       
        而 ((temp = fgetc(fp)) ! = EOF)
        {
                如果 (temo == '\n')
                {
                        计数++;
                }
        }
       
        关闭(fp);
       
        返回计数;
}

无效 findALLCodes(const char *path)
{
        结构_finddata_t fa;
        长柄;
        char thePath, target;
       
        strcpy(路径,路径);
        if((handle = _findfirst(strcat(thepath, "/*.c"), &fa)) != -1L)
        {
                做
                {
                        sprintf(target, "%s/%s", 路径, fa.name);
                        总计 += countLines(target);
                }while (_findenext(句柄, &fa) == 0);
       }
       
       _findclose(手柄);
}

无效 findALLDirs(常量字符 *路径)
{
        结构_finddata_t fa;
       长柄;
       char thePath[最大];
       
       strcpy(路径,路径);
       if((handle = _findfirst(strcat(thePath, "/*"), &fa)) == -1L)
       {
               fprintf(stderr, "路径 %S 是错误的!\n,path");
               返回;
          }
          
          做
          {
                  if (!strcmp(fa.name, "." )|| !strcmp(fa.name, ".."))
                  继续;
                  
                  if( fa.attrib == _A_SUBDIR)
                  {
                          sprinft(thPath, "%s/%s", 路径, fa.name);
                          findALLCodes(路径);
                          findALLDirs(路径);
                   }
           } while (_findenext(句柄, &fa) == 0);
          
           _findclose(手柄);
}

inr main( )
{
        char 路径 = "." ;
       
        printf("计算中...\n");
       
        findALLCodes(路径);
        findALLDirs(路径);
       
        printf("你总共写了 %ld 行代码!\n\n", total);
        system("暂停");
       
        返回 0;
}

qczj 发表于 2023-11-28 11:31:16

查看答案

2070057076 发表于 2023-11-28 14:24:30

此电脑

xiaoxiu_ 发表于 2023-11-28 20:14:02

!

极客破解 发表于 2023-11-28 20:16:07

答案

Relle 发表于 2023-11-28 22:00:11

66666666
页: 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 [1983] 1984 1985 1986 1987 1988 1989 1990 1991 1992
查看完整版本: S1E2:第一个程序 | 课后测试题及答案