Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Strange Photos Academic Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



C++ Program for student database


Posted Date: 14 Jun 2008    Resource Type: Articles/Knowledge Sharing    Category: Computer & Technology

Posted By: Girish Patil       Member Level: Diamond
Rating:     Points: 2



#include
#include
#include
#include

class student
{
private:
int roll_no;
char name[31];
int sub1;
int sub2;
float average;

public:

void input()
{
cout<<"\n enter name:";
cin>>name;
// cin.getline(name,30);
cout<<"\n enter roll_no:";
cin>>roll_no;
cout<<"\n enter marks in two subjects:";
cin>>sub1>>sub2;
average=float(sub1+sub2)/2;
}

void show()
{
cout<<"\n name:"< cout<<"\n roll_no:"< cout<<"\n average:"< }
};

void main()
{
clrscr();
student x;
x.input();
x.show();
getch();
}














































Responses

Author: Tejwant Singh Randhawa    15 Jun 2008Member Level: Silver   Points : 2
Nice program but this is not a database program it store the details in the memory. Here memory means program will store the details of the student in ram and it will temporary that means details of the student will be lost as soon as the program is closed.


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Software Engineering -Concepts-4
Previous Resource: C++ Program for Drestructor
Return to Discussion Resource Index
Post New Resource
Category: Computer & Technology


Post resources and earn money!
 
Related Resources

Watch TV Channels



Contact Us    Editors    Privacy Policy    Terms Of Use   

SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.