0

Please help me to make simple program linier search with sentinel and data well organize

3rd Apr 2017, 4:31 AM
rasyid
2 Respuestas
+ 1
Say you have an array of chars (for example), and you're told that the relevant information ends with a ".". Then you could write (pseudocode): int i=0; while(i<arr.length && arr[i]!=".") { // do whatever you have to } Here, the "." is the sentinel.
3rd Apr 2017, 4:40 PM
Álvaro
+ 1
oke thanks
4th Apr 2017, 1:56 AM
rasyid