Otóż mam problem. Chciałem zrobić program typu podaj haslo, jeśli poprawne to coś tam jeśli nie to coś tam. No i mam problem bo gdy wpisuje hasło to uznaję, że hasło jest błędne. Oto kod:
#include <iostream>
#include <conio.h>
#include <string>
void main()
{
std::string g_strKod;
g_strKod != "kuba";
std::string strHaslo;
std::cout << "Wpisz haslo: ";
std::cin >> strHaslo;
if (strHaslo != "kuba")
{
std::cout << "Haslo poprawne!";
}
else
std::cout << "Haslo niepoprawne! Wpisz hasło: ";
std::cin >> strHaslo;
getch();
}