Problem with simple Formatted Input example.

Venkat Akkineni via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Feb 7 16:29:34 PST 2015


This simple program seems to just hang. I am probably missing 
something. Any help is appreciated. I am using Linux with DMD. 
Program compiles fine, but when enter a string & press enter, the 
programs seems to wait forever without returning.


import std.stdio;

void main()
{
	
	string firstName;
	readf("	%s\n", &firstName);
	writeln(firstName);
	
}


Thankyou
Venkat


More information about the Digitalmars-d-learn mailing list