Go to Post FIRST may very well be the healthiest drug on the market. - Herodotus [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 20-01-2008, 21:27
ebarker's Avatar
ebarker ebarker is offline
Registered User
AKA: Ed Barker
FRC #1311 (Kell Robotics)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Kennesaw GA
Posts: 1,437
ebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond reputeebarker has a reputation beyond repute
Re: switch vs. if... else if. More efficient?

The switch statement essentially constructs the same code as a stack of if/then/else statements.

The switch is useful because it is a way of documenting code and representing it as a 1 of n selector.

This is a plenty fast processor for what you are probably going to try and do so I wouldn't worry about it.

Worrying about these types of things for your i/o routines generally isn't necessary as it was say 30 years ago.
__________________
Ed Barker
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Has Being In FIRST Made You More Brave - More Confident? JaneYoung General Forum 25 08-05-2007 10:11
Who else is... Jetgrindradio00 General Forum 2 03-03-2007 11:28
Get more women to SWITCH! Mikell Taylor General Forum 8 05-04-2006 23:30
Need Help Wiring Micro Switch/Limiting Switch Windward Electrical 2 07-02-2006 18:26
Most Efficient Big Ball Getter??? Team 384 archiver 2001 18 24-06-2002 02:39


All times are GMT -5. The time now is 18:36.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi