Tutorial: "Hello World!" in CPL

<< Click to Display Table of Contents >>

Navigation:  Getting Started >

Tutorial: "Hello World!" in CPL

The following topic describes the basic process for creating and running an application using the Concordance Programming Language (CPL.)

To create and run an application using the CPL

1.Open Concordance.

2.Select Edit program from the File menu.

3.Type hello.cpl as your file name.

i.CPL is used as the file extension for CPLs. Note that a .CPT is created automatically after the first time you run your program. For more information about CPL files, see Creating and Editing a Concordance Application.

ii.An edit screen appears where you can type the following program.

4.Enter the following code into the edit screen:

main()

{
puts(5,5,"Hello World");
getkey();

}

i.For more information about writing code, see About Concordance Programming Fundamentals.

5.Save your work, select File, and then and then select Exit.  

6.On the File menu, select Begin Program.

7.Locate the hello.cpl and then click Open.

Your program should run and you should see the text “Hello World” printed on the screen. Hit any key to return to Concordance. For more information on running an application, see Running a Concordance Application.