JonsenElizee

Software Developing Blog

"An idea is fragile . It can be killed by a scornful smile or a yawn .It can be mound down by irony and scared to death by a cold look."
"Most cultures throughout human history have not liked creative individuals .They ignore them or kill them.It is a very efficient way of stopping creativity."

------Advertising boss Charles Browe and Howard Gardner ,professor at Harvard

   :: 首页 :: 新随笔 ::  ::  :: 管理 ::
long long pow(int x, unsigned int n)
{
  
long long p = 1;
  
while (n > 0) {
    
if (n & 1) p *= x;
    x 
*= x;
    n 
>>= 1;        
  }
  
return p;
}

//this is a demo from micheal

posted on 2010-11-04 14:35 JonsenElizee 阅读(208) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
【推荐】超50万行VC++源码: 大型组态工控、电力仿真CAD与GIS源码库
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


By JonsenElizee