photoyid 26 Newbie Poster

Why don't you play with the numbers as a string and then convert them back to an int or double.

photoyid 26 Newbie Poster

You have a logic error in your code. Remember your logic tables ab = a'+b' meaning. Also you switched the terms

if (c != b && d != a){
          cout << "Incorrect Username/Password Combintation \n";
          }

should be

if (c != a || d != b){
          cout << "Incorrect Username/Password Combintation \n";
          }

Think about it like this. If you asked for both of them not to be equal to the proper values, then if the username is correct but the password is incorrect the program would continue, but if you say that when one is true (c!=a or d!=b) then the whole statement is true it will work.

Also you forgot an = sign:

if (c == b && d = a){
          cout << "What would you like to do";

should be

if (c == b && d == a){
          cout << "What would you like to do";
photoyid 26 Newbie Poster

Try typing in:

int main()

instead of main().

Also most people write that code a bit differently.

#include<iostream>
using namespace std;

int main(){
cout<<"Hello World"<<endl;
}

This gets rid of the need to use std before all of those calls.