What is colon mark in struct?

Revision en1, by 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?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English khanhdungtrinh 2023-08-27 12:39:41 330 Initial revision (published)