MilkBeforeCereal
main thing about bubble sort is its simplicity and low difficulty to implement
Ludovic 'Archivist'
MilkBeforeCereal
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
Anonymous
:D
KK
https://t.me/AmazonRewardbot?start=r0837229968
Anonymous
I think no, but maybe somebody know...
Anonymous
Anonymous
Anonymous
In the case of very easy objects, this is already performed by compiler that define these operators
Anonymous
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
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
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
Ilya
Ilya
Anonymous
Anonymous
????
Ilya
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
Talula
Anonymous
Anonymous
Hi, good afternoon :D
Ilya
Windows
Then you can use other utilities like type , notepad , or your favorite text editor
Anonymous
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
Anonymous
nureenfaqihah
Hello 👋🏻
Does anyone know how to calculate variance for c programming without using array?
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
Anonymous
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.
Augmented
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
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
Anonymous
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
Liam
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.