( ! ) Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in D:\www\up\CSharp\base05.php on line 20
Call Stack
#TimeMemoryFunctionLocation
10.0000354968{main}( )...\base05.php:0

( ! ) Warning: include(http://pub.houheaven.com/Nav02/Nav_deep2.htm): failed to open stream: no suitable wrapper could be found in D:\www\up\CSharp\base05.php on line 20
Call Stack
#TimeMemoryFunctionLocation
10.0000354968{main}( )...\base05.php:0

( ! ) Warning: include(): Failed opening 'http://pub.houheaven.com/Nav02/Nav_deep2.htm' for inclusion (include_path='.;C:\php\pear') in D:\www\up\CSharp\base05.php on line 20
Call Stack
#TimeMemoryFunctionLocation
10.0000354968{main}( )...\base05.php:0

① 输入

使用:Console.ReadLine()

说明:输入字符后回车即可。

② 输出

使用:Console.WriteLine(str1)

使用:Console.WriteLine("str:{0}",str1)

使用:Console.WriteLine("str1:{0},str2:{1}",str1,str2)

说明:无。

实例:打开

[ 源代码 ]

String str1="www.houheaven.com";

String str2="Eric";

String str3="Music";

String str4="Movie";

String str5="Image";

Console.WriteLine(str1);

Console.WriteLine("This website designed by {0}",str2);

Console.WriteLine("This website includes {0},{1},{2} and so on",str3,str4,str5);


[ 输出结果 ]

www.houheaven.com

This website designed by Eric

This website includes Music,Movie,Image and so on

显示框架
显示框架
显示框架
显示框架