C2679 error

  • Thread starter Thread starter kasperro3
  • Start date Start date
K

kasperro3

Guest
Hi, i have a problem, i have writen a code but visual don't wan't to compile it. I think code is okay because in codeblocks it is working.


(cin >> NIK, cin >> PIN)

thank you.






#include <string>
#include "pch.h"
#include <iostream>


using namespace std;

string NIK, PIN;

int main()
{
cout << "Witamy w naszym Banku!" << endl;
cout << "Podaj NIK: ";
cin >> NIK;

if (NIK == "335")
{
cout << "Podaj PIN";
cin >> PIN;

if (PIN == "1025")
{
cout << "Poprawnie zalogowano";
cout << "Saldo: 3358.45 PLN";
}
else
{
cout << "Bledny PIN";
}
}
else
{
cout << "Bledny NIK";
}
}

Continue reading...
 
Back
Top