Jump to content

How can I make a dynamic menu in C++?


Recommended Posts

#include <iostream>
using namespace std;
int main() {
  int lol = 0;
  cout<<"1. Menu Item" <<endl;
  cout<<"2. Menu Item 2" <<endl;
  cin>>lol;

  switch (lol) {
       case 1:
            //show some other menu?
  };


  return 0;
}

 

Didn't try to compile this, so take it as an example.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.