指針的英文(pointers中文翻譯,pointers是什么意思,pointers發(fā)音、用法及例句)
- 內容導航:
- 1、pointers
- 2、deque用法和與vector的區別?
1、pointers
pointers發(fā)音
英:[?p??nt?rz] 美:[?p??nt?z]
英: 美:
pointers中文意思翻譯
常用釋義:指針
n.[儀]指針;指標(pointer的復數);指極星
pointers常用詞組:
mouse pointer───n. [計]鼠標指針
laser pointer───激光教鞭,激光棒;雷射指示器
stack pointer───棧指針;棧指示器;堆棧指示字
pointers雙語(yǔ)使用場(chǎng)景
1、The Instruction Pointers view enables you to see specific instructions that are executed during sampling profiling.───檢視可以讓您查看取樣程式碼剖析期間所執行的特定指令。
2、And thus, the ability to understand pointers and recursion is directly correlated with the ability to be a great programmer.───因此,是否真正理解指針和遞歸,與是否是一個(gè)優(yōu)秀程序員直接相關(guān)。
3、I hope at least my daughter was able to offer you some useful pointers.───我希望至少我女兒能夠給你提供一些有用的線(xiàn)索。
4、In a few years though, Brooks could be nice bench option for some scoring and three-pointers at the point guard position.───在幾年內雖則,溪能是好的長(cháng)凳選擇為一些計分和三尖在得分后衛位置。
5、"Well, I think I can help you out. " I said. "Let me give you a few pointers. "───“我看來(lái)能幫幫你”我說(shuō),“讓我給你點(diǎn)建議”
6、Hi, I am new here and I couldn't come to the student orientation, and I'm wondering if you can give me a few quick pointers about the library?───嗨,我是新來(lái)的,沒(méi)能參加新生入學(xué)會(huì )。請問(wèn)你可以給我簡(jiǎn)單介紹一下圖書(shū)館嗎?
7、HIGH-powered laser pointers will be banned in NSW in a move that will also make it illegal to carry them in public without a good reason.───沒(méi)有正當理由的高能激光指示器在公共場(chǎng)合的攜帶,轉移在澳大利亞新南威爾士將被禁止。
8、Here are some pointers on how to go about the writing task.───關(guān)于這項寫(xiě)作任務(wù),以下有幾點(diǎn)建議。
9、Today, a lady walked up to me in the gym and asked me to give her some workout pointers.───今天,在健身房一個(gè)女士向我走來(lái),問(wèn)我能否給她一些指導。
pointers相似詞語(yǔ)短語(yǔ)
1、nointers───無(wú)入口
2、jointers───n.接洽人;接合物;刨接縫的長(cháng)刨
3、Pointers───n.[儀]指針;指標(pointer的復數);指極星
4、painters───n.畫(huà)家(painter的復數)
5、cointers───厘米
6、pointes───n.芭蕾舞鞋的足尖;芭蕾舞足尖站立的姿式(pointe的復數);n.(Pointe)(美、法、加)普安特(人名)
7、pointels───尖端
8、pointer───n.指針;指示器;教鞭;暗示
9、poinders───波因德斯
2、deque用法和與vector的區別?
deque與vector的主要不同之處在于:
1.兩端都能快速安插和刪除元素,這些操作可以在分期攤還的常數時(shí)間(amortizedconstanttime)內完成。
2.元素的存取和迭代器的動(dòng)作比vector稍慢。
3.迭代器需要在不同區塊間跳轉,所以它非一般指針。
4.因為deque使用不止一塊內存(而vector必須使用一塊連續內存),所以deque的max_size()可能更大。
5.不支持對容量和內存重新分配時(shí)機的控制。不過(guò)deque的內存重分配優(yōu)于vector,因為其內部結構顯示,deque不必在內存重分配時(shí)復制所有元素。
6.除了頭尾兩端,在任何地方安插或刪除元素,都將導致指向deque元素的所有pointers、references、iterators失效。
7.deque的內存區塊不再被使用時(shí),會(huì )自動(dòng)被釋放。deque的內存大小是可自動(dòng)縮減的。
8.deque與vector組織內存的方式不一樣。在底層,deque按“頁(yè)”(page)或“塊”(chunk)來(lái)分配存儲器,每頁(yè)包含固定數目的元素。而vector只分配一塊連續的內存。例如,一個(gè)10M字節的vector使用的是一整塊10M字節的內存,而deque可以使用一串更小的內存塊,比如10塊1M的內存。所以不能將deque的地址(如&deque[0])傳遞給傳統的CAPI,因為deque內部所使用的內存不一定會(huì )連續。deque的下述特性與vector差不多:1.在中部安插、刪除元素的速度較慢。2.迭代器屬于randomaccessiterator(隨機存取迭代器)。優(yōu)先使用vector,還是deque?c++標準建議:vector是那種應該在默認情況下使用的序列。如果大多數插入和刪除操作發(fā)生在序列的頭部或尾部時(shí),應該選用deque。使用deque還需注意:1.除了at(),其它成員函數均不會(huì )檢查索引或迭代器是否有效。2.任何插入或刪除動(dòng)作都會(huì )使所有指向deque元素的pointers、references、iteartors失效,唯一例外的是在頭部或尾部插入元素(此時(shí)pointers和references仍然有效,但iterators失效)。
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。