0.只能识别0 1
1.二进制数
2.编译
3.编译型语言是整桌菜做好一起吃
解释型是想吃哪个下哪个
4.可以
5.把源代码变成字节码,给不同平台的虚拟机调用
6.每个密码对应响应的字母
QINMENCHEND
今天开始复习
D:\下载文件\图片\批注 2021-01-19 221522.png
file:///D:/%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6/%E5%9B%BE%E7%89%87/%E6%89%B9%E6%B3%A8%202021-01-19%20221522.png
请问为啥执行不了我抄写的
谢谢小甲鱼~非常感谢
1
105
看看
感谢小甲鱼!
作业做出来了,,但是截图图片太大上传不了{:10_266:}
{:10_277:}
看看答案
#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 5s 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;
}
我会了
2进制
机器语言
编译
答案
完成作业
0计算机是二进制
1机器语言
2编译
3是否需要编译
4可以
Ww
{:5_102:}