0

How can I solve this problem. I've tried my very best but I can't

#include<iostream.h>
#include<iomanip.h>

int hours=3, hh, mm;

void firstorder();
void firstserve();
int main(){

    int time;

    cout<<"The first customer arrived at "<<firstorder<<endl;
    cout<<"The first customer was served at "<<firstserve<<endl;


return 0;
}


int firstorder(int){

    int mint;

    hh= mint/ 60;
    mm= 0   %60;

    cout<<hours<<":"<<setw(2)<<setfill('0')<<mm<<'\n';

    return mm;
}

int firstserve(int){

    int mint;

    hh= mint/ 60;
    mm= 2   % 60;

    cout<<hours<<":"<<setw(2)<<setfill('0')<<mm<<'\n';

    return mm;
}

Edited by pyTony: fixed formatting

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by jonsca
0

Firstly, please use code tags [code] //code goes here [/code]

Your function definitions (down below) don't match your prototypes at all.

Also, take a look at your assignment and figure out what your functions are supposed to do (you have an uninitialized variable which you divide by a constant, etc., it's not right). No one will do this for you, but we can't even begin to help you if we don't have any idea what your objective is.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.