Library Management System
Hello I am developing program of library management system where I need to use C++ but without class. So I am facing problem at two place,
One is when there are no books information at that time it should show No books found and the other is while searching the books through ISBN number. Both the things are not happening. So please anyone try to solve it...
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
struct library
{
char isbn[10],b_name[15],a_name[15],search[10];
}stud[100];
void main()
{
int i,j,a,flag=0;
char op,b;
do
{
clrscr();
cout<<"Press 1 to input information"<<endl;
cout<<"Press 2 to display book information"<<endl;
cout<<"Press 3 to search for book"<<endl;
cout<<"Press 4 to exit"<<endl;
cin>>a;
switch(a)
{
case 1:
{
clrscr();
cout<<"How many records do you want to enter: \t";
cin>>j;
clrscr();
for(i=0;i<j;i++)
{
cout<<"Enter Record: "<<i+1<<endl;
cout<<"Enter ISBN Number: \t";
cin>>stud[i].isbn;
cout<<"Enter Book Name: \t";
cin>>stud[i].b_name;
cout<<"Enter Author Name: \t";
cin>>stud[i].a_name;
}
break;
}
case 2:
{
clrscr();
cout<<"----------------------------------------------------------------------------"<<endl;
cout<<"ISBN Number\t\t\tBook Name\t\t\tAuthor Name"<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
> if(stud[0].isbn==" ")
> {
> cout<<"No Recods found";
> }
else
{
for(i=0;i<j;i++)
{
cout<<stud[i].isbn<<"\t\t\t\t"<<stud[i].b_name<<"\t\t\t\t"<<stud[i].a_name<<endl;
}
}
break;
}
case 3:
{
cout<<"Enter ISBN number that you want to search";
cin>>stud[0].search;
cout<<"----------------------------------------------------------------------------"<<endl;
cout<<"ISBN Number\t\t\tBook Name\t\t\tAuthor Name"<<endl;
cout<<"----------------------------------------------------------------------------"<<endl;
for(i=0;i<j;i++)
{
> if(stud[i].isbn==stud[0].search)
> {
> cout<<stud[i].isbn<<"\t\t\t"<<stud[i].b_name<<"\t\t\t"<<stud[i].a_name<<endl;
> flag = 1;
}
}
if(flag==0)
cout<<"Sorry No Reords found"<<endl;
// cout<<"Real"<<stud[i].isbn<<"Search"<<stud[0].isbn;
break;
}
case 4:
{
}
}
cout<<"Do you want to continue: ";
cin>>op;
}while(op=='Y'||op=='y');
getch();
}
View Answers
Related Tutorials/Questions & Answers:
Library Management SystemLibrary Management System Hello I am developing program of
library management system where I need to use C++ but without class. So I am facing...;
struct
library
{
char isbn[10],b_name[15],a_name[15],search[10];
}stud[100
Advertisements
for management systemfor
management system i need to store some data and to display the stored data and again to modify the data that have been stored and also with either java swing or java awt in format of similar to tat of form
library managementlibrary management i need java script code for
library management system with html
library managementlibrary management i need java script code for
library management system with html
library managementlibrary management i need java script code for
library management system with html
library managementlibrary management i need java script code for
library management system with html
library systemlibrary system hi to all..please help me how to make a
library system using a java program..please response me
library systemlibrary system hi to all..please help me how to make a
library system using a java program..please response me
Pharmacy Management SystemPharmacy
Management System hi all i wanna Pharmacy
management system in java or vb.net or web application >> << thx all
material management systemmaterial
management system hi frnds i need a mini project based on material
management system if u have the project please post to me on java beginners
Complaint Management SystemComplaint
Management System Hi......i have to create a complaint
management system where the user calls a toll free number and a computerized voice... with the complaint number. I have no idea as to how I should go about this
system Fleek Management System(FMS)Fleek
Management System(FMS) Hi,
Please anybody can reply....I wanna develop a project(FMS) in Java , which was already developed in PHP. Now what technologies should i apply for developing this project. The main aim
hospital Management Systemhospital
Management System hello sir
i want hospital
management system Source code in java swing Back-end Oracle 9i.
i want these type of model
1. Username and password
2. staff details
i. Doctor details
ii. nurse
STUDENT MANAGEMENT SYSTEMSTUDENT
MANAGEMENT SYSTEM can any one help me with the coding if this using awt please!!!!!!!
STUDENT
MANAGEMENT SYSTEM
Table details
Student
(STUDENTID, NAME, ADDRESS, PHONE, MAILID, COURSEID (Foreign Key))
Course
(COURSEID
Student Management SystemStudent
Management System Hi , Friend can i get the solution for connecting login page of JFrames to JDBC
resume management systemresume
management system hey coders im making an web application for managing resumes.. the application should be able to manage all incoming resumes and information from the client.. m using java as the front end and oracle
Java Hospital management systemJava Hospital
management system hospital
management
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="java.sql.*" %>
<!DOCTYPE html>
<html>
<body>
attendance management system source codeattendance
management system source code sir i want full ateendance
management project please send me source code i am asking so many members... answer so please send code it's very urgent
creating an applet for student management system a student
management system having the following characteristics:
The interface...creating an applet for student
management system Write an applet/awt application which displays the interface for the program described below. When
Vehicle fleet management system a better vehicle fleet
management system. This
system
involves
management... of the fleet must incorporate vehicle fleet
management system
in his planning....
Management of Fleet:
It involves several things, from keeping records
online library managementonline
library management how to divert user from log in page to home page depending on their category(like student or staff in case of ol
library) using java servlet
Fleet management system software evaluationFollowing article is about Fleet
management system software
evaluation. People... they are running. And fleet
management system software is considered as
the spine... Navigation Satellite
System).
The most important part in the
management Best fleet management systemBest fleet
management system involves a good coordination
between the manager...
management. Tracking technologies like GPS (Global Positioning
System..., as there is no overtime and less fuel usage.
Best fleet
management system is the key
project on bank management system - Swing AWTproject on bank
management system plz give me code to move from by clicking a button on one panel to other panel and the add textfield and label such as name , address etc to second panel and textfield are one below to other
Database Management System (DBMS) Database
Management System (DBMS)
A Database
Management System...
management system (RDBMS). A newer kind of DBMS is the object-oriented database
management system (ODBMS). The DBMS are categorized according to their data types