I got your program to compile by changing the first 5 lines of the program to:
1 2 3 4 5 6
#include <iostream> //iostream.h could not be found on my system
usingnamespace std; //have to use this or do std::cout, std::cin, etc.
int main() //main must return an int, not void
{
int i; //switch construct can only take integers, not floats
float a,b;