原文:error C2297: '*' : illegal, right operand has type 'int *'

include lt iostream gt using namespace std int main int a ,b ,c int d b d amp c cout lt lt d lt lt a lt lt endl return C primer上的練習,在學校機房用vc . 寫的,總是出現這個錯誤 現在才發現,其實是指針定義時沒有在最后加上分號。 ...

2019-03-11 20:22 0 797 推薦指數:

查看詳情

base operand of '->' has non-pointer type 'const Comple

base operand of '->' has non-pointer type 'const Comple ->操作符前面的操作數類型不是指針類型 錯誤原因 函數(&對象) { 對象名.成員     //正確方式  對象名->成員     //編譯 ...

Fri Mar 01 20:29:00 CST 2019 0 2890
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM