일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- #binary
- #CallByAddress
- #C++ has~a
- #android activity
- html code
- #1차원배열
- #C++ 연산자함수오버로딩
- #JAVASCRIPT
- docker example
- html object
- html id
- #bubbleSort
- #성적관리프로그램
- border-box
- html video
- relative path
- #자바상속#자바이즈어#is~a
- html charset
- 하이퍼레저패브릭
- mac terminal command
- html multimedia
- #3차원배열
- html5 new tag
- 토큰경제
- #2차원배열
- html youtube
- git flow
- html plug-in
- #다차원포인터
- hyperledger transaction
- Today
- Total
A sentimental robot
#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+..