![]() |
|
#1
|
|||
|
|||
String problemHi all,
it's my first string using program. I have problem with do {} while. CPP / C++ / C Code:
this is wrong protection? HElp. 2. problem CPP / C++ / C Code:
problem: when i pres Y/y printf(" enter string") is skiped.and program is finished. |
|||
|
#2
|
|||
|
|||
|
Don't use gets(str) or scanf("%s", str), use fgets and learn how to handle the trailing newline that may be left over.
|
|
#3
|
|||
|
|||
|
Quote:
that didn't helpd me. |
|
#4
|
|||
|
|||
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Read a .html file, check that file for links | salemite | C Programming Language | 10 | 17-Jan-2008 08:56 |
| Converting string to float | CT++ | C++ Forum | 2 | 10-May-2005 12:29 |
| inheritance problem | ap6118 | C++ Forum | 8 | 11-Apr-2005 12:24 |
| Problem to acess to a dynamic string | collinm | C Programming Language | 1 | 25-Mar-2005 10:21 |
| Problem with string and serial port | collinm | C Programming Language | 13 | 25-Mar-2005 08:39 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The