Sign in to follow this  

Help with my function please

This topic is 4688 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

WHY won't this function work? Simple enough question.:)
#include <iostream>
#include <stdlib.h>

using namespace std;
void test(int star);

int main(){

test(2);

system("PAUSE");
return 0;
}


void test(int star){
switch(star){
 //111111111111111111111111111111111111111111111111111111
 case 1:
cout << "1";
 break;
 //222222222222222222222222222222222222222222222
  case 2:
 cout << "2";
 
 break;
 }
  

Share this post


Link to post
Share on other sites

This topic is 4688 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this