- Joined
- Mar 23, 2007
- Messages
- 931
- Reaction score
- 11
I will show you some basic Delphi syntax. It's kinda dead language, but it's flexible and you can easily write complex apps in it.
Speed comparing?
VB < Delphi = C# < C++ < ASM
So don't doubt in it's speed.
If you like this syntax you can search google for resources and start learning it. It's easy.
Speed comparing?
VB < Delphi = C# < C++ < ASM
So don't doubt in it's speed.
PHP:
//We declare that this is a program with name: "Delhpi".
program Delphi;
//Application type is: CONSOLE.
{$APPTYPE CONSOLE}
//Program uses. Like "INCLUDE" in C++.
uses
SysUtils;
//We write our variables here.
//Integer, string, etc, etc, etc... Default stuff.
var
X, Y : integer;
//We begin to write our code and procedures here.
begin
//Some useless and fancy beginning introduction.
//WriteLn = Write Line.
WriteLn('Hello there, welcome to my frist program.');
//We declare X.
//ReadLn = Read Line.
ReadLn(X);
//We declare Y.
ReadLn(Y);
//Now we add these numbers together and print result.
//IntToStr = Converts Integers to String value.
WriteLn('Result is: ' + IntToStr(X + Y));
//We need the program to wait for our input so it will not close after pervouse statement.
ReadLn;
end.
If you like this syntax you can search google for resources and start learning it. It's easy.