Box Dimensions

#include <iostream>
#include <iomanip>
using namespace std;

int main()
{
float A, G, V, Q;
const float SENTINEL = Q; //type Q to cease the loop
float length, width, depth;
char number;


cout << "Enter numbers for Surface Area(A), Girth(G), and Volume(V). To stop the loop, enter Q." << endl;
cin >> number;
while(number != SENTINEL)

cin >> length >> width >> depth; //read in dimensions
char input; //char to store input
cin >> input;


if (number == A)
A = 2*length*width + 2*width*depth + 2*length*width;
else if (number == G)
G = 2*(length*width) + depth;
else if (number == V)
V = length * width * depth;

{
cin >> length >> width >> depth; //read in dimensions
char input; //char to store input
cin >> input;

switch (input)
{
case 'v':
case 'V':

case 's':
case 'S':

case 'g':
case 'G':

}

system("pause");
return 0;
}


this is what i have, could someone give me tips and help me edit it, cause i don't know what I'm doing wrong..
1. Please use code tags. See http://cplusplus.com/articles/z13hAqkS/ for details.
2. You don't describe your problem. You must describe it for us to understand where you need help. I just don't go about running every piece of code in every thread. Actually, I rarely run code. Thankfully most of the time I can suggest solutions just by reading. So please state your problem clearly.
Topic archived. No new replies allowed.