175頁第三至后面幾行關(guān)于顯示隨機(jī)數(shù)字的代碼,后面都加有“+0x30”,請問這個“0x30”是什么意思?謝謝了!
原代碼是:
uint ran;
ran=rand(); //產(chǎn)生5位隨機(jī)數(shù)字
dis1[0]=ran/10000+0x30;
dis1[1]=ran%10000/1000+0x30;
dis1[2]=ran%1000/100+0x30;
dis1[3]=ran%100+0x30;
dis1[4]=ran%10+0x30;
明白了,謝謝回復(fù)。
歡迎光臨 (http://www.torrancerestoration.com/bbs/) | Powered by Discuz! X3.1 |