cyimking's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
3 (0.01 per day)
Joined:
04-October 12
Profile Views:
40
Last Active:
User is offline Oct 05 2012 08:13 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   cyimking has not set their status

Posts I've Made

  1. In Topic: Exit out of while loop.

    Posted 4 Oct 2012

    View Postpbl, on 04 October 2012 - 08:35 PM, said:

    This is quite ridiculous code

    			else if (code == ',')
    			    count1 = ',';
    			
    			else if (code == '.')
    			    count1 = '.';
    			
    			else if (code == ':')
    			    count1 = ':';
    			
    			else if (code == '\'' )
    			    count1 = '\'';
    			
    			else if (code == '\"' )
    			    count1 = '\"';
    			
    			else if (code == '!' )
    			    count1 = '!';
    			
    			else
    				count1 = ' ';
    
    

    I am sure you can come with a more intelligent way, even if it is a switch with 6 case with fall through over each othe :^:


    Well when i use a switch statement the code doesn't function. Plus the program isn't a large program, although i know using a switch statement would be good practice.
  2. In Topic: Exit out of while loop.

    Posted 4 Oct 2012

    View Postfarrell2k, on 04 October 2012 - 08:33 PM, said:

    while user input != 'q', execute loop.


    while counts != 'q'? Is yes, then it still generate an error.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

cyimking hasn't added any friends yet.

Comments

cyimking has no profile comments yet. Why not say hello?