Vlad
So you have to insert rows to make a move :P
kodes
I'm in 3rd semester, anybody have any resources to study basic electrical engineering??
Daniele
isn't that like writing j = i = i+1?
Daniele
assuming you can write that, I don't know
Kenny
/report Spam
Davi
am i allowed to share my github link?
I believe it may be flagged as advertising. I also wanted to post my GitHub, I have a project with some sorting algorithms and I would like other users to scrutinise my code.
Hussain
Hi rose
Anonymous
Anonymous
But the fact is I can pass literal for right reference, so lambda is fine
Anonymous
What is using namespace std in c++ ?
Anonymous
to avoid write all times the std:: thing, without it you always need write: std::cout etc..
Anonymous
but you should avoid it, google about it
Indolent
Anonymous
its large to explain, this was the reason for "google about it"
Indolent
ik my man ik, deeply
Joe
Why does C++ give out Main distance = 1.22116e+09 for me?
Joe
It should be a proper decimal value like 10 or 15.
olli
Anonymous
Alex
!
V01D
Roxifλsz 🇱🇹
Sounds to me like you're trying to get around a wall that was designed to keep people like you out
Anmol
Anonymous
Aishwary
I want to create a program for SUM OF MULTIPLES OF 3 AND 5 BELOW 1000.
So here i have created a function but have no idea how to return the value.
PLEASE HELP !
klimi
Return what value
Roxifλsz 🇱🇹
Aishwary
How else should i ask for the help ?
V01D
Read the rules
Aishwary
Return what value
Somehow return the value of s. Have no idea how to do this
V01D
int and float cancel eachother out. You know that, right?
V01D
You are dividing n of type float by a value of type int.
And the result is stored as an integral data type.
Aishwary
Stored in long
Aishwary
Vlad
V01D
Either cast all int's to floats, or cast all floats to ints, or change function parameters to accept ints or floats
V01D
Aishwary
Okay, i'll do that...
Aishwary
What about returning the value ?
Aishwary
Aishwary
The value of S... that's the formula. I have to use that formula in main function
Aishwary
And Then print the result
Aishwary
I don't know how to do that . I'm beginner 🤐
V01D
But you JUST did that 😂
Aishwary
I tried but it's not working
V01D
What does "not working" mean?
Aishwary
I did the same...i got output in negative...which is not possible
Aishwary
You are adding multiples and you get the result in negative - doesn't make sense
V01D
Maybe the value is too big to store
V01D
Try unsigned types
V01D
Perhaps an
unsigned long long
?
Aishwary
Aishwary
When i debug it, i found that its not calculating the result properly. Then i made a program just to test the formula. It worked fines there
V01D
So port the working part of the program into the program that doesn't work
Aishwary
I did exactly same. It's not working here
V01D
Or use a program to view the difference in the files. Perhaps the linux commands diff or vimdiff could help.
V01D
Different data types?
Aishwary
I believe i have flawed structure of the programm . May be that's why it is not working.
Aishwary
Aishwary
V01D
Just share the working code
Aishwary
I defined values for n, d , a... Used them to compute the value by the formula. Quite simple it was - well, It worked...now when i used the exactly same formula ( as used in my defined function) and i intend to return their values in sum_multiples......i have no idea how to do that.
Aishwary
I tried return S in main function. It didn't work
Aishwary
Then i debug it...the process was showing that it is computing all three values for n, but the exact result it is giving now is not correct
V01D
V01D
Need more info than "linking failed"
V01D
That doesn't tell anyone anything
V01D
Nope
Roxifλsz 🇱🇹
Don't do this, please, there is absolutely enough of unstable software out there as is
Roxifλsz 🇱🇹
Jesvi
/rules
Indolent
I swear I won't again
Indolent
Btw was is hilarious?
Roxifλsz 🇱🇹
I swear I won't again
My issue wasn't with you posting the meme, that's actually totally fine. But I'm more sad about the fact that there are a lot of devs who develop their software just like that meme showed
klimi