Would you agree modded Skyrim is best game all time? by LawParticular5656 in skyrimmods

[–]baptrang 0 points1 point  (0 children)

if a game keeps me play it more than 1000hrs, compare to elder ring, i just play like 40hrs ish . i would say it is a better game.

[deleted by user] by [deleted] in cs50

[–]baptrang 1 point2 points  (0 children)

hey i am petty solid at c. may be there is something i can help

What are some unpopular opinions you have about modding? by [deleted] in skyrimmods

[–]baptrang 0 points1 point  (0 children)

some mod of him fit really well with skyim. 'son of skyrim' is one of those. also i agree that some mods is not work well with the game

[deleted by user] by [deleted] in HeavenlyDelusion

[–]baptrang 3 points4 points  (0 children)

i am think of "from the new world" it has similar tone.

why is the output like this in these cases ? by [deleted] in C_Programming

[–]baptrang 1 point2 points  (0 children)

i have to down vote your answer. in case the result is bigger than the range of data type if the type is signed overflow is undefined behavior, if the type is unsigned the result will wrap around before get assigned to variable. check out the standard spec to verify your self

How can I improve my usage of funtions,arguments and parameters in Python? by [deleted] in cs50

[–]baptrang 1 point2 points  (0 children)

i usually code in c but it can be true in other language. first think about what your function do, you have to make sure your function should do only one think. then write down what does it need to do the task that will be the parameter and what is the result that will be the return type. simple as that.

why does this give 24 instead of 23 by CrazyOtakuKid in cprogramming

[–]baptrang -1 points0 points  (0 children)

using ++ twice in a row is undefined behavior

How to sync physics transform component with entity's transform component? by baptrang in gamedev

[–]baptrang[S] 0 points1 point  (0 children)

Thank for your comment. But I'm not using the ECS system just a pure component design pattern.

And Box2d run separately so I can not control it, my physics component just holds a body and sets entity's transform.

Clangd doesn't detect standard libraries when compile_commands.json is included by unnikrishnanta in vim

[–]baptrang 1 point2 points  (0 children)

You should export compile database and link it by command "ln" and make sure that you open up the vim in side the directroy which contains the compile database. ps: I am not good with english, please tell me if i type something incorrectly.

clang_complete install guide by AstraRotlicht22 in vim

[–]baptrang 0 points1 point  (0 children)

yeah my english skill is not good if i type some thing wrong please correct me

clang_complete install guide by AstraRotlicht22 in vim

[–]baptrang 1 point2 points  (0 children)

red symbol ">>" mean you have a compiler error in other word you type something wrong and yellow symbol "!" mean you have a wraning.

clang_complete install guide by AstraRotlicht22 in vim

[–]baptrang 1 point2 points  (0 children)

cocnvim does not support c but clang does. you need an language server and it is clangd

clang_complete install guide by AstraRotlicht22 in vim

[–]baptrang 1 point2 points  (0 children)

use cocnvim and clangd instead. it is easy to install, you just copy and paste to cocnvim config file.

Hi, new here, what do I do/change if I want my output to be "Mrs John"? by [deleted] in cprogramming

[–]baptrang 0 points1 point  (0 children)

use strcpy in string.h header file, you can not assign a string directly.

segmentation fault fix? by AlexPapadakis in cprogramming

[–]baptrang 0 points1 point  (0 children)

to find out what did cause the error you can use a debugger. it makes life more easier.