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!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

c/c++ question

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

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().



Sign In or Register to comment.