一个窗体单击事件过程如下: Private Sub Form_Click() Dim a As Integer, b As Integer, c As Integer a = 6 : b = 15 c = a * b If a > b Then a = a - b Else b = b - a End If Print a, b, c / bEnd Sub试问:当单击窗体后,输出为___________。
一个窗体单击事件过程如下: Private Sub Form_Click() X = Val(Text1.Text):Y = Val(Text2.Text) If X = 0 Or Y = 0 Then Print "不在任何象限内": Exit Sub If X > 0 And Y > 0 Then Print "IN A" If X > 0 And Y < 0 Then Print "IN D" If X < 0 And Y > 0 Then Print "IN B" If X < 0 And Y < 0 Then Print "IN C"End Sub
Private Sub Form_Click() 窗体上单击后,显示结果为:a=85Select case aCase Is> =60 I=“及格”Case Is> =70 I=“中“Case Is> =80 I=“良”Case else I=“优”End SelectPrint IEnd Sub
以下程序的运行结果是( )。 func(int a,int b) {int c; c=(a>b)?(a-b):(a+b); return(c); } main() { int x=7,y=3; printf("%d\n",func(x,y)); }
以下程序运行时,若从键盘输入5,则输出结果是( )。 main() { int a; scanf("%d",&a); if(a++>5) printf("%d\n",a); else printf("%d\n",a--);}
以下程序运行后,文件test.txt的内容是( )。 #include <stdio.h> main() { FILE *fp; char str[][10]={"first","second"}; fp = fopen("test.txt", "w"); if(fp!=NULL) fprintf(fp,"%s",str[0]); fclose(fp); fp = fopen("test.txt", "w"); if(fp!=NULL) fprintf(fp,"%s",str[1]); fclose(fp); }