Io 学习(1)
来源:互联网 发布:厦门科华工资怎样知乎 编辑:程序博客网 时间:2024/06/03 18:31
1.安装io解释器
从http://iolanguage.org/下载binaries,解压后运行.exe
运行io.exe,发现缺少libgcc_s_dw2-1.dll,google之,从http://www.dll-files.com/dllindex/dll-files.shtml?libgcc_s_dw2-1 找到下载,放到和io.exe一个文件夹下,之后就顺利运行Io解释器了。
2.从文件运行Io程序
google, run io from file 后,找到http://en.wikibooks.org/wiki/Io_Programming 以下内容,If you want to write code to be reused, simply put it in a text file and run it withio <filename>
, where <filename> is the name of the file you use.
新建文件run_from_file.io,键入以下代码:
x := 1
y := 2
writeln("x is ", x)
writeln("y is ", y)
x = x + y
writeln("x + y = ", x)
控制台下键入:io run_from_file.io
显示:
x is 1
y is 2
x + y = 3
notice: If you noticed, I used a .io file extension. This is in no way mandated, it is merely a convention. Something happened differently this time then when we did it from a file, if you noticed. Unlike before, we didn't see what each function returned. Instead, we only saw what was explicitly output bywrite
.
- Java学习:IO(1)
- Io 学习(1)
- JAVA IO 学习1
- 学习io流-1
- IO学习(十四)总结IO学习1-13
- 学习STM32(1)-IO-GPIO
- java学习--IO流(1)
- Java的IO学习1
- 高级IO学习总结1
- Io学习
- io 学习
- IO学习
- IO学习
- IO学习
- io学习
- 驱动学习(1)---IRP和IO堆栈
- java IO流的学习1
- 黑马程序员--学习笔记/IO流1
- 黑马程序员-学习日志-对象的序列化
- Android音频驱动简析
- map/set iterator not incrementable
- 今天加入CSDN博客
- omnipeek RT3070
- Io 学习(1)
- UNIX/Linux进程间通信IPC系列(一)总论
- 【观点】优秀程序设计的18大原则
- 操作系统内存管理——分区、页式、段式、段页式管理
- 第一章 概述 1.13互联网
- hibernate之helloworld(四步)
- shell版本的打印菱形---斜率算法
- volatile
- oracle第三天笔记