Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,269 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,465 people online right now. Registration is fast and FREE... Join Now!




Grouping

 
Reply to this topicStart new topic

Grouping

Umbrella
15 Oct, 2006 - 06:33 PM
Post #1

New D.I.C Head
*

Joined: 13 Oct, 2006
Posts: 49


My Contributions
Is there anyways i can group a set of numbers or letters and test them all at once for instance i want to test to see if a number is not equal to 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G is there anyway i can group all those into one thing called like HexadecimalDomain then just test the number against hexadecimal domain.
so instead of

number[index] != 0 && number[index] != 1 etc etc.

i can just do number[index] != hexadecimaldomain.


THANK YOU!
User is offlineProfile CardPM
+Quote Post

gregoryH
RE: Grouping
16 Oct, 2006 - 12:40 AM
Post #2

D.I.C Regular
Group Icon

Joined: 4 Oct, 2006
Posts: 417


Dream Kudos: 50
My Contributions
QUOTE(Umbrella @ 15 Oct, 2006 - 07:33 PM) *

Is there anyways i can group a set of numbers or letters and test them all at once for instance i want to test to see if a number is not equal to 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G is there anyway i can group all those into one thing called like HexadecimalDomain then just test the number against hexadecimal domain.
so instead of

number[index] != 0 && number[index] != 1 etc etc.

i can just do number[index] != hexadecimaldomain.


THANK YOU!

look up "strspn ( const char * string1, const char * string2 );" on the internet....

besides, I can't tell you anymore unless you post your code
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 07:45PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month