본문 바로가기

미래(2015-2016)

비트연산자 ~ switch문 보호되어 있는 글입니다. 더보기
기본 자료형 ~ 비트 연산자 보호되어 있는 글입니다. 더보기
기본 자료형 보호되어 있는 글입니다. 더보기
설치 더보기
주차관리 프로그램 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816.. 더보기
구조체, 동적할당 보호되어 있는 글입니다. 더보기
가운데 정렬 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061#include #include #include void gotoxy(int x, int y);void center(char *str);void center_2(char *str, ...);int getCursorPosition(void); int main(){ char arr[] = "happy birthday to you"; center(arr); return 0;} void center(char *str){ int x = (80 - strlen(str)) / 2; int y = getCursorPos.. 더보기
야구게임 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172/* 2015.09.23 내용: 숫자 야구 게임 위치랑 숫자 모두 맞추기 숫자만 맞추면 B, 위치랑 숫자를 맞춰야 S*/ #include #include #include int main(){ char com[4]; char ans[4]; int i, j; int b, s = 0; srand(time(NULL)); for (i = 0; i 더보기
문자열 보호되어 있는 글입니다. 더보기
단위별로 콤마 찍기 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950/* 2015.09.23 내용: 숫자를 입력받아서 단위별로 콤마 찍기*/ #include int main(){ int num, temp; int count = 0, thousand = 1; char comma = ','; while (1) { printf("정수를 입력해주세요. (1 ~ 2147483647) : "); scanf("%d", &num); if (num 더보기