B
B
barbado2020-04-22 15:20:54
DOS
barbado, 2020-04-22 15:20:54

What is the difference between cmd and dos?

A big gap in knowledge... Help fill. I'll explain what exactly I don't understand... So I'm writing a console application in C, I run it through the command line - is this a dos program? DOS in Windows today is built-in in the form of an emulator or what? Why do old dos applications run?
And what is the difference between a console application and, for example, my favorite game DX-Ball, which I have been playing for 20 years.
Here is another example, I wrote about 15 years ago a sea battle in C ++, launched it, the window did not expand to full screen, the rendering lag, etc. And how is smooth DX Ball written? Today, something like this DX, how can you write from scratch?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem @Jump, 2020-04-22
@barbado

cmd is a program that is located in the Windows folder (file cmd.exe) - a console interpreter.
You give this interpreter a script - it executes it. Only and everything.
Instead, you can use Python, Pearl, Powershell.
dos - Disk Operating System. This is a common operating system for managing a computer and running programs. Doesn't have a graphical interface. Developed by Microsoft.
Now it is used extremely rarely, usually Windows, Linux and other modern operating systems are used instead.

DOS in Windows today is built-in in the form of an emulator or what?
No, at the moment it is not available in Windows.
Why do old dos applications run?
Because they need a DOS operating system. Put it instead of windows and run.
And what is the difference between a console application and, for example, my favorite game
The console application displays messages exclusively in text form, to the console and takes commands from there.
The game usually has a graphical interface and does not work with the console.
Although there are exclusively console games. But they are not very popular now.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question