1
#include <iostream>
#include <string>
using namespace std;
int main()
{
    bool pass;
    string password();
    cout << "enter the password \n";
    cin >> password;
    system("pause");
    return 0;
}

This seems not to work, but why can't I define a string variable true cin? And what's the correct way to do it?

Chris
  • 2,955
  • 1
  • 30
  • 43
UnS1t
  • 19
  • 4

0 Answers0