일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- #CallByAddress
- #C++ 연산자함수오버로딩
- #bubbleSort
- #다차원포인터
- hyperledger transaction
- #자바상속#자바이즈어#is~a
- html multimedia
- #JAVASCRIPT
- #1차원배열
- #성적관리프로그램
- #3차원배열
- html plug-in
- #android activity
- html code
- #2차원배열
- html5 new tag
- mac terminal command
- 하이퍼레저패브릭
- html video
- #binary
- docker example
- border-box
- #C++ has~a
- 토큰경제
- html youtube
- html charset
- git flow
- html id
- html object
- relative path
- Today
- Total
목록C (47)
A sentimental robot
#include #pragma warning(disable:4996) void main() { char name[3][10] = { 0, }; int score[3][4] = { 0, }; float avr[3] = { 0 }; int i, j = 0; char scoName[6][10] = { "이름", "국어", "영어","수학","총점","평균" }; for (i = 0; i < 3 ; i++) { printf("%s:", scoName); scanf("%s", name + i); for (j = 0; j < 3 ; j++) // 국,영,수 점수 입력 { printf("%s:",scoName+(j+1)); scanf("%d", *(score + i) + j); *(*(score + i) + 3) +..
#include #pragma warning(disable:4996) void main() { char name[10]; int score[4]; float avr; int i; int sum = 0; char *pname; int *pscore; float *pavr; pname = name; pscore = score; pavr = &avr; printf("이름을 입력하시오:"); scanf("%s", pname); for (i = 0; i < 3; i++) { printf("점수를 입력하세요:"); scanf("%d", pscore + i); sum += *pscore; } *pavr = sum / 3.f; //전체출력 printf("이름\t국어\t수학\t영어\t총점\t평균\n"); printf("..
#include #pragma warning(disable:4996) void main() { char name[10]; int score[3]; int sum = 0; float avg; printf("name input :"); scanf("%s", name); printf("kor :"); scanf("%d", score); printf("eng :"); scanf("%d", score + 1); printf("mat :"); scanf("%d", score + 2); sum = *score + *(score + 1) + *(score + 2); avg = sum / 3.f; printf("name\tkor\teng\tmat\tsum\tavg\n"); printf("%s\t%d\t%d\t%d\t%d..
#include #pragma warning(disable:4996) void main() { char name[3][10]; int i, j = 0; int score[3][4] = { 0, }; float avg[3]; for (i = 0; i < 3 ; i++) { printf("Name input:"); scanf("%s", &name[i]); for (j = 0; j < 1 ; j++) { printf("korean/english/math score:"); scanf("%d%d%d", &score[i][0], &score[i][1], &score[i][2]); } score[i][3] = score[i][0] + score[i][1] + score[i][2]; avg[i] = score[i][3..
#include #pragma warning(disable : 4996) void main() { int score[3]; int sum; float avg; char name[10]; printf("name input : "); scanf("%s", &name[0]); printf("Korean :"); rewind(stdin); scanf("%d", &score[0]); printf("English :"); scanf("%d", &score[1]); printf("Math :"); scanf("%d", &score[2]); sum = score[0] + score[1] + score[2]; avg = sum / 3.f; printf("name:%s\nsum:%d\naverage:%f\n", name,..
#include #pragma warning(disable : 4996) int input(int x); char disp(int x, int y); void main() { int a = 0; int b = 0; char c = 'y'; while (c == 'y') { a = input(a); b = input(b); c = disp(a, b); } } int input(int x) { printf(" number input :"); scanf("%d", &x); return x; } char disp(int x, int y) { char i; printf(" +,-,*,/ :"); rewind(stdin); scanf("%c", &i); switch (i) { case '+': printf("%d+..