BinaryByter
it might be a bit technical
Anonymous
😂 I feel like I owe a lot of pizza to some people here on the group
BinaryByter
xD
BinaryByter
don't worry ;)
Dima
Who said pizza
Dima
🍕 I’ll pm you my address
BinaryByter
Anonymous
😂😂😂
BinaryByter
xD
Dima
xD
Are you still interested how clusters discover each other?
klimi
Hmmm
Dima
1. Multicast 3. DNS discovery
BinaryByter
multicast?
BinaryByter
dns discovery?
Dima
Multicast
BinaryByter
whats that?
Dima
Wtf....
BinaryByter
yea, never heard
Dima
Tcp/ip stuff
Dima
Broadcast, Unicast, Multicast
BinaryByter
be more precise
Dima
There’s api in C for that
Dima
You join the multicast group, and when someone sends a packet to this group, everyone receives that
BinaryByter
Oh
BinaryByter
nice
Anonymous
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; std::vector<int> elements; elements.push_back(a); elements.push_back(b); elements.push_back(c); std::sort(elements.begin(), elements.end()); cout<<elements; return 0; }
Dima
Wtf
BinaryByter
you have to print out each item individually
Anonymous
I don't know how Dima. Sorry!
Anonymous
Ohh so I have to use a for loop for instance right?
BinaryByter
I don't know how Dima. Sorry!
put ``` around your code
Anonymous
😱😱😱 Thank you!
Anonymous
yeah
klimi
So active here lol
BinaryByter
BinaryByter
i like this, btw
Anonymous
Haha
BinaryByter
this isn't an "avoid", btw
BinaryByter
this isn't a "try not to"
BinaryByter
this is a "don't"
Anonymous
Yeah^^
BinaryByter
the C++ core guidelines are fun to go through :D
Mihail
#include <iostream> #include <algorithm> #include <vector> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; std::vector<int> elements; elements.push_back(a); elements.push_back(b); elements.push_back(c); std::sort(elements.begin(), elements.end()); cout<<elements; return 0; }
Also all if the standard library is in the std namespace, which you access by either: 1. Prefixing with std:: 2. using namespace std; But I'd strongly encourage you to use the first method as it's more readable and there won't be a conflict if you have a function or class with the same name as one from the std namespace.
Mihail
So you should remove that using namespace std;
Mihail
And add std:: in front of cin and cout as those are from the std namespace
Anonymous
Thanks 😌
Anonymous
I see that tutorials don’t bother saying you that
Dima
topkek
Anonymous
I'm human by the way, debatable but human nonetheless
klimi
We protect this group by that confirmation... This way we don't have spam bots attacking :)
klimi
Very handy... From that Chinese incident
Anonymous
Ah makes sense. Elegant solution to a potentially pervasive problem
venkat
Hi
venkat
Is anybody there?
Anonymous
Yeah dude
venkat
Need some help
Anonymous
Shoot
venkat
If you have a projects
venkat
I need urgently if may be a old project
Anonymous
Get on Git
klimi
Pm?
klimi
Pm me
venkat
I have a mini project in my college
Dima
so? create a new one
Dima
this is bad if you have no ideas
venkat
I am a beginner bro
Dima
that’s not a reason
BinaryByter
I am a beginner bro
at this point you have two options