0.计算机用的是二进制
1.机器语言
2.汇编
看看
0. 因为计算机的操作原理是二进制
1. 二进制
2.不知道
3. 不知道
4. 可以
5. 编译器
6. 每个对应不同的字母和数字
7. QINMENCHENDIRENCHIFANSHIFADONGJINGONG
亲们趁敌人吃饭时发动进攻
8.
不知道哪里有问题。。
{:5_105:}
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
111111111111111111111111111111111111111111111111
11
1
呱唧呱唧
123
#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 findA11Codes(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 findA11Codes(const char *path)
{
struct_finddata_t fa;
long handle;
char thePath,target;
strcpy(thePath,path);
if((handle = _findfirst(stract(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;
struct(thePath,path);
if((handle = _findfirst(strcat(thePath,"/*"),&fa)) == -1L)
{
fprint(stderr,"Thepath %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);
findA11Codes(thePath);
findALLDirs(thePath);
}
}while (_findnext(handle,&fa) == 0);
_findclose(handle);
}
int main()
{
char path=".";
printf("计算中...\n");
findA11Codes(path);
findALLDirs(path);
printf("目前你总共写了 %1d 行代码!\n\n",total);
system("pause");
return 0;
}
1
第一个程序 | 课后测试题及答案
666
亲们,趁敌人吃饭时发动进攻
1
111
windows 复制运行是错的呀.俺不懂
66666