Jump to content
patrickberubedubreuil

C++ menu for job resume type program

Recommended Posts

patrickberubedubreuil

Finished somewhat project...i need to add more in menu sure....

but i need the program to loop case 1 and then case 2 by entering the wanted value with out it crashing....just so i dont haved too

restart the program as an employer that looks bad...

 

Of course i will present a paper resume, just in case.  :)

 

thanks for your time

 

Patrick Berube Dubreuil

Share this post


Link to post
Share on other sites
patrickberubedubreuil

forgot too add code sorry

 

// Example program for resume
#include <iostream>
using namespace std;

int main ()
{
  int user_value;
  cout <<" 1 - Myage\n 2 - Myname\n 3 - Mybirth_date\n 4 - Student_at\n 5 - Hobbies\n 6 - Future_for_me\n";
  cout << "Insert your number,to get to know me.make your choice:";
  cin >> user_value;
  cin.ignore ();
  
 
  switch (user_value)
  {
     
      case 1:
        cout << "Forty-Five";
        break;
      case 2 :
        cout << "Patrick";
        break;
      case 3 :
        cout << "november 11th 1984";
        break;
      case 4 :
        cout << "Student at elearnsecurity,in PTSv4";
        break;
      case 5 :
        cout << "web security.In particular web app pentesting , also secure programming and bug bounty";
        break;
      case 6 :
        cout << "Learning Secure Programming , WAPT and WAPTX , XDS ,with PWD and PND.Getting those certificates, this is my plans for my future\n"; 
        break;
      default:
        cout << "Wrong Output";
  }
  
  cin.ignore();
  
  return 0;
}
      

Share this post


Link to post
Share on other sites
dcardin14

In the attached screenshot, line number 9 and line number 31 are the only things I changed.  Basically I just put it all inside a while loop.

9  while(user_value !=0){

...

31 }

 pic-window-200819-2249-58.thumb.png.e45a12ed3e339d2b52e29746a68168d9.png

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×