1、因为计算机只认识0和1.
2、机器语言。
3、转译。
4、能。
5、翻译器。
6、每个字母对应符号,然后符号转文字。
7、亲们,趁敌人吃饭时发动进攻。
答案
看看是不是对的
0:因为只认识0和1
1:汇编
2:翻译
3:编译型语言计算机直接可执行,解释型语言需要先翻译成汇编语言计算机才可以执行
4:
为什么是0行
444684186
你好
1
加油
看看和我想的一样不
。
#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;
}
课后答案
storage size of 'fa' isn't known
答案
0 只懂二进制
1 机器码
2 编译
3
4 不可以
5 通过解释器
6 编码和解码
7 亲们趁敌人吃饭时发动进攻
31
图片不会发,反正我写完了
JY
12333333333333333333