2014-01-24 91 views

回答

0

你的問題是,通過將引用操作操作,你要指定哪些指針specPtr點,而不是它實際上是什麼。

嘗試此代替

float **specPtr; 
specPtr = &spec; // Note the omission of the '*' 
+0

這是錯誤的。右側等於'spec',並且不能將'float *'分配給'float **'。 –

0
float **specPtr; 
specPtr = &spec; 

規範是一個指針,所以spePtr是指針點符合規格

相關問題