Search:

Type: Posts; User: King Mir

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    1,122

    Yeah I read string, and assumed it was...

    Yeah I read string, and assumed it was std::string, not realizing that this is the C forum. In c++ you can compare strings like that, but not C.
  2. Replies
    5
    Views
    1,122

    Like this. numbers[i] = numbers[i] == "one" ?...

    Like this.

    numbers[i] = numbers[i] == "one" ? thumb : again;

    Note that numbers cannot represent "one", because it's an array of strings. numbers[i] can.
Results 1 to 2 of 2