MilkBeforeCereal
main thing about bubble sort is its simplicity and low difficulty to implement
Ludovic 'Archivist'
main thing about bubble sort is its simplicity and low difficulty to implement
Well quick sort is relatively simple but not very intuitive
MilkBeforeCereal
choosing the pivot element can be tricky
Anonymous
Anonymous
Hello, there is a a way to copy one object to another without defining copy constructor and copy operator?
Anonymous
:D
KK
https://t.me/AmazonRewardbot?start=r0837229968
Anonymous
I think no, but maybe somebody know...
Anonymous
spam?
Yes I think
Anonymous
I think no, but maybe somebody know...
yah copy constructor introduced for that reason na
Anonymous
In the case of very easy objects, this is already performed by compiler that define these operators
Anonymous
many thanks :)
Anonymous
yes ok, a little doubt
i don't know exactly whether there is a way or not someone may clarify you
Ludovic 'Archivist'
choosing the pivot element can be tricky
It is the only tricky part. It is not always so complicated, it always comes to the usecase and the sortedness of the data
Jalal
hello i have a function called ScriptAdd LPDISPATCH CXYScriptItem::ScriptAdd(VARIANT objXY) { } the value of objXY is an CXYScriptItem object and i want to get it can anyone help me please ?
Anonymous
Please, anybody know assimp library?
Anonymous
I would like to see an usage example of the progresshandler
Talula
I would like to see an usage example of the progresshandler
Sorry… don’t understand what you’re talking about care to explain some other way?
Anonymous
well
Anonymous
do you know assimp library?
Anonymous
inside that library there is a class Progresshandler
Anonymous
I would like to use it externally, as I need
nureenfaqihah
Hello 👋🏻 Does anyone know how to calculate variance for c programming without using array?
Anonymous
Do any one know how we can see the .i file which is made while we compile our .c file
Anonymous
????
Ilya
hello i have a function called ScriptAdd LPDISPATCH CXYScriptItem::ScriptAdd(VARIANT objXY) { } the value of objXY is an CXYScriptItem object and i want to get it can anyone help me please ?
This is not C++, this is COM/OLE This is hardly anyone knows here. If this is an object, you usually have to create it via some OLE interface and pack into VARIANT
Ilya
Do any one know how we can see the .i file which is made while we compile our .c file
There is a compiler switch for it, which one is in your compiler docs.
Anonymous
It is very rarely needed to see preprocessor output
Is there any software to see the *.i file...
Anonymous
????
Anonymous
Anonymous
@isitlouis said: Hi, could someone help me on why the execution of this code meant to list files in a drive does not go beyond checking for the NULL pointer https://pastebin.com/NPtMSn5S
Anonymous
Yes, less, vi, emacs, nano
Can you please send me the download links of these software????
Ilya
Can you please send me the download links of these software????
These utilities are installed in your operating system. What os do you have?
Anonymous
Hi, good afternoon :D
Ilya
Windows
Then you can use other utilities like type , notepad , or your favorite text editor
Ilya
How??
Just open the file in notepad, for example
Javi
How??
C++ files are just plain text files, you can edit them like any other text file
nureenfaqihah
Hello 👋🏻 Does anyone know how to calculate variance for c programming without using array?
olli
Hello 👋🏻 Does anyone know how to calculate variance for c programming without using array?
if you want an answer provide more context. You don't need an array for the computation, you rather need an input array to provide a general implementation.
nureenfaqihah
nureenfaqihah
This is the progress of my coding now
Augmented
https://www.youtube.com/watch?v=u_ij0YNkFUs
Augmented
we can expect C++70 around 2120
Augmented
So?
I hope it wouldn't cease to develop, as language and will never be phased out... nowadays a lot of modern languages are promoted, but i feel it is a temporary trend, and people will turn back to roots, when AI things become too complicated...
Ariana
ai becomes too complicated wut
Talula
we can expect C++70 around 2120
Programming would be done using AI to interprette our thoughts so machine could know what we are thinking, I personally don’t think anyone would have a programming language then and everyone would use natural language to program things at the sametime it’ll be thoughts rather than speech or typing.
Anonymous
https://www.hackerrank.com/contests/codeft19-bugoff/challenges/theleaderboard
Anonymous
So, I'm doing this problem and
Anonymous
I'm doubting if I've rightly written the code.
Anonymous
https://pastebin.com/SbXDVv0X
Anonymous
There's a simple glitch and I can't figure what else needs to be changed in the code.
Anonymous
Can anyone figure it out for me?
Pavel
https://pastebin.com/SbXDVv0X
Is it necessary to use raw arrays? Why not use vector?
Anonymous
Is it necessary to use raw arrays? Why not use vector?
If you open the link, you'll see that the code is written for us in advance. We just need to change a bit here and there.
Pavel
Ok, I see
Anonymous
I've just changed from ar[ i ].ind to ar[ i ].id inside the last for loop inside main. What else do I need to change?
Anonymous
I hope that the "cmp" inside the sort() works in the way that it lets greater element go before the smaller element and if they are equal then it doesn't change the order.
Pavel
Very harsh rules. As I see it's bubble sort algorithm. I would try to change it to more time efficient algorithm, but it probably would take more than 3 lines changed (also not sure it will win some time if the array is small)
Pavel
But that's more than 3 lines change
Anonymous
But that's more than 3 lines change
Then you are thinking the wrong way.
Pavel
NOTE :: YOU ARE ALLOWED TO MAKE CHANGES IN ATMOST 3 LINES. NO NEW LINES CAN BE ADDED / DELETED. FOR EACH LINE, THE NUMBER OF SEMICOLONS MUST NOT CHANGE I mean if you replace this code with std::sort you'll violate this rule. At least if I understand it correct
Pavel
But yeah, std::sort would be better than doing it manually
Anonymous
NOTE :: YOU ARE ALLOWED TO MAKE CHANGES IN ATMOST 3 LINES. NO NEW LINES CAN BE ADDED / DELETED. FOR EACH LINE, THE NUMBER OF SEMICOLONS MUST NOT CHANGE I mean if you replace this code with std::sort you'll violate this rule. At least if I understand it correct
Sir, You don't need to change more than 3 lines in the code given in the editor. That rule is not for the code given in the description. The code given in the description shows how the functionality should be.
Anonymous
You just need to focus on the code given in the editor and that's what needs to hold the condition given in the question.