![]() |
|
#1
|
|||
|
|||
how to replace an a b c d letters with the tilde key?hey guyz back again unfortunately sorry about that. it's my project and it's due tonight, and i am like stuck on this. i tried all possible ways i know but no luck. hope you guyz can help. i have uploaded 2 files. first refer to question no 1. second refers to q no 2.
my first question is in the first file out.txt how do i erase the numbers(1,2,3 ...) infront of every sentence? my second question is in the 2nd file mc.txt how do i replace all a b c d choice with a tilde key. so instead of saying Washington is ... a. state b. city c. continent d. colony, i want it to be Washington is a .... ~state ~city ~continent ~colony here's my code CPP / C++ / C Code:
|
|
#2
|
|||
|
|||
Re: how to replace an a b c d letters with the tilde key?EDITED CODE
CPP / C++ / C Code:
|
|
#3
|
||||
|
||||
Re: how to replace an a b c d letters with the tilde key?In the true/false file, one way to eliminate the leading #'s ( and the period ) would be to change this line:
CPP / C++ / C Code:
for explanation) CPP / C++ / C Code:
Code:
EDIT: As to the 2nd Q, it'll be similar in nature to what was done above, only seeking the a. b. c. d. (followed by a tab character) For example find("a.\t"), and then do a replacement with the tilde. HTH^2 __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! Last edited by TurboPT : 11-May-2008 at 18:54.
|
|
#4
|
|||
|
|||
Re: how to replace an a b c d letters with the tilde key?hey thanks a lot budd that was great."To discard an old computer safely, put it in a landfill.{F}{}}
Application software serves as the interface between the user, the system software, and the computer hardware.{F}{}} Programmers develop programs or write the instructions that direct the computer to process data into information.{T}{}} The distinction among categories of computers is always clear-cut.{F}{}}" in this part i have got everything done but why do you have curly braces after you have put t or f in it like {F} {}} << why this instead of {F} . i have done everything though, thanks for your help. |
|
#5
|
||||
|
||||
Re: how to replace an a b c d letters with the tilde key?I didn't add those, that comes from this original statement:
CPP / C++ / C Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#6
|
|||
|
|||
Re: how to replace an a b c d letters with the tilde key?thanks a lot for helping
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sunday morning Humor | cable_guy_67 | Open Discussion Forum | 240 | 28-Mar-2009 00:30 |
| Deleting elements of arrays C++ | the_crazyman | C++ Forum | 25 | 30-May-2008 07:27 |
| Batch replace text | srinivasanb4u | C Programming Language | 2 | 06-Oct-2007 19:20 |
| Checking Capital Letters against Lower Case | AnnetteB | C Programming Language | 1 | 20-Mar-2005 11:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The