#comp-sci-help

9 messages · Page 1 of 1 (latest)

cloud atlas
#

Mhm, I have 3.14.5

split spear
cloud atlas
little helm
#

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

violet thistle
#

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

native abyss
#

hello has anyone had experience with AP csp