Skip to content
Permalink
9719bd7706
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (14 sloc) 423 Bytes
#include "passwords.h"
#include <iostream>
int main()
{
std::string userInput;
std::cout << "Enter a password to test if it is a good one" << std::endl;
std::cout << " Obviously you shouldn't use a real one: ";
std::cin >> userInput;
if( good_password( userInput ) )
std::cout << "Good password" << std::endl;
else
std::cout << "Bad password" << std::endl;
return 0;
}