Temperature function

I am posting an update to a previous post. I have gotten this far but I cannot for the life of me get the right code in to allow me to prompt the user for the start end and increment values. I could use some help. here is my code
#include <iostream>
#include <iomanip>
using namespace std;
int getMenuSelection(char& Tempconversion );
int getstartendandincremet (int& start, int& end, int& increment);
int ctof();
int ftoc();
int displayctoftable (int& start, int& end, int& increment);
int displayftoctable (int& start, int& end, int& increment);
int selection;

int main()
{
while ("keepgoing")
{
cout << "Temperature Conversions\n\n" << endl;
cout << "C: Convert form celsius to fahrenheit" << endl;
cout << "F: Convert form Farenheit to Celsius" << endl;
cout << "Q: Quit" << endl;
cout << "Enter your selection:" << endl;
cin >> selection;
cout << "enter Start, End, and Increment on one line separated by spaces: " <<endl;
break;
switch (selection)
{
case 'c':
case 'C':
break;
case 'f':
case 'F':
break;
case 'q':
case 'Q':
break;
default:
break;}
}


cin.ignore(2);
return 0;


}

void displayMenu(void)
{
cout << endl << endl << "Temperature Converter" << endl << endl;
cout << "C: Convert from Celsius to Fahrenheit" << endl;
cout << "F: Convert from Fahrenheit to Celcius" << endl;
cout << "Q: Quit" << endl << endl;
}
char getMenuSelection(void)
{
char selection;
cout << "Enter your selection: " ;
cin >> selection;
return selection;
}
void getStartEndAndIncrement(int& start, int& end, int& increment)
{

}


double CtoF(int C)
{

return 0;
}



double FtoC(int F)
{
return 0;
}


void displayCtoFTable(int start, int end, int increment)
{

cout << "print table header";

for (int i = start; i <= end; i+=increment)
{
cout << "print a row";
}

}


void displayFtoCTable(int start, int end, int increment)
{

cout << "print table header";

for (int i = start; i <= end; i+=increment)
{
cout << "print a row";
}

}
Why not to use std::cin <<:
http://www.cplusplus.com/forum/articles/6046/
I prefer to do it this way, I just need help or advice on what I should put in to prompt the user to put in the start end and increment values without skipping over it when the program is ran.
Topic archived. No new replies allowed.