crafting system!

This commit is contained in:
Perttu Ahola
2010-12-22 16:30:23 +02:00
parent 2e41a5e304
commit 3de176cc58
22 changed files with 703 additions and 143 deletions

View File

@@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include <string>
std::string trim(std::string str);
std::string trim(const std::string &str);
class Strfnd{
std::string tek;
@@ -74,8 +74,9 @@ class Strfnd{
}
};
inline std::string trim(std::string str)
inline std::string trim(const std::string &s)
{
std::string str = s;
while(
str.length()>0
&&