Skip to content
Permalink
master
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
#include <iostream>
#include <vector>
#include <string>
using namespace std;
//The arrow animation
string Draw(vector<string> values, int arrow, bool entered)
{
//Clears screen when called
system("cls");
string output;
//Moves arrow up or down
for (int i = 0; i < values.size(); i++)
{
if (arrow == i)
cout << "> ";
else
cout << " ";
cout << values[i] << endl;
}
//Returns selected value
if (entered)
output = values[arrow];
return output;
}