Struct in C++
Difference between en1 and en2, changed 16 character(s)

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) {}↵
}↵
~~~~~↵

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English Kole 2016-04-01 16:19:28 16
en1 English Kole 2016-04-01 16:18:02 274 Initial revision (published)