Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
assignment210ct/helper.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
18 lines (15 sloc)
515 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef _HELPER_H | |
#define _HELPER_H | |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
class Helper { | |
public: | |
static bool charIsInString(char character, std::string chars); | |
static std::string trimString(const std::string &input); | |
static std::vector<std::string> readFileIntoWords(const std::string &filename); | |
static bool firstAbc(const std::string &input1, const std::string &input2); | |
static void writeNodeToFile(const int &node, const std::string &filename); | |
}; | |
#endif //_HELPER_H |