I was able to transform my program into this:
Code:
#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
string intro_speech = "Hello, and welcome to the introduction!";
for(unsigned i = 0; i < intro_speech.length(); i++)
{
cout << intro_speech[i];
Sleep(100);
if (GetAsyncKeyState(VK_RETURN)){
system("CLS");
cout << intro_speech;
break;
}
}
cin.get();
return 0;
}
It is nowhere near the mothod I really wished to implement the program with ( Check if ENTER equals true or false), but this finishes with almost similiar results I wanted. But what I really wanted was to be able to press enter while the string is outputting, and speed up the process to ALMOST instant by switching the milliseconds in the previous Sleep() function.. but unfortunately I do not have that knowledge and need help..