1128lha 发表于 2022-12-5 13:06:34

问答题答案:



动动手答案:


cry900 发表于 2022-12-5 14:57:51

问答题答案:
0:计算机只能看懂机器码
1:是机器码,也叫机器语言
2:编译
3:解释性语言做出来的字节码需要经过解释器之后,才能由CPU执行
4:应该是不行的,操作系统不通用,产生的文件不一样
5:通过解释器来实现
6:其实就是转换
7:亲们趁敌人吃饭时发动进攻


dacihua 发表于 2022-12-5 15:04:31

问答题答案:
1


动动手答案:


超爱c语言 发表于 2022-12-5 16:20:32

问答题答案:
skdi


动动手答案:


ceyue 发表于 2022-12-5 16:39:50

问答题答案:



动动手答案:


MrNotJeff 发表于 2022-12-5 17:05:51

问答题答案:



动动手答案:


tuanzi666 发表于 2022-12-5 19:20:42

问答题答案:



动动手答案:


wangzihao27 发表于 2022-12-5 20:16:37

问答题答案:



动动手答案:


dcyl 发表于 2022-12-5 20:52:02

问答题答案:
0.因为计算机听不懂人类语言
1.机器语言
2.汇编
3.编译型语言是可执行文件
4.可以



动动手答案:


追梦少年不忧伤 发表于 2022-12-5 22:34:02

问帅


动动手答案:


15043738055 发表于 2022-12-5 23:37:59

问答题答案:
1.告诉他什么就执行什么2.机器语言3.编译4.能5.Java6.编译运行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;
}

广工小白 发表于 2022-12-6 08:51:07

1问答题答案:



动动手答案:


@August 发表于 2022-12-6 09:59:31

问答题答案:



动动手答案:


准备好学C了吗? 发表于 2022-12-6 10:59:01

问答题答案:
0.只能看懂0和1
1.汇编语言
2.编译
3.
4.能
5.
6.

动动手答案:


TCitachi 发表于 2022-12-6 13:36:12

问答题答案:



动动手答案:


[-.-] 发表于 2022-12-6 15:10:16

问答题答案:
0. 计算机只能识别二进制
1. 机器语言
2. 编译
3. 编译器语言编译后最后转为机器语言,计算机能直接识别。解释型语言编译后,需要解释器解释后才能被计算机识别。
4. 不能
5. 使用适配不同平台的解释器
6. 编译型语言
7. 亲人们趁敌人吃饭时发动进攻


动动手答案:


查无彡此人 发表于 2022-12-6 15:12:19

问答题答案:
0.CPU只认识0和1
1.机器语言
2.汇编
3.解释型语言效率相对低一些
4.不能
5.用语言编译器
6.查表
7.趁敌人吃饭时发起总攻

动动手答案:
计算中....
目前你总写了103行代码



叫我genius 发表于 2022-12-6 15:26:12

问答题答案:



动动手答案:
101

深海漩涡 发表于 2022-12-6 15:39:07

问答题答案:
不知道


动动手答案:
"C:\Users\刘有浩\Desktop\动动手截图.png"

ywq878063504 发表于 2022-12-6 15:55:07

问答题答案:
0.因为计算机是二进制只能识别0和1


动动手答案:


页: 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 [1811] 1812 1813 1814 1815 1816 1817 1818 1819 1820
查看完整版本: S1E2:第一个程序 | 课后测试题及答案