Hey everyone,
This is my first post so go easy on me. I am pretty much a beginner when it comes to C++ so please assume that I know nothing when you reply
Okay so here is the question, I am trying to create a simple function using Dev C++
for a dos base program.
Basically what I want the function to end up with is when I type something similar to typeit("This is my text"); it will display the characters on the screen one by one (like on the matrix).
I thought I had this worked out and when I compile the prog I get truckloads or errors..javascript:smilie('')
confused Can you guys please look at the code below and let me know what I am doing wrong (in english)
void typeit(string type_text){
double x= type_text.size();
char ticker[x]=type_text;
double i=0
while (i != x/4){wait(.3); cout ticker[x];i++;}
while (i != x/4*2){wait(.2); cout ticker[x];i++;}
while (i != x/4*3){wait(.1); cout ticker[x];i++;}
while (i != x){wait(.2); cout ticker[x];i++;}
wait(2);
system("cls");
}
Any suggestions