Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

why wont a function stop C++

//check location of return statement

//Add return statement after void
case '2':
		void displayInfo();
		return displayInfo();
		break;

//Not after switch closes, as then it will return nevertheless
 
PREVIOUS NEXT
Tagged: #wont #function #stop
ADD COMMENT
Topic
Name
3+2 =