I've just compiled and run it on my UNIX box without problem. You could try changing cin>>data[50]; to cin>>data;. Other than that (and an extra semi-colon on you int size = 0; line which shouldn't cause this) I can't see anything wrong.
If that doesn't fix it, post your compiler details, someone may be able to be of more help than me.
#include<iostream>
#include<cstring>
usingnamespace std;
int main()
{
char data[50];
int size = 0; //removed extra ; (would not cause an error)
cout << "please input the word\n";
cin >> data; //changed from: cin >> data[50];
size = strlen(data);
cout << "the number of letters is " << size;
return 0;
}
EDIT: Beaten by bnbertha, but on my Windows box I needed to change cin >> data[50];
ok i just figured it out it was not any thing with the code it was a stupid computer & OS any way thankx all you people it was really help full thankx again