freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

華為c筆試題-在線瀏覽

2025-05-11 23:11本頁面
  

【正文】 l = c%0x10 + 39。 if( cl 39。 ) cl += (39。39。1)。 39。for( size_t i=0。 ++I ) char2Hex( str[i] )。5. 以下代碼有什么問題?[C++易]struct Test{ Test( int ) {} Test() {} void fun() {}}。 ()。 ()。7. 以下代碼能夠編譯通過嗎,為什么?[C++易]unsigned int const size1 = 2。unsigned int temp = 0。unsigned int const size2 = temp。8. 以下代碼中的輸出語句輸出0嗎,為什么?[C++易]struct CLS{ int m_i。 }}。cout endl。 // 缺省構(gòu)造函數(shù) Empty( const Emptyamp。 // 拷貝構(gòu)造函數(shù) ~Empty()。 operator=( const Emptyamp。 // 賦值運(yùn)算符 Empty* operatoramp。 // 取址運(yùn)算符 const Empty* operatoramp。 // 取址運(yùn)算符 const}。cout (int)a endl。)a endl。)a ) endl。cout (int)b endl。)b endl。)b ) endl。( 1 )。( 3 )。 i=0。}12. 以下代碼有什么問題?[STL易]typedef vector IntArray。( 1 )。( 2 )。// 刪除array數(shù)組中所有的2for( IntArray::iterator itor=()。 ++itor ){ if( 2 == *itor ) ( itor )。[考慮問題是否全面]答:void* mymemcpy( void *dest, const void *src, size_t count ){ char* pdest = static_castchar*( dest )。 if( pdestpsrc amp。 pdestpsrc+cout ) 能考慮到這種情況就行了 { for( size_t i=count1。 I ) pdest[i] = psrc[i]。 icount。 } return dest。 mymemcpy( str+1, str+0, 9 )。 system( Pause )。}本試題僅用于考查C++/C程序員的基本編程技能。考試成績能反映出考生的編程質(zhì)量以及對(duì)C++/C的理解程度,但不能反映考生的智力和軟件開發(fā)能力。請(qǐng)考生認(rèn)真答題,切勿輕視。(10分)提示:這里“零值”可以是0, , FALSE或者“空指針”。請(qǐng)寫出 BOOL flag 與“零值”比較的 if 語句:請(qǐng)寫出 float x 與“零值”比較的 if 語句:請(qǐng)寫出 char *p 與“零值”比較的 if 語句:二、以下為Windows NT下的32位C++程序,請(qǐng)計(jì)算sizeof的值(10分)char str[] = “Hello” 。int n = 10。請(qǐng)計(jì)算sizeof ( p ) =三、簡(jiǎn)答題(25分)頭文件中的 ifndef/define/endif 干什么用?include 和 include “” 有什么區(qū)別?const 有什么用途?(請(qǐng)至少說明兩種)在C++ 程序中調(diào)用被 C編譯器編譯后的函數(shù),為什么要加 extern “C”聲明?請(qǐng)簡(jiǎn)述以下兩個(gè)for循環(huán)的優(yōu)缺點(diǎn)// 第一個(gè)for (i=0。){if (condition)DoSomething()。}// 第二個(gè)if (condition){for (i=0。)DoSomething()。 i++。}優(yōu)點(diǎn):缺點(diǎn):優(yōu)點(diǎn):缺點(diǎn):四、有關(guān)內(nèi)存的思考題(20分)void GetMemory(char *p){p = (char *)malloc(100)。GetMemory(str)。printf(str)。return p。str = GetMemory()。}請(qǐng)問運(yùn)行Test函數(shù)會(huì)有什么樣的結(jié)果?答
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1