I saw in someone's code declaration for struct like this, but I forgot how exactly. Does somebody maybe know how it should be written correctly?
struct Interval
{
int l, r;
Interval() l(), r() {}
Interval(int _l, int _r) l(_l), r(_r) {}
}
I saw in someone's code declaration for struct like this, but I forgot how exactly. Does somebody maybe know how it should be written correctly?
struct Interval
{
int l, r;
Interval() l(), r() {}
Interval(int _l, int _r) l(_l), r(_r) {}
}
Auto comment: topic has been updated by Kole (previous revision, new revision, compare).
Thank you so much!