Skip to content

shubhamjrd4559-sudo/CodeAlpha_Login_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CodeAlpha Login & Registration System (C++)

πŸ“Œ Project Overview

This project is a console-based Login and Registration System developed in C++ as part of the CodeAlpha C++ Programming Internship (Task 2).
The application allows users to securely register and log in using file handling techniques.


🎯 Objectives

  • To understand file handling in C++
  • To implement a basic authentication system
  • To work with loops, conditions, and functions
  • To build a real-world console application

βš™οΈ Features

  • User Registration
  • User Login Authentication
  • Duplicate Username Validation
  • File Handling using ifstream and ofstream
  • Menu-driven Interface
  • Simple and Efficient Logic

πŸ› οΈ Technologies Used

  • Language: C++
  • Concepts: File Handling, Functions, Loops, Conditional Statements
  • Compiler: GCC / MinGW / Any C++ Compiler

πŸ“‚ Project Structure


CodeAlpha_Login_System/ │── main.cpp │── users.txt │── README.md


▢️ How to Run the Project

  1. Clone or download the repository
  2. Open the project in any C++ compiler
  3. Compile the code:
    g++ login_registration.cpp -o login
  4. Run the program:
    ./login


πŸ“ΈProgram Output


Sample Output

===== MENU =====
1. Register
2. Login
3. Exit
Enter your choice: 1

Enter username: shubham
Enter password: 1234
Registration successful!

===== MENU =====
Enter your choice: 2
Enter username: shubham
Enter password: 1234
Login successful!

πŸ§ͺ Sample Functionality

Register a new user with username and password

Login using stored credentials

Data is stored permanently using file handling


πŸ“š Learning Outcomes

Practical understanding of file streams in C++

Implementation of authentication logic

Experience with real-world programming tasks

Improved problem-solving skills

πŸ‘€ Author

Shubham Kumar

🏷️ Internship

This project is submitted as Task 2 for the CodeAlpha C++ Programming Internship.

About

C++ Login and Registration System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages