일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- java
- 백준
- 모의 주식
- Python
- Project
- 코딩
- 주가예측
- Reflex
- 개발
- 이웃한 칸
- 개인프로젝트
- 사물인터넷
- 자바정리
- frontend
- 자바독학
- 풀스택프레임워크
- backend
- SNS
- 프로그래밍
- 프로그램
- 코스닥
- 프로그래머스
- 자바
- C++
- 코딩독학
- 코테
- 코딩테스트
- 개발자
- java정리
- 빅데이터
- Today
- Total
목록C Programming (104)
Creative Code
ParkJungSeok 100 100 100 LimYoHan 95 80 95 LeeYoungHo 90 95 83 MaJaeYoon 59 55 50 LeeJaeDong 90 80 95 LeeYoonYeol 85 73 65 ChoYounSung 55 50 45 LeeGisuk 90 95 83 KangMin 95 83 75 HongJinHo 85 85 84
#include int main(void) { //char name[21]; char buf[21]; char *name = buf; scanf("%20s",name); printf("%s\n",name); return 0; }
#include int main(void) { char name[21]; scanf("%20s",name); // scanf는 띄어쓰기를 구분할 수 없다. (받는 글자 수를 최대 20글자로 제한) printf("%s\n",name); return 0; }
※main.c파일 #include #include "point.h" int main(void) { point Point; int x1; int y1; printf("점의 x좌표 : "); scanf("%d",&x1); printf("점의 y좌표 : "); scanf("%d",&y1); Point.x = x1; Point.y = y1; printPoint(&Point); getLength(&Point); return 0; } ※point.h파일 #ifndef POINT_H #define POINT_H typedef struct point { int x; int y; }point; void printPoint(const point *p); void getLength(const point *q); #endif..
※main.c파일 //#include main함수에 printf함수가 없어서 필요없음 #include "date.h" /* typedef 사용법 typedef unsigned long size_t; // unsigned long 을 size_t로 정의 size_t len; // -> unsigned long len과 같은말 typedef signed char int_8; typedef short int_16; typedef int int_32; typedef long long int_64; int_8 i; int_16 i2; int_32 i3; int_64 i4; */ int main(void) { Date today; today.year = 2023; today.month = 8; today.day =..
#include struct date { int year; int month; int day; }; void printDate(struct date d) { printf("%d년 %d월 %d일 \n",d.year, d.month, d.day); } int main(void) { //birthday /* int birthday_year, birthday_month, birthday_day; birthday_year = 2005; birthday_month = 8; birthday_day =2; */ struct date birthday; birthday.year = 2005; birthday.month = 8; birthday.day = 2; /* int today_year, today_month, tod..