Exit statement

When you must stop a program unconditionally, you can use the exit statement:

void Process(int errorCount)
{ 
	if (errorCount > 10)
	{	
		exit; 
	}
}