criando modulos em D para classe pessoa[AJUDA]
dark777 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 24 13:33:42 PDT 2017
On Monday, 24 July 2017 at 20:06:37 UTC, ag0aep6g wrote:
> On 07/24/2017 09:45 PM, dark777 wrote:
>> principal.d(18): Error: octal literals 01023040 are no longer
>> supported, use std.conv.octal!1023040 instead
>> Failed: ["dmd", "-v", "-o-", "principal.d", "-I."]
> [...]
>> https://pastebin.com/CYinHWyQ
>
> From there:
>> e = new Endereco();
>> e.setCidade("São Paulo");
>> e.setCEP(01023040);
>
> Google's translator says (from Portuguese):
> Endereco = address,
> Cidade = City,
> CEP = ZIP code.
>
> Don't store ZIP codes as numbers. Store them as strings.
> Leading zeroes have meaning in ZIP codes. You don't do math on
> ZIP codes.
deu certo aqui agora valeu ai..
More information about the Digitalmars-d-learn
mailing list