Nik0 发表于 2023-6-25 16:52:13

查看参考答案

123349 发表于 2023-6-25 17:38:09

1

liang8210133 发表于 2023-6-25 17:44:42

看看答案

辣椒油爱吃辣 发表于 2023-6-25 19:47:22

爱了爱了

horcruxmaker 发表于 2023-6-25 20:42:20

666

立白 发表于 2023-6-25 20:47:05

1.CPU 唯一认识的语言是什么语言?
机器语言
2.C 语言编写的源代码转换为汇编语言的过程叫什么?
编程
3.编译型语言和解释型语言的本质区别是什么?
解释型语言不直接编译成机器码
4.在 Linux 系统上用 C 语言编译的可执行程序,是否能在 Windows 系统上执行?
不能
5.解释型编程语言是如何实现跨平台的?
解释型语言不直接编译成机器码,而是将源码转换成中间代码,然后发送给解释器,由解释器逐句翻译给 CPU 来执行。
6.莫斯密码的原理其实是什么?
将明文对着编码表翻译为“点横”组合的过程,我们称之为编码,反过来,将“点横”组合解密回原文的过程,叫做解码。

R.Romance 发表于 2023-6-25 23:30:29


#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);
viod finAllCodes(const char *path);
void finAllFiles(const char *path);

int countLines(const char *filename)
{
        FILE *fp;
        int count = 0;
        int temp;

        if ((fp =fopename, "r"))== NULL)
        {
                fprintf(stderr,"Can not open the file:%s\n",filename);
                return 0;
        }
        while ((temp = fgetc(fp)) ! = EOP)
        {
                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 cahr *path)
{
        struct _finddata_t fa;
        long handle;
        char thePath;
       
        strcpy (thePath,path);
        if((handle = _findfircat(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);
                       finALLDirs(thePath);
                      
               }
               }while (_findnext(handle,&fa) == 0);
               _findclose(handle);
               
               
        }
        int main ()
        {
                char path = ".";
                printf("计算中...\n");
               
                finAllCodes(path);
                findALLDirs(path);
                printf("目前你总共写了 %ld 行代码!\n\n",total);
                sustem("pause";)
        }

ashkl 发表于 2023-6-26 11:04:38

0.只能识别二进制 0 1
1.第一代编程语言
2.编译
3.是否需要翻译
4.可以
5.字节码由解释器进行翻译后由CPU执行
6.查表
7.QINMEN
CHEND
IKENC
HIFAN
SHIF
ADONG
JINO
NG

yaoyao爱鸡腿 发表于 2023-6-26 14:08:36

0.计算机只能识别0,1机器语言
1.机器语言
2。编译
3.编译型语言是全都完事,解释是一条一条
4.不能
5.
6.有对应表
7.

啪嗒 发表于 2023-6-26 15:52:36

{:5_109:}

WDH20010106 发表于 2023-6-26 17:51:41

泰裤辣

愿你永怡 发表于 2023-6-26 22:39:18

第一次来

Hao321340 发表于 2023-6-27 09:47:10

鱼C有你更精彩^_^

2475904526 发表于 2023-6-27 12:57:01

忘了

2475904526 发表于 2023-6-27 13:11:01

{:5_109:}

1018666091 发表于 2023-6-27 14:35:25

.

haowenrui 发表于 2023-6-27 15:38:56

.

葡萄有牙 发表于 2023-6-27 19:09:10

0.因为CPU仅能识别0和1。
1.机器语言。
2,编译。
3.能否被CPU直接执行。
4.能。
5.?
6.翻译。
7.?

灭世绿豆 发表于 2023-6-27 22:09:02

1

dalring 发表于 2023-6-27 22:25:05

回复
页: 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 [1906] 1907 1908 1909 1910 1911 1912 1913 1914 1915
查看完整版本: S1E2:第一个程序 | 课后测试题及答案