HELP!! Two questions from <<the c programming language>>



Exercise 1-9. Write a program to copy its input to its output,
replacing each string of one or
more blanks by a single blank.

Exercise 1-10. Write a program to copy its input to its output,
replacing each tab by \t, each
backspace by \b, and each backslash by \\. This makes tabs and
backspaces visible in an
unambiguous way.

Who could sent me the codes, Thanks very much! My email:
kakataka@xxxxxxxxx

.



Relevant Pages

  • Re: HELP!! Two questions from <>
    ... more blanks by a single blank. ... Exercise 1-10. ... replacing each tab by \t, ...
    (comp.lang.c)
  • Re: HELP!! Two questions from <>
    ... more blanks by a single blank. ... Exercise 1-10. ... replacing each tab by \t, ...
    (comp.lang.c)
  • Re: Find and replace tabs
    ... Public Sub SearchAndReplaceInStory(ByVal rngStory As Word.Range, ... Do Until (rngStory Is Nothing) ... >You know more about this than I do, but have you ever searched for a tab ... >up replacing it by Y? ...
    (microsoft.public.word.vba.general)
  • Re: tables in Word (Office 2003)
    ... I'm guessing the original document was produced with a monospaced font and spaces. ... To get anywhere with that, you're going to have to replace each run of spaces with a single tab character, making sure that each line/paragraph has the same number of tab characters. ... you can try searching for ^w and replacing with ^t. ...
    (microsoft.public.word.tables)
  • Re: Frustrated with data entry people
    ... On the Events tab should be an event named changeValue. ... I was replacing a CRLF *and* a Tab. ...
    (comp.databases.paradox)