About Attitude is everything(Lovegirl = 100)---嘟嘟胖

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..
********************************************************************************************************************
     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 ;
}
---------------------------------------------------------------------------------------------------------------
     When I input "lovegirl" ,the program show me:
 LoveGirl   =  100 .  too ....        LoL:)
   

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值