klimi
swap is in iostream
Raul
iosteam will sometimes include headers that it thinks you need
Raul
But don't rely on this
Daniel
so i should include this files by myself?
Mihail
You should include utility
Daniel
why does i need it?
Mihail
Because you said you want swap?
Daniel
yes:)
Daniel
what if functions from different included files matches?
Raul
Only include what you need
Mihail
what if functions from different included files matches?
That's why you shouldn't do using namespace std;
Raul
^
Mihail
So that you instead write std::swap
olli
So that you instead write std::swap
That disables ADL though
Mihail
And adding to the std namespace is undefined behavior (most of the times), so you can't possibly have a conflict
Mihail
That disables ADL though
It won't search nested namespaces?
Mihail
TIL
Daniel
i thaught that such problem is rare. cool
Daniel
thank you guys for help
olli
It won't search nested namespaces?
using std::swap does not lookup swap in the namespace of the argument
olli
I'd recommend doing using std::swap; and swap
Daniel
hm. swap is also declared in <algorthm>. what if i want to use swap from it?
Daniel
i know. what if i want swap from algorithms?
olli
i know. what if i want swap from algorithms?
It's the same - if you want to have it resolved by algorithm include that header
Daniel
i have included it
Daniel
but still
Ибраги́м
ok, thanks for the advice. and please let me chat here.
Who's disturbing u? Name them and let me send my rockets!
🐰🐾 سمیه
function getch()
🐰🐾 سمیه
is doing so
BinaryByter
Who's disturbing u? Name them and let me send my rockets!
Good thing you are allowed to have four wives!
BinaryByter
but there are also problems with islam
BinaryByter
ludovic, for example, is locked in a kebab guy'sfridge since yesterday
klimi
is doing so
@OxFFFFFFFF ROCKET THE function getch()!!!!
BinaryByter
whaaa
Ask olli
🐰🐾 سمیه
Good thing you are allowed to have four wives!
how many are you allowed to marry?
BinaryByter
but I am allowed to date as many as I want
🐰🐾 سمیه
and what's your religion?
BinaryByter
I'm atheist
Ибраги́м
but there are also problems with islam
Yea, the ones u were unable to defend after 2 minutes of grilling. Hit me up on OT
BinaryByter
keck i was just setting up a joke
🐰🐾 سمیه
I'm atheist
means you believe in no god?
BinaryByter
a joke only olli gets
BinaryByter
but I am in a church every day
🐰🐾 سمیه
precisely
So if you find ,for example a computer or a phone, you think it's just created by an accident? dont you think humans are much more complicated🙄
BinaryByter
it was created by someone smart
BinaryByter
and humans werent created by accident as well
klimi
but not on a mass
BinaryByter
but not on a mass
I will play the organ in masses soon 😉
Ибраги́м
function getch()
getch() is simple enough. getch is a weak enemy.
olli
i have included it
Sure, but the implementation does not have to be in this header. Since you can include it from algorithm and utility library vendor provide the implementation in one single header (move.h in your case) and include this header in algorithm and utility.
klimi
I will play the organ in masses soon 😉
well i hear in my head "Learn organ you can play"
BinaryByter
yes, I play the organ
klimi
yes, I play the organ
i meant my mother
Ибраги́м
it was created by someone smart
And universe is a work of design NOT rand() or <random>
klimi
🐰🐾 سمیه
getch() is simple enough. getch is a weak enemy.
let me ask you my questiom if other members don't kill me
Ибраги́м
got any proof?
Any proof it's by rand() ?
🐰🐾 سمیه
getch() is simple enough. getch is a weak enemy.
I think c still contains the first char and assigns it to S[0]. So the first assignment doesn begin from getch() in line 2, actually it begins from C. correct?
🐰🐾 سمیه
BinaryByter
Any proof it's by rand() ?
i didn't exactly claim its random
BinaryByter
i just said that I don't believe that it was designed
Ибраги́м
i didn't exactly claim its random
So how does universe came into existience? Who designed the universe?
BinaryByter
So how does universe came into existience? Who designed the universe?
I didnt imply that the possibility of it being random is wrong
Ибраги́м
i just said that I don't believe that it was designed
Then u must believe in magic | or it was magic then
BinaryByter
i just said that I primarily dont think that it was designed because there is no proof for it
Ибраги́м
Either way you're messed up
BinaryByter
Either way you're messed up
please read about the scientific method
klimi
@linuxer4fun why is there on line 2 (top) defined getch as a int
Ибраги́м
Remember when I told u about darkness?