沧海、、、 发表于 2023-4-3 20:12:14

0.因为计算机只能识别0和1
1.机器码,也叫做机器语言
2.编译
3.编译型语言可直接转化为机器码由CPU直接执行,解释型语言需要转化为字节码再通过解释器逐一翻译给CPU执行
4.可以
5.解释型语言先转化为字节码再通过解释器翻译给CPU执行,有了解释器的存在就能实现跨平台操作
6.将明文对着编码表翻译为“点横”组合的过程,我们称之为编码,反过来,将“点横”组合解密回原文的过程,叫做解码

Mercury1773 发表于 2023-4-3 20:21:16

查看参考答案

Lycwillbebetter 发表于 2023-4-3 20:30:47

第一节课

13343422876 发表于 2023-4-3 20:39:10

1.因为计算机只认识0和1
2.汇编语言
3.编译
4.可以
5.不知道
6.不太清楚
7.不到啊

cfplang 发表于 2023-4-3 20:40:54

嘻嘻嘻6 发表于 2023-4-3 22:02:45

C:\Users\17252\Desktop\VirtualBox_03_04_2023_22_01_08.png

嘻嘻嘻6 发表于 2023-4-3 22:03:48

为什么我Windows中用vscod编译运行后输出是乱码格式呀

爱吃梨的猩猩 发表于 2023-4-3 22:58:19

山上

SUDAmasaki123 发表于 2023-4-3 23:47:41

参考答案

十年星空 发表于 2023-4-4 08:32:28

来了来了

Game.for 发表于 2023-4-4 10:13:35


TINF 发表于 2023-4-4 13:18:09

1

1969398648 发表于 2023-4-4 14:15:05

1

Jaychou66 发表于 2023-4-4 15:18:22

查看参考答案

wzk1207 发表于 2023-4-4 18:31:30

#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("目前你总共写了%1d行代码!\n\n", total);
        system("pause");

        return 0;
}

akalikaka 发表于 2023-4-4 20:48:13

看答案

番茄吃六花 发表于 2023-4-4 21:07:59

1

ckaxx 发表于 2023-4-4 23:56:43

哦豁

飞飛飞 发表于 2023-4-5 11:19:12

鱼C有你更精彩

标准错误 发表于 2023-4-5 13:05:50

只懂二进制语言
二进制
编译



二进制
亲们趁敌人吃饭进攻
页: 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 [1879] 1880 1881 1882 1883 1884 1885 1886 1887 1888
查看完整版本: S1E2:第一个程序 | 课后测试题及答案