Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

Can somebody help me with a wait sentence for my program

0 votes
asked Jun 5, 2018 by Elijah B 2024 (160 points)
retagged Jun 6, 2018 by Elijah B 2024

my program needs a wait function i tried sleep it did not work. were the bold mark is were i need it. the password is Herer5.

///void/// fire 1.3

#include <iostream>

#include <string>

using namespace std;

int

main ()

{

int mm = 3;

pass:

  string pw;

  string hq = "H";

  string mq = "e";

  int g = 7;

  int a = 2.5;

  int b = 2.5;

  b = a + a;

  a = b * 2 / 2;

  int c = b + a / 2;

  string omega = "5";

  int d = 7 * 7 / 7 - 1 + 2;

  g = 7 * 2 / 2;

  if (g == 14)

    {

    }

  else

    {

      string oq = mq;

      string an = hq + oq + "r" + oq + "r" + omega;

      cout << "please type password" << endl;

      cin >> pw;

      if (pw == an)

{

  cout << "welcome" << endl;

  return 0;

}

      else

{

  cout << "sorry Wrong Password" << endl;

  cout << "=====================" << endl;

  mm = mm - 1;

  if(mm<1){

      cout<<"wrong password lock mode"<<endl;

put wait here

  goto pass;

      

  }

  else{

  goto pass;

  }

      

  }

    }

}

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...