Hi guys,
I am trying to make a program that output "Loading", then delay for 1 sec, then output ".", then delay for 1 sec, then output "." Just like "Loading..."
This is my code:
#include <iostream>
#include <ctime>
int main()
{
cout << "Loading";
delay(30000000); // About a second
cout << ".";
delay (30000000);
cout << ".";
delay(30000000);
cout << ".";
return 0;
}
but the program just waited for 3 seconds and outputted "loading..." at once.
could someone help me solve this problem please?