查看参考答案
1
看看答案
爱了爱了
666
1.CPU 唯一认识的语言是什么语言?
机器语言
2.C 语言编写的源代码转换为汇编语言的过程叫什么?
编程
3.编译型语言和解释型语言的本质区别是什么?
解释型语言不直接编译成机器码
4.在 Linux 系统上用 C 语言编译的可执行程序,是否能在 Windows 系统上执行?
不能
5.解释型编程语言是如何实现跨平台的?
解释型语言不直接编译成机器码,而是将源码转换成中间代码,然后发送给解释器,由解释器逐句翻译给 CPU 来执行。
6.莫斯密码的原理其实是什么?
将明文对着编码表翻译为“点横”组合的过程,我们称之为编码,反过来,将“点横”组合解密回原文的过程,叫做解码。
#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";)
}
0.只能识别二进制 0 1
1.第一代编程语言
2.编译
3.是否需要翻译
4.可以
5.字节码由解释器进行翻译后由CPU执行
6.查表
7.QINMEN
CHEND
IKENC
HIFAN
SHIF
ADONG
JINO
NG
0.计算机只能识别0,1机器语言
1.机器语言
2。编译
3.编译型语言是全都完事,解释是一条一条
4.不能
5.
6.有对应表
7.
{:5_109:}
泰裤辣
第一次来
鱼C有你更精彩^_^
忘了
{:5_109:}
.
.
0.因为CPU仅能识别0和1。
1.机器语言。
2,编译。
3.能否被CPU直接执行。
4.能。
5.?
6.翻译。
7.?
1
回复