ColdFusion

Moderators: None (Apply to moderate this forum)
Number of threads: 19
Number of posts: 37

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
c/c++ question Posted by colaiuda on 15 Jan 2006 at 2:00 PM
This message was edited by colaiuda at 2006-1-15 19:25:29

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.




Report
Re: c/c++ question Posted by gaatif on 11 Nov 2008 at 5:05 AM
int hr, min, sec;
getTime(&hr, &min, &sec);



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.