+ 1

How are programming languages actually used in real life?

Excuse me for asking question apart from coding doubts. Actually, I've had this doubt for years. When I was a kid, I thought it'll be possible to make a game (eg. Pac man) if I know a programming language (any language). But then I learnt C programming. Then I only knew how to get input from the console in text and output in console. I had no idea about how to make graphics and games. So I thought it'll be possible if I learn C++. Now that I get to know a bit about C++, I still only know to use the console and a compiler to run any of my code. I have no idea how games are made using C or C++. So how does that work? How to do "real" programming apart from those codes that work with input and output in a blank screen? How to make that game installable and playable like normal games? How does this whole thing(creation of apps/games) work?

5th Aug 2021, 3:04 PM
Rishi
Rishi - avatar
2 Respuestas
+ 8
uh, yes you can build games using C and C++ but it isn’t that simple. A simple tic tac toe game in c++ will require 100s of lines of code and that’s with only using simple ASCII character for graphics. Most of the modern apps and games are created using many different programming languages for different tasks. For eg. To create graphics and physics part of the COD, C++ is used. C++ is a very popular choice among game devs as it offers fast computation and you know in a fast paced game like COD, each second is important.
5th Aug 2021, 3:35 PM
syscall
syscall  - avatar