Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GDAuto.h : Defines class GDAuto.
- //
- #pragma once
- #include <iostream>
- #include <fstream>
- #include <ctime>
- #include <Windows.h>
- #include <ShObjIdl.h>
- #include <vector>
- #include <sstream>
- using namespace std;
- #pragma region GEOMETRY DASH AUTO
- class GDAuto
- {
- public:
- ofstream GDFile;
- bool started;
- GDAuto(const int key_toggle, string _filename);
- ~GDAuto();
- protected:
- void WriteFromInput();
- void ReadFromFile();
- void GetCommand();
- wchar_t* GetFileName(const string &prompt);
- vector<string> &split(const string &s, char delim, vector<string> &elems)
- {
- stringstream ss(s);
- string item;
- while (getline(ss, item, delim)) {
- elems.push_back(item);
- }
- return elems;
- }
- vector<string> split(const string &s, char delim)
- {
- vector<string> elems;
- split(s, delim, elems);
- return elems;
- }
- template <typename T>
- string NumberToString(T Number)
- {
- ostringstream ss;
- ss << Number;
- return ss.str();
- }
- template <typename T>
- T StringToNumber (const string &Text)
- {
- istringstream ss(Text);
- T result;
- return ss >> result ? result : 0;
- }
- const int KEY_TOGGLE;
- string filename;
- const char jump;
- const char wait;
- const char sep;
- };
- #pragma endregion
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement