[question] switch/class/struct
I'll just give a big beefy example :
Code:
#include "stdafx.h"
#include <iostream>
using namespace std;
void ChoosePosition(sex positions);
enum sex
{
doggystyle,
butterfly,
anal,
missionary,
};
int _tmain(int argc, _TCHAR* argv[],sex positions)
{
ChoosePosition(sex positions);
return 0;
}
void ChoosePosition(sex position){
switch(position){
case(doggystyle):
cout<<"ROUGHH!"<<endl;
case(anal):
cout<<"kinky."<<endl;
break;
case(missionary):
cout<<"normal i guess."<<endl;
break;
case(butterfly):
cout<<"I dont even know what this is..."<<endl;
break;
default:
cout<<"whatever you want it to be baby"<<endl;
break;
}
}
(my issue is that this code is wrong. I need to figure out how to properly call a function, if that function contains variables from a struct, class, enum or basically anything.) <--- Not sure if this makes sense .
actually just so it's easier for me to understand cuz my brain isnt workin so great right now, i basically need to know how to call ChoosePosition(sex positions); in my main function in this situation.