#include<iostream>
#include<string>

using namespace std;

int main()
{
 cout << "새 암호를 입력하세요>> ";
 string first;
 getline(cin, first);
 cout << "새 암호를 다시 한 번 입력하세요>> ";
 string second;
 getline(cin, second);
 if (first == second)
  cout << "같습니다"<<endl;
 else
  cout << "같지 않습니다"<<endl;

}


Cpp 는 재밋엉!