Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/22/08 11:07
Read: times


 
#160196 - Think about it
Responding to: ???'s previous message
First, you need to decide how you are going to represent your string:

  • 'C' does it by putting a zero byte to mark the end of the string;


  • Pascal (I think) does it by storing the length as well as the text of the string.


  • Obviously, both methods are going to require a loop - the only difference is in how you know when the loop is done.

    You should be able to take it from there...

    List of 3 messages in thread
    TopicAuthorDate
    String comparation            01/01/70 00:00      
       Think about it            01/01/70 00:00      
       One character at a time            01/01/70 00:00      

    Back to Subject List