subject

Define a function SetTime, with int parameters hoursVal and minutesVal, that returns a struct of type TimeHrMin. The function should assign TimeHrMin's data member hours with hoursVal and minutes with minutesVal. #include
using namespace std;
struct TimeHrMin {
int hours;
int minutes;
};
/* Your solution goes here */
int main() {
TimeHrMin studentLateness;
int hours;
int minutes;
cin >> hours >> minutes;
studentLateness = SetTime(hours, minutes);
cout << "The student is " << studentLateness. hours << " hours and " << studentLateness. minutes << " late." << endl;
return 0;
}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 01:00
Answer these and get 40 points and brainliest
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
question
Computers and Technology, 24.06.2019 14:00
In the microsoft® access® and microsoft excel® programs, the ribbon contains tabs that are divided into with like tools in them. parts groups containers bunches
Answers: 1
question
Computers and Technology, 24.06.2019 17:00
The length of time that a slide appears before automatically advancing to the next slide can be set in the timing group under the transitions tab. transition to this slide group under the transitions tab. timing group in the master slide view. transition to this slide group in the master slide view.
Answers: 1
You know the right answer?
Define a function SetTime, with int parameters hoursVal and minutesVal, that returns a struct of typ...
Questions
Questions on the website: 13722361