Skip to content
Permalink
12d06b305d
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
 
 
Cannot retrieve contributors at this time
32 lines (26 sloc) 635 Bytes
#include <iostream>
#include<ncurses.h>
#include <locale.h>
#include "../include/GameWindow.h"
#include <vector>
#include <string>
using namespace std;
int main()
{
initscr();
GameWindow test1(10,0,0,0);
test1.Print("Hello there");
getch();
test1.Clear();
test1.Print("Potato", 5, 10);
getch();
test1.Clear();
vector<string> choices = {"Choice 1", "Choice 2", "Choice 3"};
int choice = test1.Menu(choices);
test1.Clear();
string to_print = "You chose option" + (choice + 1);
test1.Print(to_print.c_str());
getch();
endwin();
return 0;
}