Search:

Type: Posts; User: SirPrattlepod

Search: Search took 0.01 seconds.

  1. Replies
    17
    Views
    1,058

    Yes, so with one very minor change you could use...

    Yes, so with one very minor change you could use that simple piece of code to generate indexes for your array (which is what Matticus suggested).
  2. Replies
    17
    Views
    1,058

    In that case I do think that the solution...

    In that case I do think that the solution Matticus alluded to would be allowable. Maybe add a comment saying that it assumes ASCII characters for brownie points hehe

    Umm, so... what do you suspect...
  3. Replies
    17
    Views
    1,058

    Look them up, yes. But make sure you're allowed...

    Look them up, yes. But make sure you're allowed to use them in your assignment; a lot of courses don't let you use language or library features not yet covered in class.

    The method Matticus...
  4. Replies
    17
    Views
    1,058

    True. Although doing it portably is also quite...

    True. Although doing it portably is also quite simple.

    E.g.


    const char *alphabet = "abcdefghijklmopqrstuvwxyz";
    //...
    //... normalize input etc
    //...
    pos = strchr(alphabet, searchchar);
  5. Replies
    17
    Views
    1,058

    What are max and min intialized to? I'm kind of...

    What are max and min intialized to? I'm kind of confused why they're initialized the way they are...
  6. Replies
    17
    Views
    1,058

    I can't even read that, as simple as it is,...

    I can't even read that, as simple as it is, sorry. The braces are not even consistent in their placement yet alone alignment. Choose a style and use it consistently **always**, and "speed reading"...
Results 1 to 6 of 6