Rash
is there any difference if I run VC in Virtual Machine or Normal PC?
Rash
in terms of compiling
klimi
Rash Sul: https://github.com/outflanknl/Recon-AD/tree/master/Src/Recon-AD-Domain
Anonymous
Of u don't know how to programme then you should take a online course; yiu don't need to be in class; if problem is in logic building take a beginner class in programming in c with some high school maths(if u don't know)
Уоррен
Ребята, подскажите , где можно найти коды игр с разбором , написанных на bash/ C/ C++ , простых игр , но с сохранением , рандомом
Anonymous
Do you know how to ask array from user? C language
Azzam
What is the best way to start with STL in cpp... Any useful resources or website or channel or anything else.
klimi
thanks
Mat
🤦‍♂ Damn Is
Fede_333
Is netbeans good for c?
klimi
Is netbeans good for c?
its not best but... i well i guess its better than notepad
Anonymous
I use vscode for c, rust, js, ts, etc
Daniele
Anonymous
gcc
Daniele
alright
Ilya
Do you know how to ask array from user? C language
input array elements one by one in a loop
Ilya
Is netbeans good for c?
NO. Clion Or Qt Creator Or MS VC
Daniele
is there a way to create a function that prints the content of an matrix? it needs to be in a separate file from the main()
klimi
yes!
Daniele
yes!
how do you do it?
klimi
how do you do it?
idk but you can
Daniele
Yes there is
do you know how to do it?
Ludovic 'Archivist'
is there a way to create a function that prints the content of an matrix? it needs to be in a separate file from the main()
I suggest you don't ask for people to do your homework. Try and if you cannot manage, come back and ask for help
Daniele
I suggest you don't ask for people to do your homework. Try and if you cannot manage, come back and ask for help
it's not homework I'm doing, I'm just trying to simplify my life when doing my homework (we are working on matrices and printing out a matrix comes out multiple times)
Daniele
the issue is I've created the function that does that
Daniele
but it only works within the same file of the main program
Ludovic 'Archivist'
but it only works within the same file of the main program
So your problem rather is: how to call a function from a different file in C
Daniele
if it's in a separate file I cannot find a way to make it work because I guess it gets interpreted as trying to make a variable size matrix (which I know I cannot create without pointers)
Daniele
So your problem rather is: how to call a function from a different file in C
well, yes, but actually no, rather how to make the same function in a different file that is, in a way, a library of functions that more or less do the same thing
Ludovic 'Archivist'
if it's in a separate file I cannot find a way to make it work because I guess it gets interpreted as trying to make a variable size matrix (which I know I cannot create without pointers)
You will, indeed, run into that very problem, which I advise to solve using the very solution you know is tiresome. Sadly, C is more of a syntactic sugar on top of assembly code than a proper programming language
Ludovic 'Archivist'
so do I just open the file, copy paste the function in the main program and call it a day? that's how I've been dealing with it
In C, you need to write both a header file (contains the definitions of the functions and types) and an implementation file. The header generally have a .h extension and the implementation a .c extension
Ludovic 'Archivist'
The declaration of a function in C89 is at least the return type of the function followed by its name and parentheses. In C99, the type of the parameters is also required, separated by commas, within the parentheses
Ludovic 'Archivist'
Functions and types declarations (struct, typedef, enum) are statements and hence terminated by a semicolon
Anonymous
I regret
Take care of yourself more
Mar!o
Hey guys I want to rewrite my game engine an Im thinking about to use C# instead of C++ because the development itself is much faster - do you think my games will have much less fps?
Prakash
https://internshala.com/1-day-tech-internships?utm_source=eap_copylink&utm_medium=engg2101536
Ludovic 'Archivist'
It mostly depends on whenever you wrote your code in a slightly unoptimized way in C++ and write it in a better way in C#, and on if you write it in a way that pleases the .NET runtime your user uses so that it gets nicely vectorized
Ludovic 'Archivist'
But the starting time will, as for it, definitely suffer
Mar!o
Yeah but I dont think that C# can win against the sse/avx optimized code. But writing c++ dx11 code is just a pain in the ass :P
Ludovic 'Archivist'
Yeah but I dont think that C# can win against the sse/avx optimized code. But writing c++ dx11 code is just a pain in the ass :P
Imagine C# as a worse compiler that C++'s but that always compile for the native CPU you are using, meaning that it may use instructions your C++ compiler may avoid in fear of not being exactly compatible with the architecture
Ludovic 'Archivist'
Yeah but I dont think that C# can win against the sse/avx optimized code. But writing c++ dx11 code is just a pain in the ass :P
This is actually very exactly where well written C# shines. It targets the native architecture of the host that executes, not the minimal architecture that the host can execute
MᏫᎻᎯᎷᎷᎬᎠ
.
Ludovic 'Archivist'
Meaning that instead of targeting for example, x86_64, it will target Haswell x86_64 if the game runs on a Haswell CPU
Ludovic 'Archivist'
Hmm yeah thats true
From tests runned by a colleague, C++/CLR offers about what you may want as a trade-off of the best of both worlds
Mar!o
This is actually very exactly where well written C# shines. It targets the native architecture of the host that executes, not the minimal architecture that the host can execute
But I dont know how big the difference would be for example csgo runs on my pc with around 400 fps and is written in c++ (uses slow dx9 tough) I would say in C# it would run around 350 fps all I care are the fps :)
Mar!o
And gpu calls are probably much slower because I need a wrapper like SharpDX
Ludovic 'Archivist'
And gpu calls are probably much slower because I need a wrapper like SharpDX
This is why C++/CLR is useful. If you want to take the step through .NET it may be a good place to start
Mar!o
Osu! is a game written in C# and could reach about 450fps on my potato-most computer and about 1050fps on a colleague's
Hmm yeah - but osu is not 3d and does not have any graphic effects like volumetric lights or real time shadows for a 2d game I would immediately go with C#
Ludovic 'Archivist'
Hmm yeah - but osu is not 3d and does not have any graphic effects like volumetric lights or real time shadows for a 2d game I would immediately go with C#
Actually, Osu! uses only 3D render calls. However most of its rendering work is particules I have to concede on that
Anonymous
input array elements one by one in a loop
I mean, can't read in array?
Mar!o
https://prnt.sc/q8g99j
Mar!o
Another problem is Memory. Big games like read dead redemption 2 or gta v are already taking up 4 - 6 gb ram. Now with C# all that reflection stuff it would be much more :/
Ludovic 'Archivist'
Which is why, C++/CLR and only use C# for what is least critical
Loading assets, error handling logic, audio playback
Mar!o
I will look into that thank you
Anonymous
Yes
Mar!o
I really like C++ but C# is just much faster to write for a one man developer