English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

the question is regarding C++
CHAPTER- PRORAMMING METHODOLOGY

2006-09-15 09:29:24 · 4 answers · asked by Anonymous in Computers & Internet Programming & Design

4 answers

The most frequent cause of bugs is programmers who cheated their way through school, and were too lazy to the read the book which is quite obviously sitting right in front of them.

2006-09-15 09:37:12 · answer #1 · answered by arbeit 4 · 0 0

A program bug results when there is a error in the program text (the text that tells the computer how to act or what function to perform given a specific stimuli. For example, when F! is pressed, according to the program language, the computer is supposed to respond with a specific action, lets say my program will give me the ability to change the desktop background when F1 is pressed. Instead of a Change Desktop Background option, the computer decides to restart itself. After reviewing my program language (ie, the text), I find that I have made a mistake. The computer took this literally, because it doesn't know any better, and did as instructed, according to my program. I correct the problem, either directly editing the text, or creat a patch to fix the problem. Hope this helps.

2006-09-15 16:44:57 · answer #2 · answered by krodgibami 5 · 0 0

there are 2 types of bugs: syntactic (program errors) and semantic (you meant something else).

Syntactic are the programming errors. You typed something wrong and the computer didn't understand the instructions.

Semantic bugs are ones that everything is programmed correctly, but the meaning of the program is wrong. Example: you tell your videogame character to walk out of the bank. Instead the person walk into the door. The program was correct, but you should have instructed your character to walk to the bank door, open it and walk outside.

2006-09-15 16:41:23 · answer #3 · answered by costco.mart 2 · 0 0

The original "bug" for which the electronic glitch was named was a moth, caught in a mechanical relay, preventing an electroinic function.

However, all kinds of files can be corrupted, so, a bug can be introduced to an otherwise clean program.

AND, once corrupted, any copies of the file will contain the bug.

2006-09-15 16:44:22 · answer #4 · answered by Vince M 7 · 0 0

fedest.com, questions and answers