主题:请教几个VFP编程问题。谢谢
1.编写程序实现以下功能:显示1992年到2020年中的闰年年份
2.编写程序显示满足如下要求的三位的整数:能被11整除且包含数字8,要求显示所有满足条件的数,并显示满足要求数的个数。
3.编写程序删除字符串中的空格,字符串为“Long long ago, there was a war between the birds and the beasts. No one knows what they fought about.The bat did not know whose side he should take. He thought and thought, then decided he must try to be on the side of the winners.So he watched from far away. After a while, it seemed that the birds were going to win.He flew over to join them.”。提示:直接使用TRIM函数是无效的。
4.编写程序实现在屏幕上显示菱形星阵,菱形的行数根据输入的数决定,若输入4则第4行上的星号数量最多。输入4时会显示如图所示的菱形星阵。
2.编写程序显示满足如下要求的三位的整数:能被11整除且包含数字8,要求显示所有满足条件的数,并显示满足要求数的个数。
3.编写程序删除字符串中的空格,字符串为“Long long ago, there was a war between the birds and the beasts. No one knows what they fought about.The bat did not know whose side he should take. He thought and thought, then decided he must try to be on the side of the winners.So he watched from far away. After a while, it seemed that the birds were going to win.He flew over to join them.”。提示:直接使用TRIM函数是无效的。
4.编写程序实现在屏幕上显示菱形星阵,菱形的行数根据输入的数决定,若输入4则第4行上的星号数量最多。输入4时会显示如图所示的菱形星阵。