![]() |
|
#1
|
|||
|
|||
Whats wrong? Using a function in strings.I'm trying to do add characters to my string: you can see as follows:
CPP / C++ / C Code:
Any help is appreciated why it isn't working properly. After the program ask me to input how many times to add the character, it just stops and sits as it is. Thanks. |
|||
|
#2
|
|||
|
|||
Re: Whats wrong? Using a function in strings.When using loops, you need to enclose the statements in a set of brackets if you have multiple statements, otherwise the compiler assumes you are looping only the first statement.
CPP / C++ / C Code:
|
|
#3
|
|||
|
|||
Re: Whats wrong? Using a function in strings.Quote:
Wow..What a dumb mistake! Works perfect! Thanks so much. |
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 |
| run script command on ns2.26 | newbie06 | Computer Software Forum - Linux | 65 | 19-Aug-2009 08:50 |
| Airport Log program using 3D linked List : problem reading from file | batrsau | C Programming Language | 11 | 29-Feb-2008 08:44 |
| Flex and bison coding | lucky88star | C++ Forum | 5 | 24-Dec-2007 12:57 |
| Need Help with input files. | Efferus | C++ Forum | 2 | 24-Nov-2007 17:19 |
| [Include] Doubly-linked List | dsmith | C Programming Language | 6 | 14-Apr-2006 14:12 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The