#include <stdio.h>
#include <time.h>
void delayy(clock_t timee)
{
static clock_t startt=clock();
if(clock()-startt<timee)
{
delayy(timee);
}
}
int main()
{
delayy(1000);
return 0;
}
나 뭐 잘못했어요?ㅠㅠ
#include <stdio.h>
#include <time.h>
void delayy(clock_t timee)
{
static clock_t startt=clock();
if(clock()-startt<timee)
{
delayy(timee);
}
}
int main()
{
delayy(1000);
return 0;
}
나 뭐 잘못했어요?ㅠㅠ
delayee
무한재귀에 들어간듯
작동해야 맞는 코드 아니에요?
뭐틀렸는지 알려주세요ㅠㅠ
delayy 함수 안에 gets("WTF?"); 넣고 실행해보셈
stack overflow
파이썬도 아니고 무슨 1000번으로 오버플로가 나요
1000번이 아니고 1000클락 돌동안 호출이니까 날법도 하쥬