Made output displayed as text rather than Eiffel.

Updated wikipage CECIL - C to Eiffel.
	(Signed-off-by:alexk).

git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2257 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
eiffel-org
2020-08-07 10:28:41 +00:00
parent e56167c97f
commit 637a4bf9f2

View File

@@ -1,9 +1,11 @@
[[Property:modification_date|Fri, 07 Aug 2020 10:28:41 GMT]]
[[Property:publication_date|Fri, 07 Aug 2020 10:28:41 GMT]]
[[Property:title|CECIL - C to Eiffel]] [[Property:title|CECIL - C to Eiffel]]
[[Property:weight|0]] [[Property:weight|0]]
[[Property:uuid|c3b64ef2-28b2-920e-44fb-4cff2320c099]] [[Property:uuid|c3b64ef2-28b2-920e-44fb-4cff2320c099]]
==array== ==array==
This example shows how to create an Eiffel array from an existing C array. After you have done the appropriate steps to compile the example, you will get a `cecil.exe` on windows, or `cecil` on Unix. Launch the program and you will be prompted for 10 integers that will be inserted in a C array, it will then initialize the Eiffel array and calls display from the MY_ARRAY class. A typical output will be: This example shows how to create an Eiffel array from an existing C array. After you have done the appropriate steps to compile the example, you will get a `cecil.exe` on windows, or `cecil` on Unix. Launch the program and you will be prompted for 10 integers that will be inserted in a C array, it will then initialize the Eiffel array and calls display from the MY_ARRAY class. A typical output will be:
<code> <code lang="text">
$ ./cecil $ ./cecil
Enter 10 integers: Enter 10 integers:
Enter element 1: 1 Enter element 1: 1
@@ -32,7 +34,7 @@ Display an Eiffel Array:
==string== ==string==
This example shows how to create an Eiffel string from an existing C string. After you have done the appropriate steps to compile the example, you will get a `cecil.exe` on windows, or `cecil` on Unix. Launch the program and you will be prompted for a string, it will then initialize the Eiffel string and calls io. put_string from the STD_FILES class. A typical output will be: This example shows how to create an Eiffel string from an existing C string. After you have done the appropriate steps to compile the example, you will get a `cecil.exe` on windows, or `cecil` on Unix. Launch the program and you will be prompted for a string, it will then initialize the Eiffel string and calls io. put_string from the STD_FILES class. A typical output will be:
<code> <code lang="text">
$ ./cecil $ ./cecil
Enter a string to convert in Eiffel string: Enter a string to convert in Eiffel string:
Hello World! Hello World!