Is their a way to allow a function template to use private variables in a class. I need to have my template function modify certain private variables in a class. Can anyone point me in the right direction. I would be extremly greatful if anyone can show me or point me into the right direction.
S
Supaflyfrank
@Supaflyfrank
Posts
-
Allowing a Template Function to access a private variables in a class. -
Time functionI will look in to see if their is any structure already made. But I was more thinking of a array like this: int Time[3]; Time[0] Would be hours Time[1] Would be minutes and Time[2] Would be seconds.
-
Time functionI am wondering how can I create a simple function that will return the current second,minutes and hour in a 3 dimensional int array. I been looking at the information on ctime in windows to see how I could do this but I havent found what I needed. I dont want the function to pause or anything I just want it to simply return the second, minutes and hours.