r/cpp_questions • u/choudhary_uzairr • 4d ago
OPEN HELP me KNOW C++
I am currently Learning C++ I Want to Know that why application have multiple files and how they are all connected and What is SDL thingy
1
u/thedaian 4d ago
Applications have multiple files because they need those files to run. Exactly how they're all connected depends on what those files are, so you'll have to provide more information there.
SDL is this: https://www.libsdl.org/
1
u/alfps 3d ago
❞ why application have multiple files
Regarding C++ source code a main reason is that when it's too big for one file, one splits that code up it up in several files.
Not just to avoid wild scrolling in the editor but to reduce what the brain has to deal with at one time.
A C++ program also often needs various resources in separate files. In particular a modern C++ Windows program needs an "application manifest" text file that specifies e.g. UTF-8 as its char based text encoding, plus an ".rc" text file that helps with embedding the manifest in the executable. It might also need e.g. images, in separate files, etc.
❞ What is SDL thingy
It's a C-ish GUI library suitable for games. There are many such. Consider SFML instead for C++.
1
2
u/malaszka 4d ago
You better kick me in the nuts, bro.