1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include <iostream> std::string hast = "VSASAL"; bool func(std::string ok) { if (ok == hast) return true; else return false; } int main() { if (func("VSASAL")) std::cout << hast << std::endl; }