Search:

Type: Posts; User: dmh2000

Search: Search took 0.02 seconds.

  1. Replies
    17
    Views
    7,519

    you should have 'break' before each case. right...

    you should have 'break' before each case. right now each case in the switch falls through to the next one. thats not causing the loop problem though.
    your while look only includes the printf on line...
  2. Replies
    17
    Views
    7,519

    switch (c) { if(isalpha(c) && c !=...

    switch (c)
    {
    if(isalpha(c) && c != ' ' && c != '\n')
    choice = 1;


    it is always going to skip this code before the first 'case'. and the code at line 28 will never be...
Results 1 to 2 of 2