here it is:
#include <iostream>using namespace std;int avoid subroutine(){}void subroutine2(){}int main(){cout <<"input number : ";cin >> a;if(a==1){ subroutine;}if(a==2){ subroutine 2;}return 0;}
or at least it looks something like that, but the most important parts are there.
the problem is that it ignores the if statements completely. trough trial and error i have found out that the integer a gets the value i give him 1 or 2 but it doesn't resolve the IF statements, it just skips them and gets to the end.
i have no idea why, maybe you can help me.