{:5_106:}
核对下答案
333
{:5_109:}
优秀的文章
0.因为计算机只认识 0 和1
1.机器语言
2.编译
3.是否在运行前将代码转换为 机器语言
4.不能
5.额,这个不懂
6.查字典 将莫斯密码与译文对应
目前你总共写了10行代码!
0.CPU只懂二进制的0和1
1.编程语言
2.编译
3.解释型语言不直接编译成机器码,而是将源代码转换为中间代码
4.能
5.先将源代码转换为中间代码,再发送给解释器,由解释器翻译给CPU
6.根据摩斯密码编码表翻译
1
看答案
好
答案
学习
哈哈哈哈哈
1111111111111111111
#include <io.h>
#include <direct.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX256
long total;
int countLine(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);
findAllCodes(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;
}
xue
11111111111111111111
1
计算中...
目前你总共写了98 行代码!
请按任意键继续. . .