MapleStory Finger Point

๐Ÿ”ต C,C++,C#/๐Ÿ“šCore C_Programming 7

[C/Core C Programming] Chapter10.๊ตฌ์กฐ์ฒด

#include void make_lower(char a[], char b[]); typedef struct login { char a[10]; char b[10]; }LOGIN; int main() { LOGIN arr; printf("ID?"); gets(arr.a); printf("PASSWORD?"); gets(arr.b); make_lower(arr.a, arr.b); return 0; } void make_lower(char a[], char b[]) { int a1, b1; a1 = strlen(a); b1 = strlen(b); for (int i = 0; i < a1; i++) { if (islower(a[i])==0) a[i] = tolower(a[i]); } printf("ID: ")..

[C/Core C Programming] Chapter9.๋ฌธ์ž์—ด

#define _CRT_SECURE_NO_WARNINGS #include #define SIZE 50 int check_time_str(char phon[]); int main() { char phon[20]; check_time_str(phon); return 0; } int check_time_str(char phon[]) { char x[4] = "010"; while (1) { printf("์ „ํ™”๋ฒˆํ˜ธ ์ž…๋ ฅ(. ์ž…๋ ฅ์‹œ ์ข…๋ฃŒ)\n"); gets(phon); if (strlen(phon) == 11) { if (strncmp(phon, x, 3) == 0) { printf("%s ๋Š” ์œ ํšจํ•œ ์ „ํ™”๋ฒˆํ˜ธ ์ž…๋‹ˆ๋‹ค\n", phon); } } else if(strcmp(phon,".")==0){ break; } ..

[C/Core C Programming] Chapter7

//2 #include #include int main() { double a; double r; double n[10] = { 0, }; printf("์ฒซ๋ฒˆ์งธํ•ญ?"); scanf_s("%lf", &a); printf("๊ณต๋น„?"); scanf_s("%lf", &r); printf("๋“ฑ๋น„์ˆ˜์—ด"); for (int i =1; i < 10; i++) { n[0] = a; n[i] = n[i-1]* r; } for (int j = 0; j < 10; j++) { printf("%.1lf ", n[j]); } return 0; } //3 #include #include int main() { int n[10] = { 1,2,3,4,5,6,7,8,9,10 }; int i; int max = 0, min = 0; p..

[C/Core C Programming] Chapter6

//5 #include #include #define SIZE 100 int is_even(int a[], int size, int cu); int is_odd(int a[], int size,int cu); int main() { int a[SIZE]; int count=0; printf("์ •์ˆ˜๋ฅผ ๋นˆ์นธ์œผ๋กœ ๊ตฌ๋ถ„ํ•ด์„œ ์ž…๋ ฅํ•˜์„ธ์š” (๋งˆ์ง€๋ง‰์— 0)"); for (int i = 0; i < SIZE; i++) { scanf_s("%d", &a[i]); count = i; if (a[i] == 0) break; } printf("์ž…๋ ฅ๋ฐ›์€ ์ •์ˆ˜ ์ค‘ ์ง์ˆ˜๋Š” %d๊ฐœ ํ™€์ˆ˜๋Š” %d๊ฐœ ",is_even(a,SIZE, count), is_odd(a,SIZE, count)); return 0; } int is_even(int ..

[C/Core C Programming] Chapter5

//2 #include int main() { int x, y; printf("์ ์˜ ์ขŒํ‘œ (x,y)?"); scanf_s("%d %d", &x, &y); if (x 0) { printf("2์‚ฌ๋ถ„๋ฉด"); } else if (x > 0 && y > 0) { printf("1์‚ฌ๋ถ„๋ฉด"); } else if (x 0 && y < 0) { printf("4์‚ฌ๋ถ„๋ฉด"); } return 0; } //4 #include int main() { int n; printf("์—ฐ๋„?"); scanf_s("%d", &n); if (((n % 4 == 0) && (n % 100 != 0) ||( n % 400 == 0))) prin..

[C/Core C Programming] Chpater3

//1 #include int main() { int n; printf("ํ•œ๋ณ€์˜ ๊ธธ์ด?"); scanf_s("%d", &n); printf("์ •์‚ฌ๊ฐํ˜•์˜ ๋„“์ด: %d\n",n*n); printf("์ •์‚ฌ๊ฐํ˜•์˜ ๋‘˜๋ ˆ: %d\n",n*4); return 0; //2 #include int main() { int w; int h; printf("๊ฐ€๋กœ์˜ ๊ธธ์ด?"); scanf_s("%d", &w); printf("์„ธ๋กœ์˜ ๊ธธ์ด?"); scanf_s("%d", &h); printf("์ง์‚ฌ๊ฐํ˜•์˜ ๋„“์ด: %d\n",w*h); printf("์ง์‚ฌ๊ฐํ˜•์˜ ๋‘˜๋ ˆ: %d\n",(w+h)*2); return 0; }โ€‹ //3 #include int main() { int m; int h; printf("์งˆ๋Ÿ‰(kg)?"); scanf..