View unanswered posts | View active topics It is currently Mon Sep 21, 2020 2:12 pm






Reply to topic  [ 2 posts ] 
The switch case statement 
Author Message
Rookie

Joined: Fri Aug 07, 2009 10:03 pm
Posts: 1
Post The switch case statement
Can subroutines be used within the case statement ?
An example :
switch (turnval)
{
case 1:
backup();
seekright();
turnval=0;
break;


Fri Aug 07, 2009 10:28 pm
Profile
Expert
User avatar

Joined: Tue Oct 14, 2008 7:16 pm
Posts: 171
Location: Investigating an unidentified ship sighted in Sector 31428
Post Re: The switch case statement
Yes.

_________________
Captain, Head programmer, School of the Arts, Silverbots Robtics Team #2890
Code:
using namespace System;
using namespace Genius;
using namespace Personality;
public ref class Nerd : Geek, IAnserable
{
    Geek::Type brainMode = Geek::Type::Programmer;
}


Fri Aug 07, 2009 11:32 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.