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?
3150_project/ECRow.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (34 sloc)
748 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
// | |
// ECRow.h | |
// | |
// created by Daniel Backal | |
// 16/04/2020 | |
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
#ifndef ECROW_H | |
#define ECROW_H | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
class ECRow | |
{ | |
public: | |
ECRow(); | |
~ECRow(); | |
void SetFirst(bool first); | |
bool IsFirst(); | |
int GetSize(); | |
int GetChar(int x); | |
std::string ShowSelf(); | |
int FirstWord(); | |
void CalculateFirstWord(); | |
void AddCharAt(int pos, int key); | |
int RemoveCharAt(int pos); | |
std::string AddEnterAt(int pos); | |
std::string GetLastWord(); | |
std::string GetFirstWord(); | |
private: | |
std::string _row; | |
bool _first; | |
int _firstWord; | |
}; | |
#endif |