#comp-sci-help
9 messages · Page 1 of 1 (latest)
then your current version of python is 3.14.5
Mhm, thanks
I'd break long strings into multiple lines (e.g. on main.c:41), Change the UTIL header guard to UTIL_H (helps with differentiating "real macros" to just header guards), include utils.h in utils.c too, (helps with a lot of things and is almost mandatory some times), and try to break some parts of main.c:main() into smaller functions, like that giant formula at the end
and also, don't use scanf 🙏
if you do, atleast check it's return value for errors
Oh, and your makefile is pretty good if that's your first time making one, but I'd replace the %.o: %.c rule with a %.d: %.c one, and then generate dependencies automatically with $(CC) $(CFLAGS) -MM, which you can then -include $(OBJS:.o=.d) later
all of the files had the exec permission bit when I cloned too, which you should fix, but that's not a code problem
And clean should be a phony target in the Makefile too
I am learning open gl and trying to render triangle but I don't understand what are buffers, their types and what does BindBuffer do
Kind of overwhelmed by all the new words
Vertex buffer objects too
hello has anyone had experience with AP csp