Ad
Code
Diff
  • auto AreaOfTriangle = [](int a, int b) {return (a * b) / 2;}; // Get lambda'd
    • float AreaOfTriangle(float w, float h) {return (w * h) / 2;} //Get one-lined
    • auto AreaOfTriangle = [](int a, int b) {return (a * b) / 2;}; // Get lambda'd