|
发表于 2005-8-13 20:31:46
|
显示全部楼层
这和c/c++有什么关系?就算是perl/python也照样可以用一个通用的方法:
/*c*/
printf( "this is the first sentence " );
printf( "\rthis is the second sentence" );
//c++
cout << "this is the first sentence ";
cout << "\rthis is the second sentence";
#python
print 'this is the first sentence', #must follow a comma
print '\rthis is the second sentence'
#perl
print "this is the first sentence ";
print "\rthis is the second sentence"; |
|