VFP第三章实验操作题答案
1.?type(".T.")?type("[Ilikethisgame.]")?type("2<3OR'B'>'A'")?type("$2000.46738")?type("{^2002/9/13}-{^2002/9/10}")?vartype({^2002/7/14})?vartype({^2002/9/13}-{^2002/9/10})2(2*x-y)/(x^3+y^3)+3*(x+x*y)/(sqrt(x)+sqrt(y))(2*x-y)/(x^3+y^3)+3*(x+x*y)/(x^(1/2)+y^(1/2))Log(abs(-y))+exp(x*y)*(1-y^(1/2))或者Log(abs(-y))+exp(x*y)*(1-sqrt(y))3(1)?"今天的日期是:"+dtoc(date())?"今天的日期是:"-dtoc(date())(2)?substr("北京2008年
奥运会",5,4)?right("北京2008年奥运会",6)?substr("北京2008年奥运会",11,6)(3)?"北京-"+str(2008,4,0)+"-奥运会"(4)?"奥运会"$"北京2008年奥运会"?at("奥运会","北京2008年奥运会")(5)?len("北京2008年奥运会")(6)?int(rand()*1000)?len("北京2008年奥运会")(7)(8)?left(x,1)+lower(substr(x,2,2))+substr(x,4,1)+lower(right(x,3))(9)?str(year(date()),4)+'年'+str(month(date()),2)+'月'+str(day(date()),2)+'日'+str(hour(datetime()),2)+'时'+str(minute(datetime()),2)+'分'+str(sec(datetime()),2)+'秒'
或者
或者?left(dtoc(date()),14)++str(hour(datetime()),2)+'时'+str(minute(datetime()),2)+'分'+str(sec(datetime()),2)+'秒'(10)?asc('Z')-asc('A')