Hi, I am trying to open a bank website according to the name of bank entered. The bank name is stored as a string, s1. Later in the code, I try adding the if statement with s1, but it comes up with an error. Please help.
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
string s1,s2,s3;
char c1,c2,c3;
bool b1,b2;
ofstream MyExcelFile;
ofstream MyFile;
MyExcelFile.open ("Numbers.csv", ios::out | ios::ate | ios::app) ;
cout << "Welcome To C++ Account Manager";
cout << "" << endl << "";
cout << "" << endl << "";
cout << "Please Enter Bank Name: ";
cin >> s1;
MyExcelFile << s1 << endl;
cout << "Bank Is: " << s1;
cout << "" << endl << "";
cout << "" << endl << "";
cout << "Please Enter Account Number: ";
cin >> s2;
MyExcelFile << s2 << endl;
cout << "Account Number Is: " << s2;
cout << "" << endl << "";
cout << "" << endl << "";
cout << "Please Enter Account Password: ";
cin >> s3;
MyExcelFile << s3 << endl;
MyExcelFile.close();
cout << "" << endl << "";
cout << "" << endl << "";
cout << "Account Details Saved";
cout << "" << endl << "";
cout << "" << endl << "";
cout << "" << endl << "";
char response;
cout << "Do you want to Check Account Balance: ";
cin >> response;
cout << "" << endl << "";
if (response == 'y') { cout << "Account Balance Is: 0.00";}
cout << "" << endl << "";
cout << "" << endl << "";
cout << "Do you want to transfer money: ";
cin >> response;
cout << "" << endl << "";
cout << "" << endl << "";
if (response =='y' && s1 == 'anz'){ShellExecute(NULL, "open", "
http://www.anz.com.au",NULL, NULL, SW_SHOWNORMAL);}
cout << "" << endl << "";
cout << "" << endl << "";
cout << " Copyright 2012 C++ Accounting LTD";
cout << "" << endl << "";
cout << "" << endl << "";
}