Skip to content
Permalink
4573dd84b7
Switch branches/tags

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?
Go to file
Latest commit 4573dd8 Apr 21, 2020 History
1 contributor

Users who have contributed to this file

41 lines (34 sloc) 748 Bytes
//
// 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