Write function headers for the functions described below:
(i) The function check has two parameters. The first parameter should be an integer number and the
second parameter a floating point number. The function returns no value.
(ii) The function mult has two floating point numbers as parameters and returns the result of
multiplying them.
(iii) The function time inputs seconds, minutes and hours and returns them as parameters to its
calling function.
(iv) The function countChar returns the number of occurrences of a character in a string, both provided as
parameters.
//1)
void check(int n1, float n2)
//2)
float mult(float n1, float n2)
//3)
void time(int &s, int &m, int &h)
//4)
int countChar(string s, char c)
Comments
Leave a comment