スポンサード リンク
Microsoft Visual C++にて以下のソースでコンパイルエラーが発生します:
コンパイルエラーメッセージ:
error C2839: オーバーロードされた 'operator ->' の戻り値の型 'char *' が無効です。
ソース(バグ有り):
//string クラス文字内をソートするサンプルプログラム
#include <algorithm>
#include <iostream>
#include <string>
int main()
{ |
ソース(修正済み):
//string クラス文字内をソートするサンプルプログラム
#include <algorithm>
#include <iostream>
#include <string>
int main()
{ |
スポンサード リンク