Hey im having a bit of trouble here im pretty sure you guys can see what im trying to do and this is the firt bit im stuck on.
So far i have covered:
Lesson 0: Installing Visual Studio Express 2012
Lesson 1: Creating a Console Application (2013)
Lesson 1: Creating a Console Application (2012)
Lesson 1: Creating a Console Application (2010)
Lesson 1: Creating a Console Application (2008)
Lesson 1: Creating a Console Application (2003)
Lesson 2: Basic Input and Output
Lesson 3: Variables and Constants
Lesson 4: Basic Data Types
Lesson 5: Logical Operators
Lesson 6: Relational Operators
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include <iostream>
using namespace std;
int main() {
int pass;
cout << "Hello sean, what is your password?" << endl;
cin >> pass;
if (pass == 123);
cout << "Welcome sean" << endl;
else if;
cout << "Access denied" << endl;
return 0;
}
|