Anonymous
ok thanks)
https://www.tutorialspoint.com/c_standard_library/c_function_qsort.htm
Anonymous
if you don't care about doing this in-place or about memory then copy the linked list to an array, sort the array, then copy back
Ilya
https://www.tutorialspoint.com/c_standard_library/c_function_qsort.htm
As this is an assignment, I think he must implement sorting himself
Nikita
Who knows great books for computer graphics?
Anonymous
not here
i try recursion in the default case in the switch that seem to handle the issue and i removed all the goto trash i had in there
Anonymous
goto should be abolished
Mar!o
Who knows great books for computer graphics?
With graphic apis like direct3d or opengl?
Anonymous
Who knows great books for computer graphics?
do you mean like a GUI for C/C++
Mar!o
Wait
Nikita
do you mean like a GUI for C/C++
I'm interesting in game development and i'd like to dig about computer graphics theory
Mar!o
I really like these
Mar!o
Mar!o
Mar!o
Anonymous
I'm interesting in game development and i'd like to dig about computer graphics theory
o i have no clue , but i got a good channel on youtube that may help ,
Nikita
I really like these
Man, you are the best!
Nikita
Which book should i start first?
Anonymous
this guy is a C++ game dev that has worked at EA i believe Nikita
Mar!o
Which book should i start first?
Probably with real time rendering
klimi
https://www.youtube.com/user/TheChernoProject
(dont take this code seriously .... some codes does not work on gcc just msvc)
Mar!o
I really recommend this one too but its more about game engines
Nikita
I really recommend this one too but its more about game engines
I'm very excited about game engines and i wish to become game engine developer :D
Nikita
Thanks btw
Mar!o
Then I wish you good luck its pure fun to code an engine but also not too easy - Im a engine programmer if you have questions feel free to contact me :)
klimi
even his moderations in his group doesnt like the code
Anonymous
no
What is an alternative you suggest ?
klimi
none
Anonymous
Lol
Mar!o
You don’t like his channel ?
I think his channel is good too
Anonymous
I think his channel is good too
I found some of his explanations useful
Mar!o
What level of math did you need ?
You need some understanding of 3d math like transformations, vectors and the graphics stuff but its not too much i use a math lib too
Mar!o
Wow, ok. Maybe you know the best way to start? I mean math -> computer graphics -> etc
Graphics are a good start but you should start with the game engine architecture book - an engine has many subsystems, asset management, a dynamic scenery hierarch system etc. youll learn that all in that book
Mar!o
But have you every used an engine like unity or unreal? If not you should first develop some games in existing engines and learn how they work 😁
Anonymous
lets say you have something like int somenum;
Anonymous
and you do scanf(“%i”, &somenum)
Anonymous
and the user enters a character
Anonymous
how do test if what they enter is the proper data type,
Nikita
But have you every used an engine like unity or unreal? If not you should first develop some games in existing engines and learn how they work 😁
Yeah, i have some experience. But i'm not really interesting in unity and i prefer cocos2dx for my projects. My main problem is weak architecture of programs and i'm sure that through game engine development that's much better to understand almost everything about game development process.
Mar!o
Yeah, i have some experience. But i'm not really interesting in unity and i prefer cocos2dx for my projects. My main problem is weak architecture of programs and i'm sure that through game engine development that's much better to understand almost everything about game development process.
You are going to understand everything and sure its fun- but also remember that it can take years to learn all the stuff and you need a very solid understanding of C++. Sure you could also an other language (ive written my first engine in C#) but in c++ you have much more libraries and example code for game engines plus you have the full memory control and can do fancy & fast things like sse/avx. Do you want to make a 3d or 2d game engine?
Mar!o
how do test if what they enter is the proper data type,
Afaik scanf returns the number of successfully parsed and assigned inputs - for example if you want to read one int you could check if scanf return something which is NOT one- then you know something went wrong
Anonymous
something like that like?
Mar!o
I guess you want to run the loop as long the input is valid :) so in this case you should do while(scanf("%i", &somenum) == 1)
Mar!o
The while loop runs as long as one input value is succesfully parsed and assigned - that should be it
Mar!o
thank you
haha ^^ your welcome
Anonymous
haha ^^ your welcome
is it possible to use an if statement instead of a while loop?
Anonymous
if scanf equals to 1 else …
Mar!o
sure for example: if(scanf("%i", &somenum)) { //Okay } else { //Dammit something went wrong } the == 1 is implicit because 0 evaluates to false and everything else to true so 1 is true
Anonymous
@reinterpret_cast how long you have been coding for ?
Mar!o
@reinterpret_cast how long you have been coding for ?
I started when I was 11 and I´m 18 now so 7 years ^^ and every day at least 3 hours - I´m crazy 😂
Anonymous
i have some javascript , c/c++ experience
Anonymous
html , css , jquery , bootstrap
Anonymous
some node experience also
Dima
lol frontend
Dima
meh
Mar!o
html , css , jquery , bootstrap
Im a total web dev n00b xD
Anonymous
free code camp is good if you wanna give it a shot
Mar!o
Im only good in C, C++, C#, and x64 Asm this web stuff confuses me badly :/
Anonymous
Anonymous
i think maybe in c/c++
Ilya
Mar!o
i am interested in building a blockchain one day
Why not just code whatever you want and most importanly have fun and dont let anyone change your way...
Anonymous
Why not just code whatever you want and most importanly have fun and dont let anyone change your way...
I agree , the web dev I think I can get a job quicker with but C is important to me because I can use it for stuff I want to build and I can use it for this certification I want to get
Anonymous
Yeah and you learn how computers work - dont we all love nasty things like pointers, registers etc. 😏😊
many people tell me its a waste of time to learn C but i think i been gaining alot from it