久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

為什么使用 QVector(Qt) 而不是 std::vector

Why use QVector(Qt) instead of std::vector(為什么使用 QVector(Qt) 而不是 std::vector)
本文介紹了為什么使用 QVector(Qt) 而不是 std::vector的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我對 C++ 和 Qt 很陌生,但我很擅長 C#/Java.

I'm very new to C++ and Qt, but I'm very good at C#/Java.

關鍵是我喜歡跨平臺,但我對 Qt 感到困惑.std::vector 不是已經跨平臺了嗎,Qt 不是提供了一個非跨平臺的東西嗎?

The point is I like cross-platform, but I'm confuse with Qt. Isn't std::vector already cross-platform, doesn't Qt provide an equivalent to a non-crossplatform thing?

還有 FileQFile 有什么不同?

Also how are File and QFile different?

一個鏈接會很好,謝謝:)

A link would be nice, thanks :)

推薦答案

這篇文章看起來不錯.它比較了 Qt 模板庫和標準模板庫:

This article loooks good. It compares Qt Template Library with Standard Template Library:

  • QTL vs STL

希望,您會發現文章中列出的所有差異很有趣.

Hope, you'll find it interesting seeing all the differences listed there in the article.

這里是我覺得有趣的地方:

Here is what I find interesting:

我的觀點是最大的QTL 的優點在于它具有相同的實現(包括二進制兼容性)在所有操作系統上Qt支持.一些 STL實現可能低于標準當談到性能或他們可能缺少功能.一些平臺甚至沒有 STL!在另一方面,STL 更多可定制,可在其完整的頭文件......就像我說的,沒有明顯的贏家.

My opinion is that the biggest advantage of the QTL is that it has the same implementation (including binary compatibility) on all OSes supported by Qt. Some STL implementations might be below par when it comes to performance or they might be missing functionality. Some platforms don’t even have an STL! On the other hand, the STL is more customizable and is available in its entirety in header files… Like I said, there is no clear winner.

就像他說的,沒有明確的贏家.但是仍然閱讀這篇文章會使很多事情變得清晰.了解其中的區別比不了解另一個要好.

Like he said, no clear winner. But still reading the article makes lots of things clear. Its better to know the difference than going for one, without knowing the other.

這篇關于為什么使用 QVector(Qt) 而不是 std::vector的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How can I read and manipulate CSV file data in C++?(如何在 C++ 中讀取和操作 CSV 文件數據?)
In C++ why can#39;t I write a for() loop like this: for( int i = 1, double i2 = 0; (在 C++ 中,為什么我不能像這樣編寫 for() 循環: for( int i = 1, double i2 = 0;)
How does OpenMP handle nested loops?(OpenMP 如何處理嵌套循環?)
Reusing thread in loop c++(在循環 C++ 中重用線程)
Precise thread sleep needed. Max 1ms error(需要精確的線程睡眠.最大 1ms 誤差)
Is there ever a need for a quot;do {...} while ( )quot; loop?(是否需要“do {...} while ()?環形?)
主站蜘蛛池模板: 久久久久国产精品一区二区 | 国内精品久久久久 | 红桃成人在线 | 日韩国产精品一区二区三区 | 欧美videosex性极品hd | 成人av片在线观看 | 成人免费一区二区三区视频网站 | 亚洲人va欧美va人人爽 | 久久性av| 成人欧美一区二区三区在线播放 | 免费人成激情视频在线观看冫 | 日韩精品免费在线观看 | www.99热| 91久久精品一区 | 欧美日韩亚洲一区 | 99精品免费视频 | 中文日韩在线视频 | 亚洲一区二区久久 | 国产日韩欧美一区二区 | 伊人春色在线 | 中文字幕亚洲欧美日韩在线不卡 | 国产在线一区二区三区 | 久久国产精品视频 | 91免费小视频 | 在线国产视频观看 | 欧美一区在线视频 | 色婷婷久久久亚洲一区二区三区 | 成人在线观看免费 | 一区日韩 | 国产99久久 | 自拍偷拍精品 | 一区二区三区视频播放 | 99精品九九 | 日本中文字幕在线观看 | 蜜桃视频一区二区三区 | 中文字幕精品一区久久久久 | 国产一区二区在线看 | 国产精品区一区二区三区 | 欧美一级在线观看 | 久久中文字幕一区 | 男人的天堂中文字幕 |