Luigi
Will it give the same numbers if i use the same seed? Right?
Luigi
Oh
Luigi
Perfect
Anonymous
👍
Ariana
or implement your own rand :>
Luigi
👍
Worked, thank you a lot, apreciated
Yiii
You can use while loop and break statement
no.. i mean.. by pressing N the output on cmd will be terminate.. idk u get it or not because my english not so good. or is it impossible to do that?
Ariana
just exit 0 lol
Ariana
Or better is to like return 0 but thats too lame
Yiii
just exit 0 lol
yes.. i do that.. and its ask to press any key to continuee.. am i right
Luigi
Since return 0; basically closes the program
Yiii
i mean.. just press n and enter it.. it will auto terminate.. no need another click after click N and enter
Anonymous
no.. i mean.. by pressing N the output on cmd will be terminate.. idk u get it or not because my english not so good. or is it impossible to do that?
I get it... Js Just take a character as input and campare it inside a if statement If ch=='N' exit(0)
Yiii
I get it... Js Just take a character as input and campare it inside a if statement If ch=='N' exit(0)
to use exit 0.. need to add #include stdlib. h right.. and isnt it the same as return 0.. it will show press another key to continue
Ariana
exit(0) directly exists with return code 0
Anonymous
While(5){ Statement 1 Statement 2.... . . . . If(condition) break; }
Ariana
return 0; returns to some short thing then before exit(0)
Anonymous
Best way for doing this.. Create an infinite loop and use break statement to return out from the loop
Anonymous
Hello
Anonymous
Why can't we swap two array just by their name as: temp = ar1 ar1 = ar2 ar2 = temp
Bross
Hi
Dima
NO PHOTOS OF A SCREEN
Dima
use pastebin
Dima
pls
klimi
/rules
Bross
How use file conf .yaml in c++ and use file log in c++ with a class conf and log
Bross
How help me?
klimi
How help me?
What have you done so far?
Ariana
well you can
if you treat them as pointers
Anonymous
if you treat them as pointers
I tried bt not working
Bross
I do a Project but i don t use class config
Bross
Now i do refactoring
Bross
Whith class config
Aditya
Well, I got the exact question asked by @Wolverine on stack overflow. I was sharing that page only.
Bross
Project without config Is very shit
Bross
I resolve
Anonymous
Hello
Anonymous
I'm good, you?
Luigi
use pastebin
Well, that was a little code
klimi
Hi I'm an admin I'm fine
Anonymous
Great
olli
This does not work, you can only jump in the same function. (There are even more restrictions, so C++ calls the destructors) The goto statement unconditionally transfers control to the statement labeled by the identifier. The identifier shall be a label located in the current function. [stmt.goto]
Ибраги́м
How not to generate randos in C++ 101
Luigi
Mh?
Anonymous
Hi noobs.
olli
Well but what about between if and the outter scopes?
how should that be a problem? leaving the scope destructs the objects
Luigi
How not to generate randos in C++ 101
Could you explain me how to do it correctly?
Dima
Hi noobs.
Hey javascript developer
Ибраги́м
Could you explain me how to do it correctly?
1. http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2013/n3551.pdf 2. https://en.cppreference.com/w/cpp/numeric/random (scroll down to bottom to see example)
Ибраги́м
That will cost $100, we are no longer doing free
Ибраги́м
Basically i don't have to use rand(), right?
IIRC, that's what they're teaching in the links I gave u. To put it nicely, "rand() is evil"!
Luigi
👍👍 thank you
Ariana
Hi noobs.
much hypocrite
olli
But with goto it doesnt, does it?
Can you provide an example? To make sure we're talking about the same thing
BinaryByter
for (;;;) { int long; goto b; } b:
BinaryByter
much hypocrite
more than much
olli
for (;;;) { int long; goto b; } b:
http://eel.is/c++draft/stmt.dcl#3
BinaryByter
Oh 🤔
BinaryByter
Makes sense
Anonymous
thank you
Anonymous
Hi
CM
Hello guys, how do I solve recipe target error in c
Anonymous
Hii
Kat
Should ban, was also spamming in python
Bross
How return multiple variable in c ++ like python? Without class or struct
Bross
Is possibile?
Bross
Without classe
Dima
tuple
MᏫᎻᎯᎷᎷᎬᎠ
I bet he will say at runtime
Vitaliy ◀️TriΔng3l▶️
Accept multiple reference/pointer arguments?