⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hello.jc

📁 The JILRunOnly project is a simple command-line application written in ANSI-C that is intended to de
💻 JC
字号:
/*
 *	hello.jc
 *
 *	A simple test script for the "jilrun" console application
 */

import stdlib;

/*
 *	function main
 *
 *	"jilrun" expects this function as main entry point.
 *	Any parameters given to "jilrun" will be given to this
 *	function as an array of strings.
 *	The first element in the array is the name (and path)
 *	of the script beeing executed.
 *	The function should return a value of arbitrary type.
 */

function string main( const array& args )
{
	stdlib::Print( "Hello World!\n" );
	stdlib::Printf( "Number of arguments: %d\n", args.length );

	stdlib::Print( "Listing arguments:\n" );
	for( long i = 0; i < args.length; i++ )
	{
		stdlib::Printf( "%d: %s\n", {i, args[i]} );
	}

	return "Done.";
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -