0.因为他需要人类通过编程语言与之沟通
1.机器语言
2.编译
3.第一个是通过将源代码编译成机器语言,是一个可执行文件,可以被CPU直接运行;第二个是将源代码转换为中间代码,例如java就是转换为字节码,然后通过解释器逐句翻译给CPU,CPU去运行
4.可以
5.因为解释型编程语言是将源代码转换为中间代码,不同的语言转换为不同的中间代码,不像编译型编程语言是直接转换为机器语言形成可执行文件,转换为中间代码通过解释器一句一句解释给CPU
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("目前你总共写了%ld行代码!\n\n,total");
system("pause");
return 0;
}
#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;
}
看答案
0.因为计算机只能识别01这种机器语言
1.机器语言
2.编译
3过程不同,解释性编码不会直接进行转而是将源码转换成中间代码,发送给解释器,有解释器逐句解释给执行器执行
4.可以
5.通过解释器
6.将明文对着编码表翻译成点横组合
{:10_277:}
1
1.因为计算机只懂的二进制的“0”和“1”
2.CPU唯一认识的语言是机器语言
3.C语言编写的源代码转换为汇编语言的过程叫编译
4.解释型语言需要通过解释器
5.不行
6.通过修改或者删除就可以在其他平台上运行
7.查表
8.QINEN CHIN
太难了,一直错
1
截图有点大
1
1
1231231231231323
好
嘿嘿
不知道
机器语言
编译
有没有编译过程
否
答案
{:5_109:}
回复