Good day everyone! Why in this code it is impossible to switch from one function to another using the goto method? The compiler writes that the functions bar, fellodd and Elochka are not defined. Even if the program was able to start, it ends without executing the functions. Somewhere even read that it is impossible to do. (According to the idea of the functions, certain melodies should have been played (Beep). Dots-replacing parts of the code that are not related to the problem.
void bar( ); void feelgood( ); void elochka( ); void improv( ); int main() { ... k=getch(); switch (k) { case 1 : goto bar(); case 2 : goto feelgood(); case 3 : goto elochka(); default : return 0; } // switch return 0; }// main void elochka() { ... } void bar( ) { ... } void feelgood( ) { ... }