分组后取N条记录

CREATE CURSOR tt (班级 c(10),学号 c(10),成绩 n(3)) INSERT INTO tt VALUES ("01","X0101",86) INSERT INTO tt VALUES ("01","X0102",92) INSERT INTO tt VALUES ("01","X0103",72) INSERT INTO tt VALUES ("01","X0104",86) INSERT INTO tt VALUES ("02","X0201",75) INSERT INTO...
VFP中SQL查询问题 | 2017-09-13 22:04 | 175次阅读 | 0评

孪生素数对

clear a=3 b=a ?"孪生素数对:" for i=3 to 100 step 2 x=0 for j=2 to i-1 if i/j=int(i/j) x=1 endif endfor if x=0 a=i if a-b=2 ?b,a endif b=a endif endfor
算法 | 2017-09-05 13:36 | 152次阅读 | 0评
浏览160841次