i know
but how do you use an array as the condition, how will the code look?Code:(condition) ? true-clause : false-clause
For example i want to write
thumb and again will replace something else. Don't worry about them.Code:string numbers[5] = {"one","two","three","four","five"}; numbers == "one" ? thumb : again;
how do i say that if the numbers array is representing "one" then it replaces as "thumb", otherwise "again".



1Likes
LinkBack URL
About LinkBacks


