原创 關於重載提取運算符'

今天編寫了下列代碼(僅僅顯示關鍵代碼片段),在VS2015上運行正常,但是在VC6.0下出現錯誤提示。 #include<iostream> using namespace std; class vct { private: doubl

原创 函數模板和關鍵字decltype用法的註記

【以下代碼均在VS2015環境下調試】 ============================================================================ 1. 對於一個函數模板,其返回兩個變量之和

原创 The resolution of ERROR C2662: cannot convert 'this' pointer from "const Class-Type" to "Class&"

Consider the following code segment(something that won't affect the worldview and comprehension can be already omitted.

原创 C中printf與scanf函數讀取與儲存參數實現辦法

我是C語言的初學者,學到printf和scanf時有一些疑惑,於是自己研究總結了一些東西,可能會有錯誤,所以希望各位大牛指正哦~\(≧▽≦)/~啦啦啦 ===========================================

原创 關於重載提取運算符'<<'在VC6.0環境下產生二義性(ambiguous)的解決辦法

今天編寫了下列代碼(僅僅顯示關鍵代碼片段),在VS2015上運行正常,但是在VC6.0下出現錯誤提示。 #include<iostream> using namespace std; class vct { private: doubl