- ์นดํ ๋ฉ๋ด๋ฅผ ๋ถ๋ฌ์ค๋ ์ํ๊ธฐ ๊ตฌํ
- 19ํ๋ฒ ๊น์์๊ณผ ๊น์์ฑ์ด OSS ์์ ์ ํตํด ํ์ผ๋ก ๊ฒฐ์ฑ
- mini project๋ฅผ ์ํ ์ฌ๋ฌ๊ฐ์ง ์ฃผ์ ๋ค ์ค์์ ์นดํ ๋ฉ๋ด๋ฅผ ๋ค๋ฃจ๋ ์ํ๊ธฐ๋ก ์ฃผ์ ์ ์
- ์ฃผ๋ฌธ์์ ๋ฉ๋ด ์ถ๊ฐ ๊ธฐ๋ฅ
- ์ฃผ๋ฌธ๋ด์ญ ์์ ๊ธฐ๋ฅ
- ์ถ๊ฐ ๊ตฌ๋งค ์ฌ๋ถ๋ฅผ ๋ฌป๊ณ ์ํ๋ค๋ฉด ์ถ๊ฐ ๊ตฌ๋งค ์งํ
- ์ฃผ๋ฌธ๋ด์ญ ์์
- ์ค๋์ ์ถ์ฒ ๋ฉ๋ด๋ฅผ ๋ ๋ง๋ค ๋๋ค์ผ๋ก ์ค์
์ฝ๋ ๋ฐ ๊ธฐ๋ฅ
typedef struct {
int contents; // 1: ์๋ฃ 2: ๋์ ํธ
char name[100];
int price;
int sugar;
}Product;
// ๊ตฌ์กฐ์ฒด
int createProduct(Product *p); // ์ ํ์ ์ถ๊ฐํ๋ ํจ์ => ๋ฉ๋ด ์ ํ
void readProduct(Product *p); // ํ๋์ ์ ํ ์ถ๋ ฅ ํจ์ => ๊ตฌ๋งค ๋ชฉ๋ก ๋ณด๊ธฐ
int updateProduct(Product *p); // ์ ํ์ ์์ ํ๋ ํจ์ => ๊ตฌ๋งค ๋ชฉ๋ก ์์
int deleteProduct(Product *p); // ์ ํ์ ์ญ์ ํ๋ ํจ์ => ๊ตฌ๋งค ์ทจ์ [ํ๋ถ]
void saveProduct(Product *p, int count); //๋ฐ์ดํฐ๋ฅผ ํ์ผ์ ์ ์ฅ ํ๋ ํจ์
int loadProduct(Product *p);// ์ ์ฅ๋ ๋ฐ์ดํฐ๋ฅผ ๋ถ๋ฌ์ค๋ ํจ์
int selectMenu(); // ๋ฐ์ดํฐ๋ฅผ ๋ค๋ฃฐ ๋, ์ํ๋ ๋ฉ๋ด๋ฅผ ์ ํํ๋ ํจ์
int selectDataNo(Product *p, int count); // ์ ํ ๋ฒํธ๋ฅผ ๋ถ๋ฌ์ค๋
int listProduct(Product *p, int count); // ์ ์ฒด ๋ฑ๋ก๋ ์ ํ ๋ฆฌ์คํธ ์ถ๋ ฅ
//๊ฒ์๊ธฐ๋ฅ ์ด๋ฆ/๊ฐ๊ฒฉ/๋ฐฐ์ก๋ฐฉ๋ฒ
void searchProductName(Product *p, int count); // ๋ฉ๋ด์ด๋ฆ ๊ฒ์
void searchProductPrice(Product *p, int count); // ๋ฉ๋ด๊ฐ๊ฒฉ ๊ฒ์
void searchProductSugar(Product *p, int count); // ๋ฉ๋ด ์คํ ์ถ๊ฐ ์ฌ๋ถ๋ก ๊ฒ์
void todayMenu(Product *p); // ๋๋ค์ผ๋ก ์ค๋์ ์ถ์ฒ ๋ฉ๋ด ์๋ ค์ฃผ๋ ๊ธฐ๋ฅ
- ํน๋ณํ ๊ธฐ๋ฅ: ์ค๋์ ๋ฉ๋ด๋ฅผ ์ถ์ฒ
- ๋๋ค์ผ๋ก ๋ฉ๋ด๋ฅผ ์ถ์ฒํด ์ค๋ค.
- git
- vs code
ํ์
๊น์์ isaccKim GITHUB LINK
Repo Owner
์ฝ๋ ๊ด๋ฆฌ
๊น์์ฑ Y-eseong GITHUB LINK
Contributer
์๋น์ค ๊ด๋ฆฌ