Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Simple Browser History Simulator in C++

Hey everyone! This is a simple C++ console program I made that simulates how a browser handles history and the back button.

The cool part? It doesn't just print things on the screen, it actually opens real websites on your Windows desktop using system commands!

How it works:

  • It keeps track of websites using a simple array (stores up to 100 pages).
  • Even if you press the back button and open a new page, it keeps your full continuous history log just like Google Chrome does.
  • It also checks your URL input, so if you forget to type https://, it automatically fixes it so the browser doesn't throw an error.

How to run it:

  1. Copy the code from main.cpp into VS Code or Dev-C++.
  2. Compile and run it (make sure you are on Windows).
  3. Choose options from the menu:
    • Press 1 to open a new site (e.g., type google.com).
    • Press 2 to go back.
    • Press 3 to print your full history.
    • Press 4 to exit.

Feel free to check out the code and let me know if you have any suggestions! THANK TOU!

About

A simple C++ program simulating a browser's back button using Stack logic. It actually opens real websites on your desktop!

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages