Mehmet Şakir
Encode the software that shows the sequence from 1*2 to 99*100 (in the format shown below, not their multiplied state) and then loops the software that shows the result of the operation.1*2 3*4 5*6 ... 99*100
Mehmet Şakir
c++
Mehmet Şakir
I would be glad if you help
Mehmet Şakir
no. thank you. I need 1 * 2 + 3 * 4 + 5 * 6 +… + 99 * 100
Mehmet Şakir
1*2 + 3*4 + 5*6 + … +99*100
Roshan
Use conditions and booleans to print
Mehmet Şakir
okey.thank you
Karan
/get cbook
itsmanjeet
is their any simple method of copying unique_ptr
Anonymous
is their any simple method of copying unique_ptr
const auto copied_ptr = std::make_unique<T>(*other_ptr) ?
itsmanjeet
for child class ? like i have a base class and unique_ptr of that but that ptr points to any child class object
Igor🇺🇦
is their any simple method of copying unique_ptr
You can't copy unique_ptr ptr. That's kinda defeats the purpose of unique_ptr because it becomes none unique. If you want several references to the same pointer use shared_ptr.
Promise
Hello guys, please am stuck in c. Trying to get input for users to specify the number of candidates that participated in an election, thereafter creating a loop that ask for candidate's name and votes scored. The loop runs until number of candidates supplied is reached. My problem now is trying to output the winner who scored the highest number of votes, when I tried it's only the last candidates name that appears for example printf("the candidate %s with %d votes won the election", candidatename, votescored). Please help because I want to output the candidate with highest score
Roshan
Use this logic to get the max votes. Now the other work to figure out who's the winner is up to you😊
Ishank
How to learn C language
Ishank
How to learn C language
Please help I don't know from where should I start
Roshan
How to learn C language
Learn C++ it's better
Ishank
Learn C++ it's better
Okk without knowing c , can I learn c++?
Nomid Íkorni-Sciurus
Learn C++ it's better
it depends whether you want to have issues while or after having a working piece of code
Ishank
of course you can
In which app should I code on windows 10 ?
Roshan
If you want to learn C++ after C. Then don't learn C
Nomid Íkorni-Sciurus
Code::Blocks
definitely not, on Windows.
Anonymous
?
also you can use VScode
Ishank
I use visual studio
I have visual code
beluga_hz
definitely not, on Windows.
Y? I mean, I don't use it, but i see a lot people using it
Roshan
😒
Hello Better!!
Junaid
I use code blocks for windows and VS code in my manjaro Linux
Nomid Íkorni-Sciurus
Y? I mean, I don't use it, but i see a lot people using it
Because there is Visual Studio which is A LOT better
beluga_hz
I don't like it at all
Roshan
/get ide What do we have here...
Nomid Íkorni-Sciurus
I don't like it at all
people use Code::Blocks mainly because they use it on linux systems, and does not require around 15GB of space
Ishank
Can you guys share notes for c++ , please
Nomid Íkorni-Sciurus
it's not a bad IDE, just not the best on Windows
Roshan
Yes ..
https://www.youtube.com/playlist?list=PLlrATfBNZ98dudnM48yfGUldqGD0S4FFb
Roshan
Thanks
Welcome!!
Anonymous
Because there is Visual Studio which is A LOT better
yeah, but it's so hard to work with that
Ishank
How is code with Harry ?
Nomid Íkorni-Sciurus
kind of expected it, even if I thought Eclipse would rank higher. Also, the article author does not mention any relevant source for that survey.
Roshan
How is code with Harry ?
Hehe if you're interested in Hindi
Nomid Íkorni-Sciurus
Ishank
Hehe if you're interested in Hindi
😂 someone has suggested me 😜 that's why I was asking
Roshan
😂 someone has suggested me 😜 that's why I was asking
If you understand Australian English then it's better to learn from "Cherno" as he has nuggets of wisdom 😁😁
Nomid Íkorni-Sciurus
it kinda does...
"so I decided to run several polls and to collect data to get some answers."
Nomid Íkorni-Sciurus
klimi
this is not really a very relevant source
well you can say that to any survey :)
Nomid Íkorni-Sciurus
Ishank
Why my laptop uses too much net.. Just by plugging with Hotspot it uses 3-4 gb within 10 min
Anonymous
What do you mean?
I was installed VS but i couldn't install C++ compiler
Nomid Íkorni-Sciurus
I was installed VS but i couldn't install C++ compiler
you install it via the visual studio installer itself
klimi
well... that is expected behaviour then
klimi
could be microsoft virus... or some virus
Nomid Íkorni-Sciurus
Yes
what'ts the issue then?
Anonymous
what'ts the issue then?
There is no issue. I just searched YouTube and found a video to learn how to install the compiler, then I did everything I had to do but it did not work
Nomid Íkorni-Sciurus
what exactly didn't work?
Nomid Íkorni-Sciurus
also, youtube is not a very good platform about technical stuff to my taste
klimi
don't trust developers
Anonymous
what exactly didn't work?
When I wrote some code, the compiler did not work