mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 14:52:03 +01:00
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:
@@ -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:weight|0]]
|
||||
[[Property:uuid|c3b64ef2-28b2-920e-44fb-4cff2320c099]]
|
||||
==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:
|
||||
<code>
|
||||
<code lang="text">
|
||||
$ ./cecil
|
||||
Enter 10 integers:
|
||||
Enter element 1: 1
|
||||
@@ -32,7 +34,7 @@ Display an Eiffel Array:
|
||||
|
||||
==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:
|
||||
<code>
|
||||
<code lang="text">
|
||||
$ ./cecil
|
||||
Enter a string to convert in Eiffel string:
|
||||
Hello World!
|
||||
|
||||
Reference in New Issue
Block a user