小编Tom*_*rsi的帖子

STL std :: remove_if编译失败

我无法得到std :: remove_if进行编译,因为你可以看到我选择了一种工作正常的替代手动曲柄方法,编译器错误位于代码之后的列表底部.

任何帮助将非常感激.

谢谢,汤姆

#include <iostream>
#include <fstream>
#include <set>
#include <algorithm>
#include <string>

//
// Find the largest compound word composed
// of sub-words from a list.
//
// - read list from file. 
//
// Psuedo Code:
//
// 1. Read Next Word from File.
// 2. Search in list for word formed from word.
// 3. if Found in List
// 4.   if Found Compound is longer then Current Compound
// 5.     Replace
// 6.     Remove …
Run Code Online (Sandbox Code Playgroud)

c++ stl c++11

5
推荐指数
1
解决办法
330
查看次数

标签 统计

c++ ×1

c++11 ×1

stl ×1