Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 4th, 2003, 01:39 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Special characters program

What the program actually does is that it searches an input file containing special characters contained in some words(i.e Ô , * and #352; ) .After finding such words it replaces those characters with this (i.e \o^ , \e^ and \sh respectively).I hope you will have the picture now.

SPECIFICATION

Deal with input or check whether input has the following special characters, i.e. read a file of text containing a list of words and check for the occurrence of these characters:

Ô or ô * as used in the word "pôô"

* or * - as used in the word "r*ma"

#352; or #353; - as used in the word "le#353;a#353;a"

If a word has any of these character replace each character by the
following characters respectively:

ô with \o^

* with \e^

#353; with \sh

I would appreciate it if you could could have a short program to sort
this issue out.
Let me say that it should be like this:

input -> words.doc
pôô r*ma le#353;a#353;a aôwô b*thô

output -> c:\output.txt
p\o^\o^ r\e^ma le\sh;a\sh;a a\o^w\o^ b\e^th\o^


Yes the text file is ASCII format(that "#352;" represent an S with a cap on top).It is Northern Sotho language(South African language)
Reply With Quote
  #2 (permalink)  
Old June 4th, 2003, 01:43 AM
Registered User
 
Join Date: Jun 2003
Location: Brussels, , Belgium.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ASCII or UNICODE characters ?
Reply With Quote
  #3 (permalink)  
Old June 4th, 2003, 09:07 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ASCII characters
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Special Characters not working for me Russ XSLT 1 June 18th, 2008 05:21 PM
storing special special characters in nvarchar... ACE2084 SQL Server 2000 2 February 9th, 2005 11:45 AM
SPECIAL characters... IIF MER78 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 December 23rd, 2004 05:32 PM
special characters lian_a Classic ASP Basics 3 June 23rd, 2004 05:16 AM



All times are GMT -4. The time now is 02:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.