[Tutorial] Variables and Strings - Showing your name.

Post new topic   Reply to topic

View previous topic View next topic Go down

[Tutorial] Variables and Strings - Showing your name.

Post by Hein D. on Thu Jul 03, 2008 6:45 pm

Yes people, I'm bored and want to write some code, so here is a Console Application that outputs the name Hein D.

program ShowMyName;

{$APPTYPE CONSOLE}

uses
SysUtils;

Var
First: String; // This is just a thing, It needs to be assigned to something.
Last: String;
EntireName: String;
Space: String;

begin

First := 'Hein'; // Now First is assigned to Hein, so now First = Hein, before it was nothing.
Space := ' ';
Last := ' D.';
EntireName := First + Space + Last; // EntireName was assigned to nothing but now it has to combine First (Hein), Space ( ) and Last (D.).
WriteLn(EntireName); // WriteLn; writes out this entire text.
// Output is Hein D.

ReadLn; // If you wouldn't put this line in the Console App would disappear in like 1 second.
End.

So this is just a small example of showing your name. ^^
I hope this is understandable for you people out there and I would like some reactions and what you guys made with Variables.

Hein D. geek

_________________
ExoSoft Co-Founder
Windows Programmer, financial organizer and marketing organizer.

Hein D.
ExoSoft Member
ExoSoft Member

Posts: 41
Join date: 2008-06-29
Location: The Netherlands

View user profile http://exosoft.omgforum.net/

Back to top Go down

Re: [Tutorial] Variables and Strings - Showing your name.

Post by Hein D. on Thu Jul 03, 2008 7:42 pm

People please don't forget to always put ' ' between the words you want to insert and don't forget the ; else it will give problems.

The // are just comments so you can leave them out.

_________________
ExoSoft Co-Founder
Windows Programmer, financial organizer and marketing organizer.

Hein D.
ExoSoft Member
ExoSoft Member

Posts: 41
Join date: 2008-06-29
Location: The Netherlands

View user profile http://exosoft.omgforum.net/

Back to top Go down

Re: [Tutorial] Variables and Strings - Showing your name.

Post by shadowspy on Fri Jul 04, 2008 9:09 am

Hey nice tutorial (i guess.)
I guess this will give people an explanation for what's going on and what the code does.
Good job! Wink

Hein D. wrote:People please don't forget to always put ' ' between the words you want to insert and don't forget the ; else it will give problems.

The // are just comments so you can leave them out.

Maybe you could begin a new thread for those things to make things clear. The basic rules i mean. Wink

_________________
A.K.A. Victor V.
ExoSoft Co-Founder
Modeler, Mac Programmer, Website Creator, Concept Art and much more crap Very Happy

shadowspy
Admin
Admin

Posts: 37
Join date: 2008-06-29
Location: Here ;)

View user profile http://exosoft.omgforum.net

Back to top Go down

Re: [Tutorial] Variables and Strings - Showing your name.

Post by shadowspy on Fri Jul 04, 2008 9:09 am

And uh, stickied Razz
And I took the liberty of changing the thread name to a more understandable one. bounce lol! afro

_________________
A.K.A. Victor V.
ExoSoft Co-Founder
Modeler, Mac Programmer, Website Creator, Concept Art and much more crap Very Happy

shadowspy
Admin
Admin

Posts: 37
Join date: 2008-06-29
Location: Here ;)

View user profile http://exosoft.omgforum.net

Back to top Go down

Re: [Tutorial] Variables and Strings - Showing your name.

Post by Hein D. on Fri Jul 04, 2008 10:50 am

KILL HIM, DOUBLE POSTER!! and after this off-topic sentence I have to say, thank you for making it a sticky and thank you for your response . Embarassed cyclops

Hein D. study

_________________
ExoSoft Co-Founder
Windows Programmer, financial organizer and marketing organizer.

Hein D.
ExoSoft Member
ExoSoft Member

Posts: 41
Join date: 2008-06-29
Location: The Netherlands

View user profile http://exosoft.omgforum.net/

Back to top Go down

Re: [Tutorial] Variables and Strings - Showing your name.

Post by shadowspy on Fri Jul 04, 2008 11:14 am

Double posting is not bad Wink As long as it's about another thing.
And no problem m8 Wink

_________________
A.K.A. Victor V.
ExoSoft Co-Founder
Modeler, Mac Programmer, Website Creator, Concept Art and much more crap Very Happy

shadowspy
Admin
Admin

Posts: 37
Join date: 2008-06-29
Location: Here ;)

View user profile http://exosoft.omgforum.net

Back to top Go down

Re: [Tutorial] Variables and Strings - Showing your name.

Post by Hein D. on Fri Jul 04, 2008 1:39 pm

Yeah but I want to break your posting record.

And ehm I think I'm going to do a tutorial about the basic operators etc. from Delphi too.

_________________
ExoSoft Co-Founder
Windows Programmer, financial organizer and marketing organizer.

Hein D.
ExoSoft Member
ExoSoft Member

Posts: 41
Join date: 2008-06-29
Location: The Netherlands

View user profile http://exosoft.omgforum.net/

Back to top Go down

Re: [Tutorial] Variables and Strings - Showing your name.

Post by shadowspy on Fri Jul 04, 2008 4:09 pm

Good, keep on posting. I guess i'll have to create a tutorial (for maya) too, otherwise I can't keep up Very Happy

_________________
A.K.A. Victor V.
ExoSoft Co-Founder
Modeler, Mac Programmer, Website Creator, Concept Art and much more crap Very Happy

shadowspy
Admin
Admin

Posts: 37
Join date: 2008-06-29
Location: Here ;)

View user profile http://exosoft.omgforum.net

Back to top Go down

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You can reply to topics in this forum