#include <iostream>
#include <cstdlib>
#include <cmath>
using namespace std;
int name()
{
int a,b, wybor;
cout <<"Witaj" ;
cout << "menu wyboru" << endl;
cout << "[1] Dodawanie" <<endl;
cout << "Twoj wybor" << endl;
cin >> wybor;
switch (wybor)
{
case 1:
cout << "podaj pierwsza liczbe";
cin >> a;
cout << "podaj druga liczbe";
cin >> b;
cout << "Twoj wynik to" << a + b <<endl;
}
system("pause");
return 0;
}
0
1
Nie masz funkcji main(), która jest kluczowa. Zmień name
na main
i powinno działać.