function error
hello guys i'm trying to resolve this, for a while but i couldn't please healp here's my source code: #include <iostream> using namespace std; float fonction (float x , float y , char n); { ---------------------// error "Expected unqualified-id" float sum; switch ('n') { case '+' : sum =x+y; cout<<" le resultat de :"<<x<<"+"<<y<<" = "<<sum << endl; break; case '-' : sum =x-y; cout<<" le resultat de :"<<x<<"-"<<y<<" = "<<sum<< endl; break; case '*' : sum =x*y; cout<<" le resultat de :"<<x<<"*"<<y<<" = "<<sum<< endl; break; case '/' : sum =x/y; cout<<" le resultat de :"<<x<<"/"<<y<<" = "<<sum<< endl; break; default '+': sum =x+y; } return sum; } int main(int argc, const char * argv[]) { // insert code here... float a=12; float b=17; float fonction (float a ,float b, char (n)) ; return 0; }