答案
66666666666
谢谢甲鱼哥
感谢分享
第一天
daan
{:10_333:}
我来看看
0.cpu理论上只认识0和1,由此要通过编程来讲我们的语言转化成c语言能够理解的语言
1.机械语言
2.编译
3.编译型语言可将源代码直接翻译成cpu的语言,而解释型语言是要通过编译器来逐句翻译
4.不能,不同的操作系统在可执行文件准备工作的准备进程是不同的
5.解释型编程语言是将解释器作为每个系统的中轴
6.将特殊的符号代表的特殊的字母,实质上与c语言编写的源代码转化为cpu能够懂的语言相似
7.亲们,趁敌人吃饭时发起进攻
查看答案
终于做完了~
11
.
#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;
}
请问为什么不能运行呜呜呜
g
o
{:5_105:}
enne
0. 计算机只认识二进制机械语言
1. CPU只认识汇编
2. 编译
3. 不知道
4. 可以
5. 通过不同的编译器
6. 原理二进制编译字母
答案