Dima
klimi
Anonymous
Is write cods use winsock2 okay in 2019?🤔
Ludovic 'Archivist'
Klimi faster than any bot
klimi
meeew
Anonymous
Program says a and b are not equal, but in fact they are equal. can somebody please tell me where I did mistake?
Nikolas
i<14?
Dima
Lol.
Anonymous
Oh
Nikolas
well your "else" branch is useless
Nikolas
aaand the message got deleted
Nikolas
xD
Anonymous
Anonymous
Anonymous
well... you are accesing a[5] and b[5]
Anonymous
and you didn't set anything here
Nikolas
Anonymous
Nikolas
why 13?
Nikolas
I represents the index of the element in the array you want to check. But your arrays don't have 14 elements
Anonymous
Yeah I corrected it to 4, now it's working in the way I want
Anonymous
Anonymous
lol, never heard about auto nor begin/end in c++
Anonymous
Is this c++ or c?
Nikolas
klimi
c++
Nikolas
(it's not a code for checking equality of arrays though, keep that in mind, it just loops the arrays)
Nikolas
(actually in case of two array it just loops a number of times equal to the size of the smallest of the two)
Nikolas
I know, I was just pointing that out since you replied to an exercise about equality
Anonymous
Can anyone tell me what is my mistake here? I'm trying to find out minimum number in the array using function, but program is executing 1
I'm sure I made some logical error, but I couldn't find it
BinaryByter
use std::min ¯\_(ツ)_/¯
Anonymous
BinaryByter
Dima
Why do you start from 1?
BinaryByter
I can't
you need to pass min as a reference if you want output arguments
Dima
or just return min;
BinaryByter
BinaryByter
else, the code looks fine
BinaryByter
yea, I meant that one
BinaryByter
you are too late for the party, dude
Anonymous
rip
miko
what the
miko
function is that
miko
there is *min_element(a + 1, a + 1 + n)
miko
for finding the smallest element in the array
Dawit
any one who can tell me the solution it say
could not find a match for 'fstram::fstream(cahr *)'
Mat
Mat
fstram?
Shubham
in this group we can share questions
Mat
Shubham
like i have some coding questions and i am not able to solve them
Shubham
so can i share it here
Shubham
ohkk
Shubham
one more query
Shubham
if i am unable to understand the question then what i have to do
Mat
Shubham
1 sec
olli
in this group we can share questions
Yes, asking is not that hard.
- Tell us what you did, which problem you face and what you expect to happen. Give us as much information as needed but as little as possible to understand your issue.
- if your code snippet is longer than ~15 Lines, please use some pastebin service, otherwise you can paste it here in monospace font (triple `)
- make sure your code has a proper layout (Many IDEs support auto formatting)
Shubham
If an array contained [1, 10, 3, 5, 2, 7] and k = 2, combine the set as {110, 35, 27}, sort the set {27, 35, 110} and split the set into array as [2, 7, 3, 5, 1, 10]
Shubham
this is the question i am not able to solve this
Shubham
like not getting where to start
Anonymous
can anyone rate my website and maybe pentest its security
Anonymous
trying to see another perspective other than mine
Elnee
https://stackoverflow.com/questions/4629050/convert-an-int-to-ascii-character
Elnee
Awesome
Anonymous
...
Anonymous
🐰🐾 سمیه
Hi, in modulo operation the result is independent of dividend being a negitave or positive number, is that correct?
For example:
-1%10= 1
1%10=1
Ибраги́м
🐰🐾 سمیه
👌🙄
Anonymous
https://stackoverflow.com/questions/11720656/modulo-operation-with-negative-numbers
Ибраги́м
👌🙄
And read this to become the greatest C programmer /s
If you're wondering, it's the ISO C Standard For C11
🐰🐾 سمیه
Is this question that complicated? 😶
Anonymous
Ибраги́м
👌🙄
Yea, just do a printf lazily and get your answer. Try with all available a compilers