Roxifλsz 🇱🇹
Valentine
int i is uninitialised
well, didn’t help
Valentine
That’s smth supernatural lol
Alex
That’s smth supernatural lol
you should init result with start value
Valentine
found problem, long is int
Anonymous
Vlad
That’s smth supernatural lol
It's what is called UB :P
Harsh
found problem, long is int
I think it's because you didn't use result =0 in beginning
Harsh
First learn : https://www.programiz.com/cpp-programming/examples/largest-number-among-three Then implement: https://www.geeksforgeeks.org/templates-cpp/
Vlad
well, didn’t help
btw 1 / pow(...) not gonna work. You should use 1.0 / pow(...) instead.
Stefan
(int / double) is double right?
Stefan
because either one type is double then the int is promoted to double too
Stefan
That’s smth supernatural lol
you forgot to set 0 to result uninitialized value are not empty like other high level languages in c++
Vlad
Mixing floats and ints in a computation is a bad idea anyway :P
Anonymous
Anonymous
Hi my name is Juan. I’m planning to learn C/C++. I already know python, do you know any specific course I can learn from?
:|软数据|:
Welcome Juan
Anonymous
Thanks SoftDat!
Vlad
Homework's too hard, eh?
Anonymous
/warn probably assignment and definitely offtop
Anonymous
Thanks Rose and Danya for the links provided! Will take a look
Vlad
So you still don't get do ya?
Anonymous
moving along a row == moving columnwise
Anonymous
i would suggest not using this analogy anyway
Anonymous
int a[5] has type int[5]. array of 5 elements, each of which is an int. int a[3][5] has type int[3][5]. it's an array of 3 elements, each of which is an int[5]. int a[2][3][5] has type int[2][3][5]. array of 2 elements, each of which is an int[3][5]. i.e. array of 2 elements, each of which is an array of 3 elements, each of which is an array of 5 elements, each of which is an int.
Anonymous
that's all you need to know about multidimensional arrays
Anonymous
(start from the middle. keep moving to the right, then move to the left for the type)
Harsha [M]
Wojak
Can we use "sales_item.h" to retrieve ISBN of a Book using an API of collection of books?
Wojak
And if so, what would be the approach?
Harsha [M]
Ok
can i send the repo link in the ib?
ₘₐₕdᵢ
ₘₐₕdᵢ
Harsha [M]
they will come wait
ₘₐₕdᵢ
Hi guys I wanna my pointer be able to enter values in horizontal line What else should I enter in my syntax?
ₘₐₕdᵢ
?
ₘₐₕdᵢ
Instead of going at first: height the pointer goes in front of weight
ₘₐₕdᵢ
Help me guys I know that's a bit simple😂😂🤦‍♂
Anonymous
And if so, what would be the approach?
The approach would be learning how to read.
Anonymous
The book has clear instructions on how to download and use the file
Anonymous
Helo
Andrew
is there a way to read in input from command line and pass it to a binary executable..for example if i compile gcc math.c.. then i want to pass a parameter from external like ./math.out 5 4 and the c program to read the numbers?
V01D
Where argc is the argument count, and argv is the argument passed
Andrew
i tried like that, but have that specific name so
V01D
As an array of C strings
Andrew
thanks
Don Peter Joseph
hi
Don Peter Joseph
can someone help me in c
V01D
thanks
Sure :)
V01D
Harsha [M]
Sure :)
Bro.. can I send you the repo link of auto block..🙊.. I made it just because of you
Harsha [M]
Harsha [M]
Don Peter Joseph
Don Peter Joseph
Are all these same
Don Peter Joseph
What is the difference
V01D
/report
Don Peter Joseph
why report
Anunay
Anunay
Read about arrays and then try again
Anonymous
Learn how to write readable text please
Anunay
Learn how to write readable text please
It's readable to me 😂
Anonymous
Some are not valid even
Anonymous
Read books
Don Peter Joseph
if i know then why should i join this group
Don Peter Joseph
thanks
Anonymous
if i know then why should i join this group
To asks question that are not stupid
Don Peter Joseph
ok well
V01D
why report
Screenphotos are not helpful. And nobody can read that
Dima
Lol bruh
Sasuke
Read rules how to ask help
Anonymous
Example libre kernels reject microcode updates
Sorry. I meant Linux-libre. It's made by GNU. Does THAT libre kernel reject microcode updates and the like? I wanted to have the non-libre microcode on the OS, and not on the kernel.
Anonymous
Hello, please a little question, in Microsoft examples initializing IWbemLocator* pLoc = NULL; or also IWbemLocator *pLoc = 0; why do not use nullptr to inizialize the pointers?