回复
6666666666
我想了解
感谢小甲鱼
哈哈
hi
对答案time
#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 weong!\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;
}
做完了
看答案
机器语言
ss
哈哈哈哈,终于打完了,运行成功~
答案
0,因为计算机只会读二进制数
1机器语言
2编译
3
4可以
5
6
7
0.计算机只认识二进制编码。
1.机器语言。
2.编译过程。
3.编译型语言可以被机器直接识别,解释型语言需要有翻译的过程。
4.可以。
5.通过不同的解释器翻译字节码来进行跨平台
6.编码解码
7.亲们,趁敌人吃饭发动进攻
QINMEN CHEND IRENC HIFAN SHIF ANEONG JINGO NG
0.计算机只能读懂机器码,也就是只能读懂0和1的二进制串。
1.汇编语言
2.编译
3.编译型语言将高级语言编程机器码,CPU可以直接执行;而解释型语言需要一边解释高级语言的语句,一边执行解释过的语句,循环这个动作,直到所以的代码执行完成。
4.如果没有用到系统的调用应该是可以的,否则就不可以了。
5.解释型语言首先需要转化为机器码才可以实现跨平台。
6.摩斯密码是由点和划线组成。根据点和下划线组成的密码,找到密码本中对应的数字;来破解信息。
kkkk
打卡