由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - [合集] a simple c question
相关主题
C array关于Makefile的一个问题
A C++ compiler related interview question这句话是为什么呢?
*** help needed! on MATLAB GUI ***spent a lot of time try to compile boost
How to tell gcc stop compiling.一个qt3在Windows上的问题
inheritence problemambiguous operators in c++
A tech question (转载)关于C++ STL编译的疑问
An interesting C++ compile errorquestion for C++ constant
谁来解释一下这个是compiler问题吗?a question about CAST
相关话题的讨论汇总
话题: switch话题: oct话题: simple话题: question话题: char
进入Programming版参与讨论
1 (共1页)
b***y
发帖数: 2799
1
☆─────────────────────────────────────☆
slipper (ohh) 于 (Thu Oct 6 23:18:53 2005) 提到:
I want to use switch to compare a (char c[10]) variable)
i use: switch (c){
case "k":...
}
I received compilation error said I can not pass c as switch statment
parameter
. how could I compare if a string = sth by using switch statement? Thanks
☆─────────────────────────────────────☆
queue (秦岭) 于 (Fri Oct 7 00:11:10 2005) 提到:
switch statements dpes NOT accept char array ty
1 (共1页)
进入Programming版参与讨论
相关主题
a question about CASTinheritence problem
c++标准函数传递一问A tech question (转载)
C++ 的 问题An interesting C++ compile error
a simple question about constructor谁来解释一下这个是compiler问题吗?
C array关于Makefile的一个问题
A C++ compiler related interview question这句话是为什么呢?
*** help needed! on MATLAB GUI ***spent a lot of time try to compile boost
How to tell gcc stop compiling.一个qt3在Windows上的问题
相关话题的讨论汇总
话题: switch话题: oct话题: simple话题: question话题: char