• Advertisement
Sign in to follow this  

Help with my function please

This topic is 4762 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
Advertisement
Sign in to follow this  

  • Advertisement