環境はVisualStudio2015.OpenFrameWorksです
C++
1struct _param { int from; 2 int to; 3 ofFloatColor tugicol; 4 float deley; }; 5vector<_param> hexs; 6
C++
1 2_param hoge = {1,2,ofFloatColor(1,1,1),1}; 3 4vector<_hexparam>::iterator scan = find(hexs.begin(), hexs.end(),hoge); 5if (scan == hexs.end()){hexs.push_back(hoge);}//無い場合
すると
エラー C2678 二項演算子 '==': 型 'Sean::_param' の左オペランドを扱う演算子が見つかりません (または変換できません) (新しい動作; ヘルプを参照)。
とでます。。。
解決法がわからずにいます。。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/08/16 11:57
2016/08/16 18:38
2016/08/16 20:34
2016/08/17 19:11