G

@godks

버블 정렬(내림차순)

C
1 year ago
#include <stdio.h> int main() { int arr[4] = {1, 2, 3, 4}; //배열의 인덱스 0부터 끝까지 비교하는 것 = 1바퀴 //한 바퀴 안에서 3번의 비교활동 발생 //두 바퀴 안에서 2번의 비교활동 발생 //세 바퀴 안에서 1번의 비교활동 발생 //arr 배열 길이 = 4 //바퀴 수 = 4-1 = 3

성적표 출력 문제

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> typedef struct preson { char name[20]; int a; }Person;

코드업 1등 석차 계산 문제

C
1 year ago
#include <stdio.h> #include <math.h> typedef struct preson { char name[20]; int a; int b; int c; }Person;

475p 예제

C
1 year ago
#include <stdio.h> #include <math.h> struct point { int xpos; int ypos; }; typedef struct point Point;

464p 예제

C
1 year ago
#include <stdio.h> #include <math.h> struct point { int xpos; int ypos; }; int main()

467p 예제

C
1 year ago
#include <stdio.h> #include <math.h> struct point { int xpos; int ypos; struct point * ptr; };

463 문제

C
1 year ago
#include <stdio.h> #include <math.h> struct employee { char name[20]; char num[20]; int p; };

461p 예제

C
1 year ago
#include <stdio.h> #include <math.h> struct point { int xpos; int ypos; }; int main(void)

459p 예제

C
1 year ago
#include <stdio.h> #include <math.h> struct point { int xpos; int ypos; }; struct person

455p 예제

C
1 year ago
#include <stdio.h> #include <math.h> struct point { int xpos; int ypos; }; int main() {

522p 문제 3

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ char str[50]; FILE * fp=fopen("mystory.txt", "rt"); if(fp==NULL)

522p 문제 2

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ int ch, i; FILE * fp=fopen("mystory.txt", "at"); if(fp==NULL) {

520p 예제

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ FILE * src=fopen("simple.bin", "rb"); FILE * des=fopen("dst.bin", "wb"); char buf[20]; int readCnt;

518p 예제

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ FILE * src=fopen("simple.txt", "rt"); FILE * des=fopen("deds.txt", "wt"); char str[20]; if(src==NULL || des == NULL)

517p 예제

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ FILE * src=fopen("simple.txt", "rt"); FILE * des=fopen("des.txt", "wt"); int ch; if(src==NULL || des == NULL)

522p 문제 1

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ int ch, i; FILE * fp=fopen("mystory.txt", "wt"); if(fp==NULL) {

516p 예제

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ char str[30]; int ch; FILE * fp=fopen("simple.txt", "rt");

515p 예제

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ FILE * fp=fopen("simple.txt", "wt"); if(fp==NULL) { puts("파일오픈 실패!");

509p 예제

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ int ch, i; FILE * fp=fopen("data.txt", "rt"); if(fp==NULL) { puts("파일오픈 실패!");

505p 예제

C
1 year ago
#include <stdio.h> #include <math.h> #include <string.h> int main(void){ FILE * fp=fopen("data.txt", "wt"); if(fp==NULL) { puts("파일오픈 실패!"); return -1;