Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <iostream>
- //Configuration Properties >> C / C++ >> Preporocessor >> Preprocessor Definitions >> _CRT_SECURE_NO_WARNINGS
- int main()
- {
- char buff[15];
- std::cout << "Enter the password: ";
- std::cin >> buff;
- if (strcmp(buff, "password12"))
- {
- std::cout << "Incorrect password";
- }
- else
- {
- std::cout << "Correct password";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement