"It's not just a good idea. It's the law!
In C, switch's and strings don't mix.
Use:
if (!strcmp(myval, "S1") {...}
else if (!strcmp(myval, "S2") {...}
etc"
-- ptrussell_nc
http://www.sqaforums.com/showflat.php?Cat=0&Number=473868&Main=473575
a string constant
C doesn't have String data-type, so don't use it.
Language dependent. In C, for example, there no string as such, but you can use function strcat to concatenate zero-terminated character-sequences.
You can use "string" class in C++ for string operations or you may use c style string functions as well. #include <string> String class in C++ provides all basic function to operate on strings. you may details descriptin at http://www.cplusplus.com/reference/string/string/
special character in c language are as follows~ ' ! @ # % ^ & * () _ - + = | \ {} [] : ; " <> , . ? /
Use the atoi() or atol() function.
a string constant
C doesn't have String data-type, so don't use it.
Language dependent. In C, for example, there no string as such, but you can use function strcat to concatenate zero-terminated character-sequences.
You can use "string" class in C++ for string operations or you may use c style string functions as well. #include <string> String class in C++ provides all basic function to operate on strings. you may details descriptin at http://www.cplusplus.com/reference/string/string/
special character in c language are as follows~ ' ! @ # % ^ & * () _ - + = | \ {} [] : ; " <> , . ? /
its just like a string of c++
I do use am a programmer, because C-language.
:D string: D D E G F E switch to a string: A A A B switch to d string: F G E E E G F E D : switch to a string: D C B A 1ST ENDING- switch to a string: D C B A switch to d string: G F E 2ND ENDING- d string: D switch to a string: A switch to d string: E F D D D D E G F E A A A B F G E E E G F E D D C B A G F E D D E G F E A A A B F G E E E G F E D A E F D D
console.wrikerle("""");
The use of the reverse string in C program is used to reverse the letters in the string. An example would be reverse me would be reversed to em esrever.
switch is a mechanism provided in the C language through which we can select one among various constant option based on value of a single event.