1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#include<string>
#include<iostream.h>
#include<iomanip.h>
int main()
{
char Word;
int size = 15;
char entireword[size];
size = 0;
int charnum;
int loop = 0;
char a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z;
char const Letters = 52;
int const Counter = 52;
char NumLetters[Letters] = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',
'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
int LetterCount[Counter]= {0};
int spot = 0;
char fullword[spot];
char Info(int LetterCount[],char NumLetters[], char fullword[], int charnum);
cout<<endl;
cin>>Word;
entireword[size] = Word;
cout<<entireword[size];
for(size =0 ;entireword[size] != '\0';size++)
{
cin>>Word;
entireword[size] = Word;
cout<<entireword[size];
}
cout<<endl;
cout<< strlen(entireword);
cout<<endl;
system("pause");
return 0;
}
|