Harshanath
Done
Mat
Done
Great!
Anonymous
hi
Anonymous
Can anybody suggest good books to learn basic c n c++?
Anonymous
Hi @spaceseks
klimi
Can anybody suggest good books to learn basic c n c++?
Read the pinned msg it is not that hard
BinaryByter
Read the pinned msg it is not that hard
its a very hard task to do for someone with less than 1 brain cell
klimi
Ohhh
Anonymous
klimi
hi
Dima
lol wannabes
Ludovic 'Archivist'
its a very hard task to do for someone with less than 1 brain cell
Amobeas can do that, and they are unicellular
klimi
wannabes?
Anonymous
Yh
BinaryByter
when I initialize temporaryDerivative to 0, the unit tests don't pass anymore ;_;
BinaryByter
but when I keep it uninitialized, valgrind cries
klimi
idk even what valgrid is
klimi
im cool programmer
klimi
wait
klimi
im no programmer
klimi
then it doesnt matter ^^
BinaryByter
BinaryByter
idk even what valgrid is
its a tool that tells you where you screw up
klimi
❤️
im no programmer
BinaryByter
I know, dat trainwrecking
BinaryByter
but for now it shall be fine
Dima
first for uses brackets while second not
BinaryByter
first for uses brackets while second not
I can only remove brackets for single line fors
BinaryByter
and its good practice to do so when possible
Dima
I know
Dima
even if one-line you should use brackets
Dima
lol
Dima
rip
BinaryByter
anyway, let's stop bikeshedding lol
klimi
maxi help
BinaryByter
lol what the unconventional code
why does changing the value to 0.0 matter?
klimi
i forget one thing in c++
BinaryByter
klimi
how do i do reference to variable?
BinaryByter
klimi
like
klimi
i want to do
klimi
somefunc(int x, int y)
BinaryByter
how do i do reference to variable?
int myVar; int* myPointer = &myVar;
klimi
but the x and y
klimi
i want to modify it
BinaryByter
somefunc(int x, int y)
dont use pointers for ints lol
klimi
i need it in function
klimi
like
klimi
to pass it from function
BinaryByter
bad practice ll
klimi
hm
klimi
ok
klimi
okay
klimi
i will do it
klimi
one by one
BinaryByter
bad practice ll
make two functions (or three functions) that each change the variable
klimi
ill do 2
BinaryByter
or make a class object
klimi
yeah
klimi
thanks
BinaryByter
that way you can return two at the same time
klimi
❤️
BinaryByter
❤️
❤️
klimi
@linuxer4fun and is it ok to create temp int?
BinaryByter
Depends on what you do with them
BinaryByter
Show me code
Ludovic 'Archivist'
when I initialize temporaryDerivative to 0, the unit tests don't pass anymore ;_;
If it passes it means that the first value for temporaryDerivative was dependent on a non 0 variable
BinaryByter
Try 0.5
Why? And why does not initializing it work?
Ludovic 'Archivist'
Why? And why does not initializing it work?
Not initialized often means non 0
BinaryByter
Okay
BinaryByter
Mathematically, which value is best?
Ludovic 'Archivist'
Mathematically, which value is best?
0.5 is likely what you want
BinaryByter
Okay