hi,
I am trying to understand some sources and found the following:
So I would like to know the difference between declaring task as above andCode:// a task has name and time. struct task { task(const string& inname, const LONGLONG intime): name(inname), time(intime) {} string name; LONGLONG time; };
Or is there any rule or convention I should follow?Code:task(const string& inname, const LONGLONG intime){ name = &inname; time = intime; }
thanks in advance