![]() |
|
#1
|
|||
|
|||
Help with removing spaces...basically all i want to do is remove the spaces in a word for instance user inputs < bob > i want it to look like <bob>.
CPP / C++ / C Code:
This should work but its not.. or is there and easier way to do this? |
|||
|
#2
|
|||
|
|||
Re: Help with removing spaces...I always find that creating a more generic function that is reusable might be the best solution. I'm thinking something like:
CPP / C++ / C Code:
Using this generic function, you could call it like: CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Help with removing spaces...see there is logical thinking then there is me lol.. thanks man ill give that a shot
|
|
#4
|
||||
|
||||
Re: Help with removing spaces...Write what you need. It is usually quicker, easier and...BTW...does what you need. If you want to write something that handles all cases of what you may need in the future, good luck and have fun trying to reach that pinnacle.
CPP / C++ / C Code:
Output: Code:
MxB |
|
#5
|
||||
|
||||
Re: Help with removing spaces...Please stick to criticizing code and don't make personal attacks. Do NOT try to turn the forums into a battle field. Solve your problems in private, if you have any. __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Replace multiple white spaces with a single white space in a string | abhisheknayak | C++ Forum | 4 | 29-Feb-2008 02:40 |
| Strings ( Spaces between words ) | Max_Payne | C++ Forum | 2 | 21-Oct-2007 16:09 |
| removing excess space's | dave88 | C++ Forum | 10 | 17-Oct-2005 18:28 |
| Problems reading strings with spaces | monalin | C++ Forum | 3 | 14-Oct-2005 21:32 |
| MATCH text without spaces | ScreamingWeasel | MySQL / PHP Forum | 2 | 11-Jun-2004 21:47 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The