| | |
switch case problem with characters
Thread Solved |
•
•
Join Date: Feb 2008
Posts: 34
Reputation:
Solved Threads: 0
Hello guys,
How can I make a switch case using an array of chars.
Ex:
Is that possible in C?
Thank you!
How can I make a switch case using an array of chars.
Ex:
C Syntax (Toggle Plain Text)
char input[50]; // my code here switch ( input ) { case "abc": // do something break; case "xyz": // do otherthings break; }
Is that possible in C?
Thank you!
![]() |
Similar Threads
- Reputed number problem switch case statement (VB.NET)
- scientific calculator using switch case statement (C++)
- Switch Case Problem (C++)
- switch case (C)
- Switch Case Options (C#)
- Help with switch/case statement navigation (PHP)
- Switch Case Statement (Java)
- switch/case statement (C++)
Other Threads in the C Forum
- Previous Thread: read e-mail attachment with POP3
- Next Thread: passing structuce to function as an argument
| Thread Tools | Search this Thread |
* adobe ansi api array arrays binarysearch calculate centimeter char character cm convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork forloop frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling gtkwinlinux hacking highest homework i/o inches incrementoperators intmain() iso km linked linkedlist linux linuxsegmentationfault list locate logical_drives loopinsideloop. lowest match matrix microsoft mqqueue mysql oddnumber odf open opendocumentformat openwebfoundation pattern pdf performance pointer posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprograming socketprogramming stack standard strchr string suggestions test unix urboc user variable voidmain() whythiscodecausesegmentationfault win32api windows.h






