# Hello, Equestria!
来吧,现在开始写你的第一封信!
在bin目录下新建文件hello.fimpp,输入以下代码:
Dear Princess Celestia: Hello Equestria:
Today I learned about how to say hello.
I said "Hello, Equestria!".
Your faithful student, Twilight Sparkle
保存,打开命令行,运行:

OK,运行成功,输出了一行文字Hello, Equestria!。想必大公主已经收到你的信函了吧(笑)。
现在我给你解释一下这四行代码。Dear Princess Celestia:是程序开头,就像写信的开头一样,后面写程序名(或者说信的主题?)。可以随便指定,但是要遵循附录1:标识符的命名规范。然后加个:或.号。
Today I learned about是主方法开头语句,后面随便指定主方法名称(或者说你学习到的内容?),格式应该为全部小写的英文短语。
I said是一个输出语句,后面可以写一个变量名,或者符合附录1:变量类型中规定格式的表达式。
Your faithful student,是程序的结束语,就像写信的落款啦。后面可以跟着任意名字,遵循附录1:标识符中提到的名字即可。
FIM++不对大小写严格要求,就是说你的信可以这样写:
dear princess celestia: hello equestria:
today i learned about how to say hello.
i said "Hello, Equestria!".
your faithful student, twilight sparkle
(但是显然不好看,对吧)
FIM++支持使用方法(其他语言中的函数在Java中叫方法),方法的定义详见附录1:方法。
也就是说以上程序可以写成这样:
Dear Princess Celestia: Hello Equestria:
I learned about a function.
I said "Hello, Equestria!".
That's about a function.
Today I learned about how to say hello.
I did a function.
Your faithful student, Anon
······此时的大公主:
