First Program
Hello all just wrote a basic program that's main purpose is too take in information for said account and display it back to you.
Code:
#include <iostream>
#include <windows.h>
#include <stdio.h>
#include <string>
class Account
{
public:
std::string name, pin;
void Register()
{
std::cout << "Please enter you're name: " << std::endl << std::endl;
std::getline(std::cin, name);
std::cout << "Please enter a pin: " << std::endl;
std::getline(std::cin, pin);
system("cls");
std::cout << "Thank you for registering " << name << std::endl;
Sleep(2000);
std::cout << "Please wait a moment while we take you to you're account " << std::endl;
Sleep(7000);
Login();
}
void Login()
{
std::cout << "Account information: " << std::endl << std::endl;
std::cout << "Name : " << name << std::endl;
std::cout << "Pin : " << pin << std::endl;
Sleep(3000);
std::cout << "Thank you for testing this system" << std::endl;
std::cout << "goodbye " << std::endl;
Sleep(1000);
}
};
int main()
{
std::cout << "Hello welcome!" << std::endl << std::endl;
Account accountobject;
accountobject.Register();
return 0;
}

