08 2011 档案

摘要:#include<iostream>#include<stdlib.h>usingnamespacestd;intmain(){intaTest[10]={0,1,2,3,4,5,6,7,8,9};intnPos,nTemp;srand((unsigned)time(NULL));for(intnCount=0;nCount<10;nCount++){nPos=rand()%10;nTemp=aTest[nPos];aTest[nPos]=aTest[nCount];aTest[nCount]=nTemp;cout<<aTest[nCount]< 阅读全文
posted @ 2011-08-31 00:13 邓维 阅读(236) 评论(0) 推荐(0) 编辑
摘要:Type Bytes Bits Range short int 2 16 -32,768 -> +32,767 (16kb) unsigned short int 2 16 0 -> +65,535 (32Kb) unsigned int 4 16 0 -> +4,294,967,295 ( 4Gb) ... 阅读全文
posted @ 2011-08-31 00:08 邓维 阅读(267) 评论(0) 推荐(0) 编辑