Some people show me a game:
******************************************************************************************************************************
If,A=1B=2C=3D=4E=5F=6G=7H=8I=9J=10K=11L=12M=13N=14O=15P=16Q=17R=18S=19T=20U=21V=22W=23
X=24Y=25Z=26
Then H+A+R+D+W+O+R+K = 8+1+18+4+23+15+18+11 = 98%
K+N+O+W+L+E+D+G+E = 11+14+15+23+12+5+4+7+5 = 96%
L+O+V+E=12+15+22+5=54%
L+U+C+K = 12+21+3+11 = 47%
(None of them makes 100%)
...............................
Then what makes 100%
Is it Money? ..... No!!!!!
Leadership? ...... NO!!!!
Every problem has a solution, only if we perhaps change our "ATTITUDE".
It is OUR ATTITUDE towards Life and Work that makes
OUR Life 100% Successful..
Then H+A+R+D+W+O+R+K = 8+1+18+4+23+15+18+11 = 98%
K+N+O+W+L+E+D+G+E = 11+14+15+23+12+5+4+7+5 = 96%
L+O+V+E=12+15+22+5=54%
L+U+C+K = 12+21+3+11 = 47%
(None of them makes 100%)
...............................
Then what makes 100%
Is it Money? ..... No!!!!!
Leadership? ...... NO!!!!
Every problem has a solution, only if we perhaps change our "ATTITUDE".
It is OUR ATTITUDE towards Life and Work that makes
OUR Life 100% Successful..
********************************************************************************************************************
This game is excellent , for interesting ,I'v made a program like below ,i wanna find if there any words will be
add to 100 just like "Attitude" . but to my surprise ,I found sth....
______________________________________________________________________
#include <iostream.h>
int Sumword(char *) ;
int main()
{
const int SIZE = 20;
char buffer1[SIZE] ;
cout<<"Please Enter a Word"<<endl ;
cin>>buffer1 ;
cout<<"Sum of the words is : "<<Sumword(buffer1)<<endl ;
return 0 ;
}
int Sumword(char *buffer)
{
int sum = 0 ;
while((*buffer) != '/0')
{
if(*buffer<='Z'&& *buffer>='A') *buffer+=32 ;
sum+= (int)*buffer - 96 ;
buffer++ ;
}
return sum ;
}
int Sumword(char *) ;
int main()
{
const int SIZE = 20;
char buffer1[SIZE] ;
cout<<"Please Enter a Word"<<endl ;
cin>>buffer1 ;
cout<<"Sum of the words is : "<<Sumword(buffer1)<<endl ;
return 0 ;
}
int Sumword(char *buffer)
{
int sum = 0 ;
while((*buffer) != '/0')
{
if(*buffer<='Z'&& *buffer>='A') *buffer+=32 ;
sum+= (int)*buffer - 96 ;
buffer++ ;
}
return sum ;
}
---------------------------------------------------------------------------------------------------------------
When I input "lovegirl" ,the program show me:
LoveGirl = 100 . too .... LoL:)