Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1. ABSTRACT
2. PROCESS DESCRIPTION
2. INTRODUCTION
3 .TABLE DESIGN
4. PROJECT DETAILS
5. CONCLUSION
6. BIBLIOGRAPHY
ABSTRACT OF THE PROJECT
Process Description
The Library Management System is designed & developed for a receipt and
issuance of books in the library along with the student’s details. The books received in
the library are entered in Books Entry form and the new student is entered in the student
entry form. When the student wants to get the desired book the same is issued on the
availability basis to the student. The issuance and due date for the returning of the book is
also entered into the Book Issue form under third menu Book Issue. The student has to
pay the fine if any on the basis of no. of days delayed deposit of the book in the library.
C++
Object-oriented programming (OOP) is a programming paradigm that uses "objects" –
data structures consisting of data fields and methods together with their interactions – to
design applications and computer programs. Programming techniques may include
features such as data abstraction, encapsulation, modularity, polymorphism, and
inheritance. C++ programming languages now support OOP.
ADVANTAGE OF C++
1. Speed of the resulting application. C++ source code can be optimized much more than
higher-level languages because the language set is relatively small and very efficient.
2. That leads to a second advantage that C++ has which is its application in Firmware
programming (hardware). That is due to its ability to use/work with assembly and
communicate directly with controllers, processors and other devices.
3. C/C++ is a building bock for many other currently known languages. Look up the
history of C++ and you will find that it has been around for some time (as programming
languages go anyway).
4. That leads to the final advantage that I will touch on (there are no doubt others and
disadvantages as well); C++ is a compiled language versus an interpreted language.
Explained simply, this means that the code is compacted into executable instruction (in
the case of windows anyway) rather than being "translated" on the fly at run time. This
feature also lends heavily to the speed of C++ programs.
* Void
* Boolean
* Character
* Integer
* Floating-point
* Array
* Pointer
Void (C++)
When used as a function return type, the void keyword specifies that the function does not return
a value. When used for a function's parameter list, void specifies that the function takes no
parameters. When used in the declaration of a pointer, void specifies that the pointer is
"universal."
If a pointer's type is void *, the pointer can point to any variable that is not declared with the
const or volatile keyword. A void pointer cannot be dereferenced unless it is cast to another
type. A void pointer can be converted into any other type of data pointer.
A void pointer can point to a function, but not to a class member in C++.
Boolean (C++)
The Boolean data type is used to declare a variable whose value will be set as true (1) or false
(0). To declare such a value, you use the bool keyword. The variable can then be initialized with
the starting value. A Boolean constant is used to check the state of a variable, an expression, or a
function, as true or false.
Character (C++)
C++ stores character type internally as an integer. Each character has 8 bits so we can have 256
different characters values (0-255).
Character set is used to map between an integer value and a character. The most common
character set is ASCII.
Integer (C++)
Integers are whole numbers with a machine dependent range of values. A good
programming language as to support the programmer by giving a control on a range of
numbers and storage space. C has 3 classes of integer storage namely short int, int and
long int. All of these data types have signed and unsigned forms. A short int requires half
the space than normal integer values. Unsigned numbers are always positive and
consume all the bits for the magnitude of the number. The long and unsigned integers are
used to declare a longer range of values.
SYNTAX ERRORS
A syntax error is a violation of the syntax, or grammatical rules, of a natural
language or a programming language. The following sentence contains an
error of English syntax:
If we write or say this sentence, other English speakers will know that we have
used incorrect grammar, however they will still understand what we mean. Programming
languages are not so forgiving, however. If we write a line of C++ code containing a syntax
error, the compiler does not know what we mean. A syntax error is called a fatal compilation
error, because the compiler cannot translate a C++ program into executable code if even one
syntax error is present.
int num;
float value
double bigNum;
int num;
float value
double bigNum;
bigNum = num + value;
A function declared with a return type must contain a return statement. Consider the following
function,
which is supposed to round its float parameter up or down appropriately:
int RoundFloat (float floatToRound)
{
int roundedValue;
roundedValue = int (floatToRound + 0.5);
}
SEMANTIC ERRORS
Infinite Loop An infinite loop, which repeats indefinitely, is often created when a programmer
writes a loop in which the expression tested never becomes false. For example, consider the
following code, which is intended to read a lower case ’y’ or ’n’ from the user:
Global All the modules in the project The life of the program execution
Static global Only the module where declared The life of the program execution
Local The block in which it's declared As long as execution is inside the block
Declaration Scope Lifetime
Static local The block in which it's declared The life of the program
The Scope of a particular variable is the range within a program's source code in which
that variable is recognized by the compiler. When scope rules are violated, errors will be
generated during the compilation step. Technically these errors fall in the syntax category
but conceptually they result from improper awareness of how scope rules are applied.
The Lifetime of a particular variable is the range within an executing program in which
that variable is instantiated and retains its' value. When lifetime rules are violated, no
compiler errors result, rather the program will demonstrate logic errors. Logic errors are
typically much more difficult to isolate than compiler errors.
Variables are categorized as either local or global solely based on there they are declared: inside
a block out outside all blocks. A block is any code fragment enclosed in an left curly brace, {,
and a right curly brace, }. Local variables are declared in a block. Global variables are declared
outside of all blocks.
A local variable is limited in scope to all the code below the declaration until the end of the
enclosing block. The variable is also visible to any other blocks that are enclosed in the original
block.
A global variable is not limited in scope. This type of variable is visible to every module in the
project. A commonly bemoaned shortcoming of C++ is the exposure created by using global
variables. This situation is usually avoided by prohibiting the use of global variables and instead
passing information between modules in the form of function/method parameters.
A variant of the 'normal' local variable is the static local. By prepending the keyword static to the
variable declaration, a programmer can alter the lifetime of the variable. This keyword causes the
compiler to preserve the value of the variable even when it goes out of scope; the lifetime
becomes the entire execution of the program.When program execution reenters the blockn in
which the variable is declared, the variable still has the value it had when execution last left that
block.
Static Global Variables
A variant of the 'normal' global variable is the static global. Static global variables are visiible to
all methods/functions in the module where the variable is declared, but not visible to any other
modules in the project. This strategy greatly reduces the opportnities for logic errors in larger
programs. Some coding standards endorse static global variables while discouraging non-static
global variables. By doing this a mechanism for sharing information within a module is still
provided.
TABLE DESIGN
Books : Table
Members: Table
The Home page designed for selection of the different Menus. Following menu options have
been provided in this Home Form:
1. Introduction
2. Add new Book
3. Add new member
4. Issue Book
5. Return Book
6. List of books
7. List of members
8. Edit
9. Quit
DFD :
REQUIREMENTS
Hardware requirements
Software requirements
The test-plan is basically a list of test cases that need to be run on the system. Some of the
test cases can be run independently for some components (report generation from the
database, for example, can be tested independently) and some of the test cases require the
whole system to be ready for their execution. It is better to test each component as and
when it is ready before integrating the components.
It is important to note that the test cases cover all the aspects of the system (ie, all the
requirements stated in the RS document).
LIMITATIONS
• This system can be used by only the literate persons.
• Generation of reports takes time..
• Security problem.
CONCLUSION
BIBLIOGRAPHY
www.cplusplus.com/doc/tutorial/
www.intap.net/~drw/cpp/
www.arachnoid.com/cpptutor/
en.wikipedia.org/wiki/C%2B%2B