jamie541304354 发表于 2021-3-26 00:30:19

{:5_103:}

龙霸倾城 发表于 2021-3-26 01:42:30

0.计算机只认识0和1,
1.机器语言,
2.编译,
3.一个是大锅饭,一个是火锅,
4.能
5.解释型语言依靠解释器,跨平台性好。
6.摩斯密码由点和横线组成,点与横线的不同组合代表一个意思,
7.亲们趁敌人吃饭时发动进攻(Q I N M.E N C H E N D I R E N C.H I F A N S H I F A D O N G J I N G O N G)

paperplane39 发表于 2021-3-26 03:37:23

111

qsz111 发表于 2021-3-26 09:11:46

感谢楼主无私奉献

new.C 发表于 2021-3-26 09:13:45

1

开心小羊 发表于 2021-3-26 09:52:14

Winds6 发表于 2021-3-26 13:30:46

{:5_102:}

昔逝i 发表于 2021-3-26 14:39:35

666

暴走码农 发表于 2021-3-26 15:10:15

1

ice_fish 发表于 2021-3-26 15:12:10

0. 为什么我们说计算机其实是“二傻子”?
只能”理解“符合规则的语言
1. CPU 唯一认识的语言是什么语言?
机器码,也就是二进制指令
2. C 语言编写的源代码转换为汇编语言的过程叫什么?
编译?
3. 编译型语言和解释型语言的本质区别是什么?
是否有一个单独的编译过程?
4. 在 Linux 系统上用 C 语言编译的可执行程序,是否能在 Windows 系统上执行?
不能,因为编译的目标文件是针对当前该平台的
5. 解释型编程语言是如何实现跨平台的?
源文件可以在不同平台上编译
6. 莫斯密码的原理其实是什么?
符号对应及替换
7. 视频中小甲鱼“故弄玄虚”的那段密文还原后是什么内容(中文)?
不知道。。。

kafei7755x 发表于 2021-3-26 15:24:13

看个答案

事实胜于雄辩 发表于 2021-3-26 15:51:59

希望能坚持下去

c2233 发表于 2021-3-26 16:04:40

#include<stdio.h>
#include<io.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 *path);
{
        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;
        charthePath, target;

        strcpy(thePath, path);
        if (handle = _findfirst(strcat(thePath, "/*.c"), &fa)) != -1L)
        {
        do
        {
                sprint(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 (_findnest(handle, &fa) == 0);
_findclose(handle);
}
int main()
{
        char path = ".";
        printf("计算中。。\n");
       
        findAllCodes(path);
        findALLDirs(path);
        prinft("目前你总共写出了%1d行代码!\n\n", total);
        stystem("pause");
        return 0;
}

ywx123456 发表于 2021-3-26 17:07:26

来了来了

来者犹可追丶 发表于 2021-3-26 17:29:16

.

土命打车 发表于 2021-3-26 17:42:50

windows的那个动动手为什么第一行要空开

Lawinbee 发表于 2021-3-26 18:52:45

1

2432939297 发表于 2021-3-26 20:04:47

6666666666

李巧媚 发表于 2021-3-26 20:36:51

{:10_256:}

大资本家亚里沙 发表于 2021-3-26 21:42:53

希望人没事- - - - - -
页: 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 [1132] 1133 1134 1135 1136 1137 1138 1139 1140 1141
查看完整版本: S1E2:第一个程序 | 课后测试题及答案