Ok
//Here we are Calling Libary Files
#include <cstdlib>
#include <iostream>
#include <windows.h>
using namespace std;
int main()
{
char TheText[50] = "Welcome to Kresha's Tutorial"; // Declaring the String
int len = strlen(TheText); // Here we take the length of the string and put it into an integer called len
int i; // Declaring integer i
for (i = 0; i < len ; i++) // For i = 0 if i is smaller then len(length of the string) i = i + 1
{
cout << TheText[i]; // output String from 0 length + 1
Sleep(100); // Here i Call the Sleep API so u can see the text appear Slow
}
//================================
cout << "\n";
system("Pause");
return 0;
}
thats all sorry for my bad english :D


Sign In
Create Account



Back to top










