Problem with simple Formatted Input example.

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 7 16:47:45 PST 2015


On 02/07/2015 04:42 PM, Ali Çehreli wrote:

 >  >      readf("    %s\n", &firstName);

 > I see that readf reads the first line of entry *after* I press
 > two Enters on the console.

OK, that is related to the '\n' character that you have in the format 
string. Also, repeating the space characters has no effect as a single 
space means "zero or more white space" anyway.

Ali



More information about the Digitalmars-d-learn mailing list