gcc hw3.c -o text
이런식으로 컴파일 하면요~
/tmp/ccOOjIqK.o: In function `parseCommandLine':
/tmp/ccOOjIqK.o(.text+0x4ab): the `gets' function is dangerous and should not be
used.
라고 에러가 떠요.ㅜㅜ
코드는 이렇게 생겼거든요
[code:1]
parseCommandLine(int argc, char* argv[]) {
/* 중략 */
char contents[20];
/* 중략*/
while(quit == 0) {
scanf("%c", &com);
switch (com) {
/* ...중략... */
case 'A':
scanf("%d", &number);