实验一:详细设计及编码
一.实验目的:
掌握结构化程序设计的概念,使用详细设计工具(流程图、N-S图和PAD图)进行设计,用C语言编程和运行。
二.实验内容及代码:
(1) Program searches for first N references to a Topic in an information retrieval system with T total entries.
Input n
Input Keyword
I=0
Match=0
Do While I<=T
I=I+1
If Word =Keyword Then
Match=Match+1
End
If Match=n Then
Goto 10
End
End
If match=0 Then
Print “No Match”
10: Else Print Match
End
#