c++ how to make a typewriter effect code example
Example: how to make a typing effect c++
int main()
{
string hello = "Your text goes here";
int x=0;
while ( hello[x] != '\0')
{
cout << hello[x];
Sleep(500);
x++;
};
return 0;
}
int main()
{
string hello = "Your text goes here";
int x=0;
while ( hello[x] != '\0')
{
cout << hello[x];
Sleep(500);
x++;
};
return 0;
}