How to code a dialog box

I want to make a programs which creates a dialog box and shows it to the user. The dialog box should not be pre-loaded, here's an example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
cout << "Button a"
cin >> a
cout << "Button b"
cin >> b
cout << "Button c"
cin >> c

/*
show dialog/messagebox/whatever with:
                   title: "My Title"
                   content: "Select a button to continue:"
                   if(a != "") add button holding the string from variable a
                   if(b != "") add button holding the string from variable b
                   if(c != "") add button holding the string from variable c

*/


Each button should be under the other.
How can I do this in a C++ project? Thanks in advance.
Last edited on
Are you talking about GUI (Graphical User Interface)? Then you should look into some of the available libraries. The first that comes to my mind is Qt, but I'm sure there are many others.
Topic archived. No new replies allowed.