function pqx()
variable fd = fopen("scripts/manual/练习/wb.txt", "r")
variable k
variable aa_k,ax_k,ay_q
k=1
while feof(fd)==false
aa_k=freadline(fd)
ax_k= clone(fscanf(aa_k,"%f%f%f%f%f%f%f"))
print(ax_k+"\n")
k=k+1
loop
for variable q=1 to k-1 step 1
ay_q=ax_k
print("输出"+ay_q+"\n")
next
fclose(fd)
endf
我想把ax_k(1~4)数组分别赋值给ay_1~ay_4参与后续的计算,但是现在ay_1~ay_4数组的值
都是默认ax_4数组的值,请问怎么修改代码。感谢!!
variable fd = fopen("scripts/manual/练习/wb.txt", "r")
variable k
variable aa_k,ax_k,ay_q
k=1
while feof(fd)==false
aa_k=freadline(fd)
ax_k= clone(fscanf(aa_k,"%f%f%f%f%f%f%f"))
print(ax_k+"\n")
k=k+1
loop
for variable q=1 to k-1 step 1
ay_q=ax_k
print("输出"+ay_q+"\n")
next
fclose(fd)
endf
我想把ax_k(1~4)数组分别赋值给ay_1~ay_4参与后续的计算,但是现在ay_1~ay_4数组的值
都是默认ax_4数组的值,请问怎么修改代码。感谢!!