Forumchem - Forum with AI(ALICE BOT & HAL9000) and TTS

More dificult for us, more easy for you
It is currently Thu Mar 28, 2024 12:36 pm

All times are UTC





Post new topic Reply to topic  Page 1 of 1
 [ 3 posts ] 
Author Message
 Post subject: Can you answer my questions about sentinel value?
PostPosted: Wed Apr 23, 2014 4:00 am 
Offline
User avatar

Joined: Thu Oct 15, 2009 3:35 am
Posts: 6
(sent&-n&l val) (n.) In programming, a special value that is used to terminate a loop. The sentinel value typically is chosen so as to not be a valid data value that the loop will encounter and attempt to perform with. For example, in a loop algorithm that computes non-negative integers, the value "-1" can be set as the sentinel value as the computation will never encounter that value as a valid processing output.

Does this mean if a command prompt comes up and starts looping these numbers, you just type in the sentinel value to cease? Its really confusing because why would you try to cease a loop using a number that the computer will never even get to because its only looping positive numbers. Is that the point, to make sure it doesnt end? This is really confusing for me because Im self studying computer programming and not many books talk about it in detail or explain it well and I dont have any one to ask these questions to

Please explain it in as much detail as you can with the simplest wording because I dont know that many comp sci words, imagine your explaining it to someone who knows as little about comp as your mom (tho ik more,its easier to understand if its explained like that


Top
 Profile      
 
 Post subject: Can you answer my questions about sentinel value?
PostPosted: Thu Jun 15, 2017 7:44 pm 
Offline
User avatar

Joined: Thu Apr 02, 2009 7:46 am
Posts: 1348
i admire Believer, spouse and mom, she i my admired, probably a a result of fact she i my mom, so im biased to her. i admire Sentinel, Tebone, Misty, Marty(with %of Martin Luther), Born returned Catholic, Aleria (she i crammed with understanding), bypass Catholic, Karenita, Shabayou, Sweetie RC, I mean this record would desire to bypass on and on, for any i did no longer point out you be attentive to i admire you men!! Shabayou thank you, your good im blessed, she is my terrific pal too, we are fortunate to have one in all those sturdy relationship.


Top
 Profile      
 
 Post subject: Can you answer my questions about sentinel value?
PostPosted: Fri Feb 16, 2018 2:15 pm 
Online
User avatar

Joined: Thu Apr 02, 2009 2:49 pm
Posts: 1684
When my computer program goes through an endless loop, I want it to stop going. So when I want it to stop, I make the input something that will only occur when I want it to. People stop loops with a simple conditional like this: if (input == -1) return; This stops the loop the moment it gets the input of -1. If a command prompt comes up and starts doing crap, the best way to stop it is ctrl+c, but if you do get the option to give it something, the sentinel value will stop the loop. I hope I helped :\\



Top
 Profile      
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  Page 1 of 1
 [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: vawceix and 11 guests


 
Search for:
 
Jump to:  

cron
Click me:
Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009 phpBB Group
Chronicles phpBB3 theme by Jakob Persson. Stone textures by Patty Herford.
With special thanks to RuneVillage

This site have 4 type of tecnology in order to convert text to speech. By default you use the vozme tecnology. In order to know the other you need to sign for.


- Privacy Policy -