What is colon mark in struct?

Правка en1, от khanhdungtrinh, 2023-08-27 12:39:41

This code is from: https://codeforces.net/blog/entry/86731 ~~~~~ struct Line { data_t a, b;

Line() : a(0), b(-inf) {} Line(data_t a, data_t b) : a(a), b(b) {}

data_t get(data_t x) { return a * x + b; } }; ~~~~~

I have no idea what the colon marks in the code means?

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский khanhdungtrinh 2023-08-27 12:39:41 330 Initial revision (published)