Free Pascal Program Tutorial 24 - String Manipulation - Lazarus

preview_player
Показать описание

Strings are an array of characters. Each character can be called upon in the same manner as calling an array element.

In this example name is a string :

name := 'Billy';

writeln(name[5]);

y will be written to the screen
Рекомендации по теме
Комментарии
Автор

so the counting doesn't start from 0 like other programming languages?

meliodasdali
Автор

Got it! - Thank you very much!

Greetings fomr Chile :)

Topulis
Автор

Quick tip: check if ur line in the 2nd for loop is "writeln" instead of "write"

globeco