How do I have the display function display the info within its function body? How to call it? The function is filled with the data I want outputted yet how do I call it and display the contents of the function.
int main()
{
InputValue();
displayinfo();
}
void displayinfo(int d, array<char, 7> b)
{
for (int k = 0; k < d; k++)
{
cout << "Semester: " << b[k] << endl;
}
}
Aucun commentaire:
Enregistrer un commentaire