Void Function Problems
Please explain why the hell this snippet of code is not displaying anything.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#include<iostream>
#include<iomanip>
using namespace std;
void askDimensions();
void calcPole(double poleLength);
int main()
{
void askDimensions();
}
void askDimensions()
{
cout << "Enter the length, width and height of the room in feet: ";
}
|
Last edited on
Because you are not calling your function anywhere. Here is the correct way to call a function: askDimensions();
Topic archived. No new replies allowed.