Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8799319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:17:35+00:00 2026-06-14T00:17:35+00:00

I’m kinda going above and beyond here. I’ve been tasked with creating a pseudo

  • 0

I’m kinda going above and beyond here. I’ve been tasked with creating a pseudo Minesweeper game for my C++ class. All the root coding is done, and all I want to do now is create a cool menu for it. At the moment all I have is this:

 #include <iostream>
 #include <cstdlib>

 using namespace std;

 bool menu ()
 {
 int inpt;

 bool exitVar;

 system("cls");

 cout << "               _       _   _   _       _   _ _ _  " << endl
      << "              |_|_   _|_| |_| |_|_    |_| |_|_|_| " << endl
      << "              |_|_|_|_|_| |_| |_|_|_  |_| |_|_    " << endl
      << "              |_| |_| |_| |_| |_| |_|_|_| |_|_|   " << endl
      << "              |_|     |_| |_| |_|   |_|_| |_|_ _  " << endl
      << "              |_|     |_| |_| |_|     |_| |_|_|_| " << endl
      << "               _ _   _       _   _ _ _   _ _ _   _ _     _ _ _   _ _      " << endl
      << "             _|_|_| |_|     |_| |_|_|_| |_|_|_| |_|_|_  |_|_|_| |_|_|_    " << endl
      << "            |_|_    |_|  _  |_| |_|_    |_|_    |_|_|_| |_|_    |_|_|_|   " << endl
      << "              |_|_  |_|_|_|_|_| |_|_|   |_|_|   |_|_|   |_|_|   |_|_|_    " << endl
      << "             _ _|_| |_|_| |_|_| |_|_ _  |_|_ _  |_|     |_|_ _  |_| |_|_  " << endl
      << "            |_|_|   |_|     |_| |_|_|_| |_|_|_| |_|     |_|_|_| |_|   |_| " << endl;

 cout << "\n            Welcome to Psuedo Mine Sweeper!!\n\n\n\n";

 cout << "Please choose from one of the following options:\n";
 cout << "1 - Play Psuedo Mine Sweeper!\n";
 cout << "2 - Exit Program :(\n\n";
 cout << "(1 or 2):";
 cin >> inpt;

 while (inpt < 1 || inpt > 2 || cin.fail())
 {
     cin.clear();
     cin.ignore();

     cout << "Please enter a valid menu choice : ";
     cin >> inpt;
 }   


 if (inpt = 1)
     exitVar = true;
 else
     exitVar = false;
 return exitVar;
 }

Pretty simple. What I want to do is create a screen where the user can use the UP and DOWN keyboard keys to select either START or EXIT, and press ENTER to confirm their selection. I think that this would be done with an event in Java or something like that. But in C++ I have no idea how to do it. All I need is just some help getting started. My intro C++ book doesn’t cover anything like this.

Again, I’m looking to create a simple splash screen similar to what you’d find in like an old Nintendo game or something. I’ll be doing some playing around myself, but I thought this would be a good place to ask to get going in the right direction.

Thanks for the help in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:17:36+00:00Added an answer on June 14, 2026 at 12:17 am

    The way you accomplish this is platform dependent. If you’re just using the console you’ll probably want to use a library of some sort to help style the text (such as inverting the characters and background for a selected menu item). I’m not intimately familiar with any of these, but try searching for the curses library as an example of where to start.

    This isn’t as easy as it sounds. Depending on how the library works, you’ll need to redraw the splash screen whenever a user sends input, store which menu item index is currently selected, and selectively recolor that menu item depending on if it’s selected or not.

    Getting input is also going to depend on the platform, and getting arrow key input in particular is tricky for the console. Using numbers is much easier, since you can just read a character in and use that as the menu index (i.e. if the user hits the 1 key, choose the first menu index).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
Let's say I'm outputting a post title and in our database, it's Hello Y&#8217;all
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I am doing a simple coin flipping experiment for class that involves flipping a
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
That's pretty much it. I'm using Nokogiri to scrape a web page what has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.