Is C still used to make vidya, or has it been entirely replaced by C++?
Is C still used to make vidya, or has it been entirely replaced by C++?
Other urls found in this thread:
all high level languages are the same
C
no
cute and funny?
im betting the large majority will be C++ for either ue4 or whatever internal engine a company has, C# because of unity
small small productions might use C for something like SDL2 but of course you can use C++ with it too
U
N
T
I remember a time when C was considered high level
I think hirez uses c? I remember seeing it on a job posting
Computers and game systems are fast enough now that devs choose to use big bloaty frameworks and high level languages like C#, because it holds your hand and has less issues with memory management
Man, I wish. C is such a beautiful language, while C++ is a complete abomination.
person who has only ever done shit in python here, what actually is the difference between C and C++?
well meme'd, now back to /dpt/
I don't know what that means.
More then likely a combination of both if you get to the nitty gritty in engine development or straight C++ and Blueprints if you're working in Unreal Engine. At the end of the day it doesn't matter what language you choose because if you aren't flexible you aren't going to make it anyway. Just pick a language and make sure you learn concepts instead of just language syntax, then it doesn't matter what language whatever the hell your doing is in you can just pick it up.
It's time to let go.
I'M DYNAMITE
Oh sweet innocent child.
you should learn C anyway
how is it not?
To an extent, depending on your definition. Its still often the driving force behind the building blocks of games. A lot of engines and such use it because it has such a low footprint.
But all the "real" game design is done in high level scripting languages these days. Someone gives you an engine, and you just plug things into it.
Technically, you could write 99% of your C code using nothing but assembly.
Plus nowdays pretty much everything requires at least C level abstraction to work. You're not going to design anything worth while in assembly beyond just basic controllers.
eh, roller coaster tycoon is a standout but you're right
RCT still used C to interface with Direct X
C++ is C with libraries
Learn a real language like cobol
C++ is C with lots of bloat.
by itself its not bad, but it tries to force you into OOP which is annoying.
You can perfectly program C++ identical to C, but for anyone who says programming in C++, the mean going full java, but with C.
Just learn ABAP so when you give up on your little project you can still make loads of money with this language.
C N T
WATCH ME EXPLODE
>want to print in C
>printf("words")
>want to print in c++
>orig >> std >> namespace >> out >> print >> "words"
C++ is just C with object oriented.
You can use printf in C++ you dunce
What's the difference between C++ and C# when compared to C?
Doom was coded in C and because of the way it was initially designed, the game is one of the easiest games to port to any machine because the engine itself was designed to interact and depend on the OS as little as possible and essentially be self-contained. If your good enough I guess you could make a simple 2D engine that's highly portable to any platform but again you'd have to know what your doing.
There's actually a book on how the Doom engine functions:
fabiensanglard.net
C++ is a superset of C
C# is Microsoft's answer to Java
You'll see far more C++ than C. But depending on the platform and team, you may see certain features outright disabled (or against the team's guidelines) for performance or other reasons.
C++ has a more robust type system, proper generics that aren't a horrible hack that was left underspecified for 12 years, name spaces, support for utf-8/16/32 string literals, closures and anonymous functions, the ability to run some code at compile time (handy for generating constants, checking function arguments for errors, general meta programming, etc) without resorting to fragile text based macros, smart pointers that avoid a lot of common errors found in C, range based for loops (like the for..in loops you're used to in python), and more. Some people consider these features bloat, and trying to bolt them on to the C language has had questionable results (a new function syntax had to be introduced because the C style function declarations were too limiting), but a lot of these features have become essential in larger projects. Even if you only use a fraction of C++'s features, it's generally a better language to work with than plain C.
Not only can you use printf exactly like you would in C, there's also libfmt's fmt::printf which is both safer and faster than C's printf.
>i-its safer and faster!
lol
LOL
Whats unsafe about a printf ?
>love using C++ and SDL
>end up just using engines for almost everything instead because engine features for things like pathfinding save too much time
I hate it
I still use C++ for puzzlers and stuff but I want to actually use it for something bigger someday
>normalfags and underages have taken the cunny "meme" so far they now all circlejerk about the letter C
What's a good book or guide or site to learn C++?
printf doesn't check to see if you used the correct number of argument or if the arguments are of the correct type. You can write printf("%d") and it will both compile and run. Modern compilers will generate warnings for this kind of code by default (which will probably be lost in a sea of other warnings in bigger projects), but cout and fmt::printf will treat it as an error and not let you compile it.