-
Run result, display:
x= 30s
The resolution is as follows: set talk off > close the conversation.
x=10s=""
do while x<=100
x=x+5 && each time you add 5 to the original x, x is 15,20,30if mod(x,3)=0 and x>=30 &&& to x=30 is, mod(30,3)=0 and 30>=30 meets the conditions, then exit the do while x<=100 loop.
exitelse && does not satisfy mod(x,3)=0 and x>=30 and returns to do while x<=100
loopendif
s=s+"y"
After enddo && exits the do while x<=100 loop, the value of s is null and the value of x is 30
x=",x && so the quotation marks are left intact, and the output is x= and the value of x itself is 30?"s",s&&So the quotation marks are left intact, and the values of s and s itself are empty.
set talk on > open the conversation.
return
-
Upstairs and said the wrong thing should be x=30syyy
You can say that you are wrong!!
I'm not going to say anything.
To be honest, I was wrong at first, and there is another mystery to this question.
-
visual
FoxPro is a database management system software. visual
FoxPro is a powerful object-oriented environment designed for database structure and application development. Start Visual for the first time
foxpro,"Project Manager"A new empty project will be created. use"Project Manager"This will make you familiar with visual in no time
foxpro。"Project Manager"Provides a simple, visible way to organize and process tables, forms, databases, reports, queries, and other files for managing tables and databases or creating applications. The foxpro data types are:
Numeric n-> store numbers; Character type C-> store the text of the side; Date type d-> storage date; Logical L-> stores authenticity and falsehood; The remarks type M-> store the explanatory text. FoxPro's expression-related terms are: constant - > data that does not change; Variables - > variable data; Array - > set of variables; Qipei function - > can accomplish certain operations; Operator.
Command form of foxpro: imperative verb.
Parameters] foxpro file types are: database file dbc; datasheet file dbf; Remarks document dct; index file dcx; form file scx; Program file prg.
-
1.Let x=10, statement? vartype("x") is (b).
This is because this function is the type of expression in the test(). "10"Type C, of course.
Pay attention to? type("x"The difference with this function, it's the type of test x, of course it's n-type.
2.After explaining the array in Visual FoxPro, the default value for each element of the array before it was assigned was .f.__
3.+ Why is this date expression wrong?
There are three ways to use date-based data:
Date 1 - Date 2
Date + integer.
Date + integer.
So the above equation is wrong.
-
1.Let x=10, statement? vartype("x") is ( ) b) c because"x"It's a character, if ?vartype(x), n is output
2.After explaining the array in Visual FoxPro, the default value for each element of the array before it was assigned was .
f.Because, we don't know exactly what's in the array.
dime a(5)
a(1)f.
Of course, this expression is not true, even + is not correct, there is no date and date addition and subtraction in VFP, however, the date can be added to a value, such as:
-
1。Modify the names of all majors in the "Learning 1" table to "Computer Application".
update 1 set Professional name="Computer applications"where professional name ="Computers"
2。Assuming that all the records in the "Learning 1" table whose name is "Li Ming" are entered, please change the "Student Number" to 9710110
update 学1 set 学号="9710110"where name="Li Ming"
3。In the "Grade" table, add a record with "Student ID" as 9801004, "Usual Grade" as 85, and "Midterm Grade" as 88
insert result into(student number, usual grade, where grade) value("9801004",85,88)
4。Set up a salary table with name, gender, salary and other fields, and write an order to increase the salary of all female employees by 50 yuan.
update Payroll set salary=salary+50 where gender="Female"
5。Use the index search method to find and display the records with the name "Liu Qing" in the "Xue1" table.
use learning1
index on Name to AA
seek "Liu Qing"
6。List the name, gender, major, and whether you have passed Level 4 or not.
Sele name, gender, major, level 4 whether the fourth level passes from the table name where name like"Lee %"
I can't remove it. like to do sth.
Or like doing sthIt is a fixed phrase, like and play are both verbs, and they are predicates in the sentence. >>>More
Is there a complete skill with or without it? The blasted teleportation orb is a must-add for firing a magic cannon. The little jump of the frantic ** proficient in the upper pick is also a must. The blasting ball must be full, the frenzied small jump and ** must be full, and the rest is completely up to the direction of the plus point.
The medium voltage doubles, and according to Q=(U R)t, the heat increases fourfold. >>>More
Provision for bad debts accrued at the end of 2006: 1,200,000 * 3% = 36,000 >>>More
To put it succinctly.
Eighty percent of it, but after two years of dating, I can't see it, and there's only one possibility, and he's not willing or too lazy to understand and research. >>>More