我tryinging利用許多字符串和整數做一個字符串,但我收到消息:「error C2110:'+':can not add two pointers」
這是我的代碼:
transactions[0] = "New Account Made, Customer ID: " + ID + ", Customer Name : " + firstName + " " + secondName + endl + ", Account ID: " + setID + ", Account Name: " + setName;
(注意ID和SETID是一個int)
嘗試使用'\ n''而不是'endl'。 – Raptor