here is your fixed code
Code:
#include <windows.h>
#include <iostream>//no more iostream.h
#include <conio.h>
#include <cstdio>//no more stdio.h
#include <cstdlib>//no more stdlib.h
#include <string>//for strlen()
using namespace std;
void TextPrint(char sentence[80], int sleep); /*Trailing semicolon*/
int main()
{
char sentence[80];
sentence = TextPrint("this is a test", 80);/*semicolon*/
for(int a=0; a<strlen(Sentence), att){
cout << sentence[a];
getch();
}
system("PAUSE")/*waits for user to press enter. Inside of windows.h */
return 0; /*always do this to end a program */
}
void TextPrint(char sentence[80], int sleep)
{
sleep(sleep); /*What is int sleep for?*/
return sentence;
}
I think I fixed all the problems.... but I'm not sure...