TuF
Cant understand
Mihail
Dima
Lol
Kk
IM
Rostin
@KevinKiprich10 I dont mind answering small questions if u have...PM me
I_Interface
Kk
Kk
Thank you
Nikolas
if you want to do that, explicitly cast it
Nikolas
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf
If any argument is
not the correct type for the corresponding conversion specification, the behavior is
undefined. (page 427)
took from here: https://stackoverflow.com/questions/38597274/why-does-printff-0-give-undefined-behavior
数学の恋人
Hey @mmihov, I modified the code like this but the problem is everytime I run I get same string.
Mihail
数学の恋人
how to do that?
Mihail
Well using srand() would work
Mihail
Or just do it properly
数学の恋人
okay I searched on www
Mihail
Which would mean using a random device as entropy to a mt19937 and then putting that in a uniform distribution
Mihail
数学の恋人
😝😁😝😁😝😁😝😁
I have no knowledge in programming can I get some knowledge here?
数学の恋人
Okay then here, What will happen if I pass a random char to srand (as argument) then that will act as seed and then which in turn again generate another random char
Mihail
数学の恋人
if chars don't work then some number
Mihail
But you could do it
数学の恋人
Rostin
You could pass time(NULL)
Mihail
If you want it to be random then what Rostin said is generally a good idea
Mihail
But rand still has the issue of numbers not being distributed evenly
Mihail
So if you run it many times you might see certain values being more common than others
数学の恋人
TuF
I want to do coding
But i cant plz suggest something ........
Rostin
Rostin
This is what @mmihov means by uniform distribution if u had any doubts
数学の恋人
why only mt19937? aren't there any other?
Rostin
It's considered to be the best pseudo random number generator available in std library
数学の恋人
Oh
Rostin
Std library has bad generators to begin with, but mt is the best out of the pile
数学の恋人
Hmm...
Rostin
TiMis
Any one who understand unsigned
TiMis
The unsigned and signed short and long
TiMis
And how can you add your C++ code to make a software
Rostin
🥳
数学の恋人
That's right, right? (This sentence is kinda funny)
Rostin
Cant see ur code
Anonymous
Do you have any ideas for any medium size cli projects?
Decoder_3d
Decoder_3d
I use geany
Yeah I used this one also good :)
Anonymous
Hi
How can i send some value in one dimensional array into two dimensional array? (c++)
Jeremy
Dima
vs code for c o.O sounds awkward
Jeremy
I dunno, just an idea for easy features.
Anonymous
hello
Rostin
Hi
Anonymous
I just begin to learn c++ for several mouths in uni. I want to know will i use it in my work? Maybe python is more usual
Avezy
Depends on your employment
Anonymous
Anonymous
Which is more important? Python or c
Rostin
Depends on your job
Rostin
😂😂😂
Anonymous
Ok
Avezy
Some jobs more python or even other languages
other jobs c++
Avezy
Some companies might have build systems relying on python for example
Anonymous
General learning maybe
Anonymous
Oh i see
Avezy
but you code in c++
Anonymous
Competitive program C++ but nowadays Python is also more coming up using pypi