Error reading char in read
Jean Cesar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Feb 17 07:48:11 PST 2017
import std.stdio;
import std.string;
auto read(C)(ref C c, char[80] message)
if (isSomeChar!C) {
writef("\n\t%s: ", message);
c = strip(readf());
readf(" %s", &t);
return c;
}
void main()
{
char[50] message;
read(message,"Digite Seu nome: ");
writeln(message);
}
estou tentando fazer um leitor de vetor de char porem esta dando
erro
More information about the Digitalmars-d-learn
mailing list