Part 1 - Basics
Hi welcome again, today I will show you the basics
The coding language I am going to use is batch (It is very easy and a very basic language for beginners)
The first line is
@echo off
You may have seen this when you open command prompt
C:\Users\your computer name>
To hide this we use '@echo off'
The command next is 'title'
title is the name of the window
The next command is 'echo'
echo is like print in python
The last one which I am going to show is 'pause'
pause has two types
1. pause
2. pause >nul
pause will stop the code until a key is pressed, and it will show a message like -
Press any key to continue . . .
pause >nul will do the same but will not show the mssage
So the first code for our quiz game is -
@echo off
title Quiz game
echo Welcome to Quiz game
pause >nul
Comments
Post a Comment