ورود

View Full Version : آموزش: برنامه کرنومتر



motherboard
جمعه 25 بهمن 1392, 18:47 عصر
#include <cstdio>
#include <windows.h>
#include <ctime>

using namespace std;


int main(void)
{
for(;;)
{
Sleep(10);
printf("\r%.2f",(float)clock ()/CLOCKS_PER_SEC);
}
}



البته می تونید به جای cstdio و ctime از stdio.h و time.h هم استفاده کنید.