久久久久久久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 ()?環形?)
主站蜘蛛池模板: 久久久一区二区三区四区 | 久久久久久九九九九九九 | 亚洲九九| 红色av社区 | av网站免费在线观看 | 国产亚洲精品久久情网 | 懂色av一区二区三区在线播放 | 日本黄色的视频 | 综合第一页 | 日本三级线观看 视频 | 久久久女女女女999久久 | 亚洲精品成人网 | 偷拍自拍第一页 | chengrenzaixian | 亚洲天堂免费在线 | 久久综合99 | 国产成人亚洲精品 | 成人a在线 | 另类一区| 久久国产精品一区二区三区 | 美女视频一区 | 国产精品久久久久久久久久不蜜臀 | 亚洲欧美第一视频 | 亚洲网站在线观看 | 亚洲第一网站 | 一区二区三区视频免费看 | 国产在线精品一区二区三区 | 欧美一二三四成人免费视频 | 成人一区二区在线 | 精品免费国产一区二区三区四区介绍 | 青青草一区二区三区 | 国产一区2区 | 国产视频在线观看一区二区三区 | 欧美激情一区二区三区 | 亚洲色图图片 | 日中文字幕在线 | 久久99精品久久久久久国产越南 | 久久亚| 91精品一区 | 午夜精品久久久久久久久久久久久 | 欧美一区二区激情三区 |