Anonymous
what is uint8_t ?
I'm not doing your homework for you
Anonymous
This is some code I gave as an example
@unchanted
I'm not doing your homework for you
no, i am not asking anyone to do my homework, i am just asking to correct me, i will do my homework on my own, but i need help to understand the concept
Anonymous
BTW there was one guy in my class that did something very funny He just iterated until \0 then for the length of the string he just printed character by character backwards
Wisenky
Dima
With source
Tokin
A game ?
Oops sorry.. This one.. hero.handmade.network/episode/code/day001/
Tokin
A game ?
Game from scratch yeah..
Dima
Dafuq
Dima
Lmao @unterumarmung check it out
Tokin
Russian?
Wisenky
Game from scratch yeah..
I want to ask something again
Wisenky
Should I really use visual studio for building a big project
Dima
Game from scratch yeah..
Making a game engine from scratch is better imo
Dima
Should I really use visual studio for building a big project
Any ide will do (no I am not talking about vs code)
Wisenky
Bruh
Is it worth thing
Anonymous
Don't use mingw
Dima
Is it worth thing
It’s better to use clang or msvc
Wisenky
I mean ides comes me so complicated , Is it a must thing using ide for building big things
Anonymous
So what?
Anonymous
Anyways
Anonymous
/warn offtop
Dima
John
Hi
Ajay
First time heard of Unspecified behaviour. Did that get introduced in some newer version of c++ or what?
Artöm
It existed since 98
Ajay
It existed since 98
😂 Why is it used so less? Do people many times replace unspecified behaviour with undefined behaviour?
Ajay
Doesn't it sound like Undefined behaviour?
Ajay
implementation-defined behavior means the compiler developer have decided what action will take place and unspecified means it isn't decided and so not documented(although some action is decided but not documented )?
Ajay
so when they have multiple choices to choose from, do they simply implement one of them to happen or what?
Ajay
also you wrote no fixed no. of choices in undefined B. and fixed no. of choices in unspecified. Do they hold any importance?
Ajay
does that hold good for both undefined B and unspecified B. ?
Ajay
does that hold good for both undefined B and unspecified B. ?
I mean the decision to implement one of the choices or not implement any
Ajay
hmm ok
Ajay
ok fine I got it.
Anonymous
Help me about oop
Anonymous
Plz
klimi
ok
Anonymous
But I asked a direct question
Anunay
OOP is a broad topic
Anunay
What exactly do you want to ask?
Nils
What happens when a call to nullptr happens?
Nils
$x 🤔 Are we a PHP to bash group? 😂
Anonymous
Anonymous
You cannot call a pointer
It's not callable
Nils
thx
Nils
WTF my computer jus
Nils
Ok it got back alive. Lol
数学の恋人
what's wrong with this?
数学の恋人
std::string::reverse_iterator sum_iter; std::string::reverse_iterator rev_pos, rev_end; if (first->size() >= second->size()) { sum = *first; rev_pos = second->begin(); rev_end = second->end(); } else { sum = *second; rev_pos = *first->begin(); rev_end = *first->end(); }
Антон
what's wrong with this?
Why do you dereference iterators in else clause?
数学の恋人
Why do you dereference iterators in else clause?
oops sorry I have not dereferenced it
数学の恋人
It's just they were there when I took the screenshot, i forgot to remove *
数学の恋人
change end to rend?
rend and rbegin do work but why?
数学の恋人
is it how I'm supposed to use with rever_iterators?
Alex
is it how I'm supposed to use with rever_iterators?
yes, cause rend() returns reverse_iterator and end() - iterator
Антон
rend and rbegin do work but why?
Because of rbegin and rend return reverse_iterator's and begin and end return regular (forward) iterators
数学の恋人
ok understood
Антон
They are different types
数学の恋人
They are different types
yes got it, it was mistake on my part
数学の恋人
is it okay to include header files this way? I have lots of header files in multiple directories and have to include them here and there
Dima
tho it may look messy
数学の恋人
tho it may look messy
yes that's why I asked
数学の恋人
till now I've been using simple Makefiles, put all header files in include directory and then compile with -I flag
数学の恋人
no problems with that, but this cmake is kinda awkward