Shh, I'm a Java programmer!
>_>
<_<
I was trying to preserve the original layout too.

I guess this would be a better program then.

Code:
float convert(float temp, bool toFahrenheit);

int main() {
    int choice;
    cout << "Choose your conversion:\n1. To fahrenheit\n2. To celcius";
    cin >> choice;
    bool toFahrenheit = (choice == 1);
    cout << "Enter your temperature: ";
    cin >> temp;
    cout << convert(temp, toFahrenheit);
}

float convert(float temp, bool toFahrenheit)
{
    if (toFahrenheit) return (1.8*temp)+32;
    else return (temp-32)/1.8;
}