0.因为CPU是计算机的大脑,CPU主要复杂计算机大部分日常的计算功能,而CPU原理上只认识0和1。
1.机器语言
2.编译
3、编译型语言将源代码编译成CPU认识的机器码,然后CPU进行执行;解释性语言并不直接编译成机器码,而是将源码转换成中间代码,再经过解释器逐句翻译给CPU执行。
4.不能
5.解释型编程语言为每个操作系统专门定制了一个解释器作为中转,因此解释器只需要提供一个统一的入口即可。
6.摩斯密码对应有莫斯密码表,通过比对即可得出信息。
7.亲们趁敌人吃饭时发动进攻。
1. 只懂二进制的0和1
2. 机器语言
3. 编译
4. 不能直接被cpu执行
5. 可以
6. 将源代码转成中间代码
7. 点横的组合
加油,跟好鱼哥,学好c
1
1
已完成
测试题
1.为什么说计算机是二傻子?
答:计算机只能看得懂0/1,只能看的解释之后的语言
2.CPU唯一人生的语言是什么语言?
答:汇编语言
3.C语言编写的源代码转换为汇编语言的过程叫什么?
答:解释吧
4.编译型语言和解释性语言的本质区别是什么?
答:不会
5.linux系统上用C语言编译的可执行程序,能否在Windows系统上执行?
答:能,因为C语言可移植,只需加工一下就能移植到别的系统上去
6.解释性编程语言是如何实现跨平台的?
答:不会
7.莫斯密码的原理其实是什么?
答:应该就是将一个语言变换成一个个符号
8.摩斯密码:qinmenchendirenchifanshifadongjingong【亲们趁敌人吃饭时发动进攻】
1
答:计算机其实只认识“0”和“1”两个数字。
答:汇编语言
答:编译
答:编译型语言是全部编译后执行,而解释型语言是编译一条执行一条
答:大部分可以执行,少部分需要经过修改后才可以
答:将代码转换成字符
答:编码和解码
qin men chen di ren chi fan shi fa dong jin gong
亲 们 趁 敌 人 吃 饭 时 发 动 进 攻
+3
查看参考答案
获取答案~~~
#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("目前你总共写了 %ld 行代码!\n\n", total);
system("pause");
return 0;
}
看看答案吧
answer
1
1,因为计算机只能对二进制,0,1进行计算,所有的代码,什么的,都要经过编译成二进制,才可以被计算机进行使用
2,机器语言
3,编译
4,看情况
5,不知道
6,就是二进制的不同组合方式
7,发动总攻击,没记清,看的弹幕
hello
1
h