Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include "Settings.hpp"
- using namespace std;
- ofstream pewpew;
- string icon;
- Settings Set;
- void
- HasSpace (int x, int y)
- {
- y--;
- for (y--; y >= 0; y--)
- {
- for (int z = x; z >= 0; z--)
- { // TO make it into a pyrmid put: int z = x--;
- pewpew << icon << " ";
- }
- pewpew << "\n";
- }
- for (int zp = x; zp >= 0; zp--)
- pewpew << icon << " ";
- }
- void
- Doesnt (int x, int y)
- {
- y--;
- for (y--; y >= 0; y--)
- {
- for (int z = x; z >= 0; z--)
- { // TO make it into a pyrmid put: int z = x--;
- pewpew << icon;
- }
- pewpew << "\n";
- }
- for (int zo = x; zo >= 0; zo--)
- {
- pewpew << icon;
- }
- cout << "Done.";
- }
- int
- main ()
- {
- icon = Set.ICON;
- pewpew.open ("Note.txt");
- if (Set.SpaceIncluded == true)
- {
- HasSpace (Set.LengthOfLine, Set.HowManyLinesDown);
- }
- else
- {
- Doesnt (Set.LengthOfLine, Set.HowManyLinesDown);
- }
- }
- class Settings {
- public:
- int HowManyLinesDown = 10;
- int LengthOfLine = HowManyLinesDown*2;
- std::string ICON = "#";
- bool SpaceIncluded = false;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement