Results 1 to 10 of 15
Threaded View
-
12th Feb 2012, 08:56 AM #4
If you use a trailing space (a space at the end of the format string), your program appears to hang. Instead of entering a blank line or using space characters, you must enter what the value of str2 will be. The same for str3 and when it asks for str3's value, you would enter a value that won't appear. For example, use "%[^\n] " instead of "%[^\n]"/" %[^\n]". Your newline will be ignored as specified...and eaten by the trailing space in the format string. Since scanf didn't get a '\n' character, it will want more data. str2 will have that value and str3 will have str2's value.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Md5 generation on Turbo C
By prateek in forum Web Development AreaReplies: 5Last Post: 14th Feb 2012, 08:42 PM -
Turbo C | Weird and amazing
By prateek in forum Web Development AreaReplies: 13Last Post: 11th Feb 2012, 04:57 PM -
Turbo C | Help Needed
By prateek in forum Web Application/Script SupportReplies: 17Last Post: 12th Jan 2012, 12:26 PM -
Turbo Leech - FREE Rapidleech Server With 8 Premium Account
By Faizann20 in forum Useful SitesReplies: 9Last Post: 2nd Dec 2010, 05:00 AM -
Looking to buy sites, in a strange way :P
By JmZ in forum Completed TransactionsReplies: 4Last Post: 15th May 2008, 02:21 AM
themaCreator - create posts from...
Version 3.53 released. Open older version (or...