BHAMF Posted May 31, 2018 at 04:17 PM Report #610802 Posted May 31, 2018 at 04:17 PM Estava "passeando" pelo site e me deparo de vez em quando com o código Inc... O que é? Brenio Hallison A.M. Filho
Solution nunopicado Posted May 31, 2018 at 04:54 PM Solution Report #610804 Posted May 31, 2018 at 04:54 PM Inc serve para adicionar um valor ordinal a uma variável cujo tipo de dados seja ordinal... Por exemplo: var i: Integer; begin i := 0; // i = 0 Inc(i); // i = 1 Inc(i, 5); // i = 6 É a mesma coisa que fazer isto: var i: Integer; begin i := 0; // i = 0 i := i + 1; // i = 1 i := i + 5; // i = 6 Por curiosidade, Dec é o inverso, e subtrai o valor. 1 Report "A humanidade está a perder os seus génios... Aristóteles morreu, Newton já lá está, Einstein finou-se, e eu hoje não me estou a sentir bem!" > Não esclareço dúvidas por PM: Indica a tua dúvida no quadro correcto do forum.
BHAMF Posted June 1, 2018 at 03:40 PM Author Report #610823 Posted June 1, 2018 at 03:40 PM Obrigado! Brenio Hallison A.M. Filho
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now