#include #include using namespace std;
string mostimportantorders = "do not launch the missles!";
cout << s + "4" << endl;
}int main()
輸出結果。。卻是。。
the total number of missiles is:
not launch the missles!
目前確實是沒搞明白為什麼會輸出這樣。。感覺和string構造物件機制有關,並且也和cout輸出物件機制有關。
將上面的程式該為下面的程式:
#include #include using namespace std;
string mostimportantorders = "do not launch the missles!";
cout << s + '4' << endl;
}int main()
輸出如下:
the total number of missiles is:
96其中44+'4' = 44 + 4 + 48 = 96;
乙個簡單的c c 程式
1.int main 備註 1 ansi c c 規定,main方法的返回值型別為int 2 return 0代表main成功執行,return非零值表示main執行失敗。如果是return 0,那麼可以省略,os呼叫main時自動會在最後一句後面插入return 0.2.main函式的定義 int...
乙個奇怪的listview
一般情況下listview就是乙個頭有控制代碼 用spy看看任務管理器 就是 程序 這個有個控制代碼 就知道了 再就是整個listview乙個控制代碼 一共2個控制代碼 分別是 主控制代碼 syslistview32 和頭控制代碼 sysheader32 這個奇怪的listview被分成了3個控制代...
乙個奇怪的Exception
環境大概是,jdk8 tomcat8,為了進行強加密,使用了bouncycastle的庫。但是在啟動的時候總報告乙個錯誤 must be passed recipient s private ec key for decryption 錯誤出在乙個instance of的判斷 if var2 ins...