c/c++ question - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

c/c++ question

colaiudacolaiuda Posts: 1Member
[b][red]This message was edited by colaiuda at 2006-1-15 19:25:29[/red][/b][hr]
Hello.

I am working on my assigment in C++ and I found a program called clocktype

One of the class member is somewthing like this
void getTime(int&, int&, int&);

and the constructor is like this

void ClockType::getTime(int& hours, int& minutes, int& seconds) {
hours = hr;
minutes = min;
seconds = sec;
}

Looking in the function MAIN to find out how to process this constructor I could not find any line to call getTime, can some body help me out to understand what it does and how to call it from main().

Regards.




Comments

Sign In or Register to comment.