- If you need clarification, ask it in the comment box above.
- Better answers use proper spelling and grammar.
- Provide details, support with references or personal experience.
Tell us some more! Your answer needs to include more details to help people.You can't post answers that contain an email address.Please enter a valid email address.The email address entered is already associated to an account.Login to postPlease use English characters only.
Tip: The max point reward for answering a question is 15.
To get more detailed help, please include: 1. The device that you will use for motion detection, e.g webcam, infra-red sensors etc 2. The programming language that you want the source code. Alternatively, you can extract the algorithm from one language and re-write it into your programming language of choice.
I'm assuming you are referring to declaring variables in Procedural programming languages such as Java. Variables need to be declared for several different reasons, some of which include helping the computer reserve space in memory for variables to be stored and it also plays a part in the various stages of converting the source code, i.e. the code that you type in VB or Java, into machine code which is a series of binary digits that the computer can actually understand. It helps the computer in debugging the code for errors. In the first stage of code conversion, lexical analysis, information about the variable names is stored. In the next stage, Syntax analysis, the code is checked to be grammatically correct according to the rules of Backus Naur Form, i.e. if a key word such as PRINT is typed in as PLINT the computer will treat this as a variable name and since no information about this variable name has been entered in the lexical analysis stage it knows that an error has been made.
Hope this helps!
here the Hundreds of Visual Basic source code snippets and files. Copy and paste code from your browser directly into Visual Basic. http://www.vbcode.com/ http://www.freevbcode.com/ http://www.vbcodesource.com/ http://www.a1vbcode.com/
Operating systems are written in a variety of computer languages, including the one you mention, C++. What they use often depends on what part of the software they are working on. User interfaces can be developed using anything from Visual C or even Visual Basic, to C++, and others. Low-level code (such as the kernal, in Windows) is usually written in some form of assembly-level code. Microsoft has several hundred programmers who do nothing but work on Operating System software. Hope that helps!