본문내용
#include
#include
void printhead();
int main()
{
int i=0, count=0;
char fname[] = "grade.txt";
char ffname[] = "result.txt";
char names[80];
FILE *f, *ff;
int point1, point2, point3[10], cnt=0;
if((f = fopen(fname, "w")) == NULL)
{
printf("파일이 열리지 않습니다. \n");
exit(1);
}
printf("이름과 성적(중간, 기말)을 입력하세요. \n");
fgets(names, 80, stdin);
while(!feof(stdin))
{
fprintf(f, "%d", ++cnt);
fputs(names, f);
fgets(names, 80, stdin);
}
fclose(f);
if((f = fopen(fname, "r")) == NULL)
{
printf("파일이 열리지 않습니다. \n");
exit(1);
}
printhead();
while(!feof(f))
{
fscanf(f, "%d %s %d %8d\n", &cnt, names, &point1, &point2);
point3[i]=point1+point
#include
void printhead();
int main()
{
int i=0, count=0;
char fname[] = "grade.txt";
char ffname[] = "result.txt";
char names[80];
FILE *f, *ff;
int point1, point2, point3[10], cnt=0;
if((f = fopen(fname, "w")) == NULL)
{
printf("파일이 열리지 않습니다. \n");
exit(1);
}
printf("이름과 성적(중간, 기말)을 입력하세요. \n");
fgets(names, 80, stdin);
while(!feof(stdin))
{
fprintf(f, "%d", ++cnt);
fputs(names, f);
fgets(names, 80, stdin);
}
fclose(f);
if((f = fopen(fname, "r")) == NULL)
{
printf("파일이 열리지 않습니다. \n");
exit(1);
}
printhead();
while(!feof(f))
{
fscanf(f, "%d %s %d %8d\n", &cnt, names, &point1, &point2);
point3[i]=point1+point
추천자료
자연 언어 처리를 위한 전자 사전 구축 방안
프로그래밍 언어 분류와 펄(perl)
저작권과 불법파일공유
자연언어처리,인공지능,기계학습
스레드를 이용한 순차처리와 병렬처리의 차이점
[시청자권익보호][시청자참여프로그램][시청자평가원][옴부즈맨제도][정정보도청구][시청자불...
C# 으로 만든 채팅 & 파일전송 프로그램 & 보고서
MATLAB(매틀랩, 매트랩)의 개념과 구성, MATLAB(매틀랩, 매트랩) 윈도우, MATLAB(매틀랩, 매...
제9장 언어처리 : 인간과 컴퓨터(Language Processing : Humans and Computer) 요약본
[ C++ ] STL vector와 파일입출력을 이용한 장바구니 구현 프로그램
모래여과와 활성탄소필터를 이용한 가정용 간이 정수 처리 장치
(영상처리)점 처리 연산 이용한 C++구현
영아기 인지발달 - 인지발달, 피아제(Piaget)의 접근법, 정보처리접근, 언어의 구성요소, 언...