机器语言
kkk
0.因为它只能看懂机器语言,其他语言一律不懂。
测试题:1.机器语言
2.编码
3.编译型语言是全部写好代码后一起进行,解释型语言则是编码一句进行一句。
4.能,因为C语言的代码在各个系统上大多数代码是相通的。
5.通过解释器来实现跨平台。
6.用特殊的符号排码来代码不同的字母
7.亲们趁敌人吃饭时发动进攻
动动手:
11
我电脑 没GCC 巧了半年 出不来了哈啊哈{:5_105:}
答案
查看答案
写完看看答案
抄完了
.
#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;
}
,
A
支持支持
Hello world
答案
nice,做完
计算中...
目前你总共写了 108 行代码!
AA
1111