Struct in C++

Правка en1, от Kole, 2016-04-01 16:18:02

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() l(_l), r(_r) {}
}
Теги struct, declaration, c++

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Kole 2016-04-01 16:19:28 16
en1 Английский Kole 2016-04-01 16:18:02 274 Initial revision (published)