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,959
  • 1
  • 28
  • 42
UnS1t
  • 19
  • 4

0 Answers0