xzcczcxzcxz
测试题:
0,因为计算机只能识别1和0两个机器码。
1,机器语言。
2,编译。
3,解释型语言的代码需要经过解释器处理,而编译型语言的代码不需要。
4,不可以。
5,不懂。
6,用密码代替字母,字母与密码一一对应。
7,亲们,趁敌人吃饭时发动进攻。
起飞 芜湖
0.0
1
111111111111111111111111111111
学习学习!!!!
答案见图片
败了
1
计算中...
目前你总共写了0行代码!
解锁
不对
Windows:版权属于:bbs.fishc.com
?}LJuEfWN;$_YMrzB5(2]j
#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
复制你的代码也显示0{:5_91:}
啊啊啊啊啊
大概是因为计算机会有很多Bug出现
0、 计算机不能变通,只能按照既定程序运行。
1、 机器语言。
2、 链接
3、 不知道。
4、 否
5、 不知道
6、
只认一种语言
机器语言
效率高
不行
有解释器
有特殊的字符转换
亲们敌人吃饭时发动进攻
每天坚持,加油