STL을 공부중에 아래와 같은 예제를 보았습니다.
#include
#include
#include
using namespace std;
// function object to process the mean value
class MeanValue {
private
long num; // number of elements
long sum; // sum of all element values
public
// constructor
MeanValue () num(0), sum(0) { // <- 궁금증1) 이부분이 초기화를 하는것 같은데
// 함수내에서 num = sum = 0;으로 하는
// 것과 어떤 차이가 있나요?