|
From: | Roy Menachem |
Subject: | Switch statement |
Date: | Sun, 16 Oct 2011 10:21:44 +0200 |
Hi, For some reason when I use switch case statement by comparing strings, it doesn’t work. Any idea why? Is there any known problem with a string? Example: i=1; while(i<=parameters_length) switch (txt_data(i,19)) ##txt_data is array of strings case 'T1_ps' T1=num_data(i,9); case 'T2_ps' T2=num_data(i,9); case 'Min_data' min_data=num_data(i,9); otherwise printf("no value\n"); endswitch i++; endwhile Thanks, Roy Roy Menachem, Marvell Israel This message may contain confidential, proprietary or legally privileged information. The information is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone or by e-mail and delete the message from your computer. |
[Prev in Thread] | Current Thread | [Next in Thread] |