上课不听 发表于 2022-12-16 10:53:30

问答题答案:
二进制




动动手答案:


暗炎魔主 发表于 2022-12-16 14:24:15

问答题答案:



动动手答案:


hxu 发表于 2022-12-16 17:57:43

问答题答案:

0.因为只能识别0和1
1.机器语言
2.编译
3.转化为机器码和字节码的区别
4.不可以
5.编译成字节码
6.查表
7.亲们趁敌人吃饭时发动进攻

动动手答案:

#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;
}

13271611321 发表于 2022-12-16 18:53:06

问答题答案:



动动手答案:


mindy1 发表于 2022-12-16 22:29:38

问答题答案:1、计算机只能识别0和1



动动手答案:


鱼的脑袋困掉了 发表于 2022-12-17 10:52:17

问答题答案:
102


动动手答案:
102

飞客的雪狼 发表于 2022-12-17 12:10:16

问答题答案:



动动手答案:


canwas 发表于 2022-12-17 14:22:54

问答题答案:
1


动动手答案:

1

望舒要学习 发表于 2022-12-17 14:37:01

问答题答案:



动动手答案:


YangY1Long 发表于 2022-12-17 15:14:20

问答题答案:



动动手答案:


衣架钩子向阳 发表于 2022-12-17 15:57:28

问答题答案:
0:计算机底层是二进制。
1:机器语言。
2:编译。
3:编译型语言执行完毕后解释, 解释型语言边执行边解释。
4:不能,c语言不跨平台。
5:通过解释器逐句翻译给cpu。

动动手答案:

102行代码

13648214538 发表于 2022-12-17 16:09:27

问答题答案:机器只知道机器语言



动动手答案:


YangY1Long 发表于 2022-12-17 16:35:49

问答题答案:



动动手答案:

53行跟你一摸一样 vc6.0报错

言.. 发表于 2022-12-17 16:43:26

问答题答案:
0.因为他不具备人脑对问题的处理方式,比如只能识别二进制
1.二进制
2.忘记了
3.后者需要媒介
4可以
5


动动手答案:

马上就去

甲基卡 发表于 2022-12-17 18:15:33

问答题答案:
机器语言


动动手答案:


hamburger787 发表于 2022-12-17 20:17:27

问答题答案:0.因为计算机的大脑是CPU,CPU只认识0和1
1.机器语言
2.编译
3.编译型语言是将源代码先编译成机器码,解释型语言是换成中间代码,然后发送给解释器
4.不能
5.解释型语言
6.查表
7.亲们趁敌人吃饭时发动进攻
动动手答案:


沐浴天上 发表于 2022-12-17 21:03:18

1问答题答案:



动动手答案:


zhaungge224 发表于 2022-12-18 11:51:14

问答题答案:



动动手答案:
求求了不会写啊

gaga哈啊哈 发表于 2022-12-18 16:36:41

问答题答案:
budong


动动手答案:


sheeptt 发表于 2022-12-19 10:09:17

1.因为只认识机器语言 2.机器语言 3.汇编程序 4.可以 5.不知道6.对应点横都有对应字 7.忘了问答题答案:



动动手答案:

不会上传截图啊啊
页: 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 [1817] 1818 1819 1820 1821 1822 1823 1824 1825 1826
查看完整版本: S1E2:第一个程序 | 课后测试题及答案