Anonymous
I mean pdf version
harry
just google it
harry
its one of the first few hits iirc
Anonymous
Anonymous
How about the book called how to program in c by deitel
Anonymous
?
Anonymous
Have u ever used this text book
Anonymous
?
harry
nope
harry
but Im a beginner myself, so idk
Anonymous
?
Where are u from harry
Anonymous
?
harry
austria
Anonymous
Seriously ?
harry
lol, why
Anonymous
Never expected AustriAn people to use Telegram
harry
why not? 🤔
harry
and where are you from then?
Anonymous
From Uzbekistan
harry
I know more austrians on telegram than uzbeks tbh
h4child
from Brazil
harry
unsurprisingly, I guess
Anonymous
Anonymous
I thought uzbeks were more in Number
Anonymous
When it comes to using this app
harry
really no idea
Anonymous
from Brazil
Whixh part of Brazil ?
Anonymous
really no idea
Do u study anywhere ?
Anonymous
At school or college
Anonymous
?
harry
no, Im a grown up
Anonymous
What do you mean ?
Anonymous
Grown ups dont go to college ?
harry
just kidding
harry
anyway I will studying c for another month exclusively
harry
then six weeks c++
Anonymous
Is that period of time gonna be sufficient to learn ?
Anonymous
I think you need at least a year to master a programming language
harry
certainly not enough to "master" it
harry
but I hope I will be getting a good overview
Anonymous
I see
Anonymous
Just do your best and hit the books day and night 🌙
harry
🙏
Roxifλsz 🇱🇹
Just do your best and hit the books day and night 🌙
Sure, books are good, but you gotta make some actual programs to really get a grip on the language :P
Roxifλsz 🇱🇹
Theory isn't everything
Anonymous
Yeah
harry
I wrote a very simple vocabulary trainer so far
harry
and now Im working on something to simulate simple object physics
Anonymous
👍👍👍
Lorenzo
Hi all guys
Lorenzo
just a question: I have an header called Window.h that wraps glfw functions and then includes the header glfw
Lorenzo
but i don't want that the ones that use my Window.h library have all the glfw functions
Lorenzo
is it a good practice then to include the glfw just in the Window.cpp file
Lorenzo
well here comes a problem. i have in the class Window a private member that comes from the glfw api, called "GLFWwindow". how could i fix this?
Lorenzo
i made a unique_ptr<void> _window
Lorenzo
so i have not to implement the glfw in the header file
Roxifλsz 🇱🇹
Lorenzo
no the problem is that in the Window.cpp i have to cast each time the void *
Lorenzo
will it give performance issues?
Roxifλsz 🇱🇹
You could have a global variable inside the cpp file
Roxifλsz 🇱🇹
It shouldn't cause any troubles with other files, since it is isolated
Roxifλsz 🇱🇹
And you won't have to cast it everywhere
Lorenzo
you mean a global variable that contains the pointer casted?
Roxifλsz 🇱🇹
Not a void pointer
Lorenzo
yeah ok
Lorenzo
but the void* is per instance
Roxifλsz 🇱🇹
Hmmmm
Lorenzo
https://hastebin.com/ceyijomifo.cpp
Lorenzo
anyway i found out that also a unique_ptr of void is useless
Lorenzo
i'm going to include the header in the Window.h
Roxifλsz 🇱🇹
You could have a #define castedWindow (GLFWwindow) _window
Roxifλsz 🇱🇹
Not sure of the performance impact
Lorenzo
Yeah that was the only way lol
Roxifλsz 🇱🇹
If you don't mind, what are you making?
Roxifλsz 🇱🇹
Just curious
Lorenzo
I'm making a 3d game like minecraft but not equal not minecraft
Roxifλsz 🇱🇹
Cool