criando modulos em D para classe pessoa[AJUDA]

ag0aep6g via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 24 13:06:37 PDT 2017


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.


More information about the Digitalmars-d-learn mailing list