Home Answers Viewqa Hibernate C++ How to dispaly details for students and Create object for student class and input dispaly details

 
 


Azim Ajmeri
C++ How to dispaly details for students and Create object for student class and input dispaly details
1 Answer(s)      a year and a month ago
Posted in : Hibernate

1.Create a class called student with following descriptions Data member : Rno - int Name - char[20] Std - int Mark1 int Mark2 - int Mark3 - int Member function Getdata() - To input details for students Putdata() - to dispaly details for students Create object for student class and input dispaly details.

View Answers

May 8, 2012 at 4:26 PM


The given code defines a class Student which describes two member functions. The function Getdata() accepts the student roll no, name and marks of three subjects from the user and Putdata() display this information.

#include <iostream>
#include <stdio.h>
#include <conio.h>

using namespace std;
class student
{
      private :
             int sno;
             char name[20];
             int m1,m2,m3;
      public :
             void Getdata()
             {
                   cout << "Enter Student No.  "; cin >> sno;
                   cout << "Enter Student Name  "; cin >> name;
                   cout << "Enter Student 3subjects marks  ";
                   cin >> m1 << m2 << m3;
             }
             void Putdata()
             {
                   cout  << "Student number  :" << sno;
                   cout << "Student name      :" << name;
                   cout << "Student marks     :" << m1 << "  " <<m2<<"  "<<m3;
            }
};
void  main()
{
      student s;
      s.Getdata();
      s.Putdata();
      return 0;
}]









Related Pages:
student details
student details  create an application for details of 1st to 5th standard students by using loops and scanner
C++ quuestion 1
C++ How to dispaly details for students and Create object for student class and input dispaly details   1.Create a class called student... Putdata() - to dispaly details for students Create object for student class
using list iterator create student details - JavaMail
which will describe you how to create Student class and add its properties...using list iterator create student details  write a java program to create student class with particulars like name, rno, marks,etc. and print them
student details
student details  hi sir/madam i have a doubt in PHP how to insert student details using mysql with php..   Have a look at the following link: PHP Mysql insert
how to develop student details using springs
how to develop student details using springs  how to develop student details using springs
how to dispaly pdf file on browser
how to dispaly pdf file on browser  In my project i have created one pdf file(by pdfwriter) into my local mechine . after that it need to display in browser as a pdf file . but in jsp i can't display by tag can anyone give me
the grade of students
a number of students in a class. Then, prompt user to input the student�s programming mark. Determine how many student get A+ and A for their grade and how many students get D and E based on the following table: Marks
APLIANCE DETAILS
that contains the Appliance class. Now I want to create a class named NewAppliance that stores the details of the newly launched appliances.I used the following syntax to code the NewAppliance class that inherits from the Appliance class
JDBC: Get Column Details Example
JDBC: Get Column Details Example In this tutorial, we are describing how to get column details of a table using JDBC API. Get Column details...(); // Fetching Column details String sql = "SHOW COLUMNS FROM student"; rs
Java programs on students assesment
Java programs on students assesment  1) Write a Java program that reads the details of student and do the mark assessments. (i) Input the name of the student and student id from the user. (Use String variable to hold the student
How to create file from input values in Jframe ?
How to create file from input values in Jframe ?  hi i m doing my... an object for it.my java code is public class submit { JFrame frame; JTextArea... the user's academic details and on clicking the submit button,it displays all
student
student  how do i create a program that writes out the message :Welcome to Kaplan University!"   Hi Friend, Try the following code: class Message { public static void main(String[] args
Student - Java Beginners
Student  Create a class named Student which has data fields... an array of object with 10 elements represent ten students with all the data fields..., Try the following code: import java.util.*; public class Student{ int
JSP to add details to a database from a HTML form.
JSP to add details to a database from a HTML form.  Hi I'm a second year CS student who has to use JSP to validate a HTML form and add the details...; Welcome , please enter your details <td> </table> Username<input
scjp details
scjp details  SCJP fees details abou scjp? What are the best books for preparing to scjp? How many time scjp exam's are conducted for one year
Write a program to get student details and store in a database
Write a program to get student details and store in a database  Write a program to get student details and store in a database
Maintaining States of Selected CheckBoxes in Different Pages using dispaly table in struts2
Maintaining States of Selected CheckBoxes in Different Pages using dispaly table in struts2  Hi, I am working in a Struts 2 project where in the jsp... me how to maintain States of Selected CheckBoxes in Different Pages using
input output
class.  CharArrayReader It used for char input... This class uses for create a FileInputStream and FileOutputStream... This class overrides all methods of InputStream and contains some other input
Student Marks
programming grades of 8 IT students. Randomly create student numbers for each of the students and store each in an array. The program should take the input of (validate the input where appropriate): Names of Students and store them
C++Tutorials
teaches the C++ programming language but assumes that the student has already... to Object-Oriented Programming Using C++ This tutorial is a collection... Using C++ . In this course, object-orientation is introduced as a new
details of my program - Java Beginners
details of my program  hi 1- allow the customer to order any thing...*; import java.util.Scanner; class Bell{ String bellName; double bellPrice; int...; } } class Order{ String orderName; double orderPrice; public
Dispaly Inbox Image - Development process
Dispaly Inbox Image   I want to Display Inbox image when user(Client) send Message to Server in (Windows Application ) VISUAL BASIC.NET 2008, plz Help Me
How to extract details from XML? - JSP-Servlet
How to extract details from XML?  I want to extract details from http://service.openkapow.com/palanikumar/airportantigua.rest How can i extract details from this link?Here is my program... Airport
how to retrive other details with an image - Swing AWT
how to retrive other details with an image  hello I m trying..... followingis my code..plz advice me how to get both values as well as image at a same...("Select visitor_firstname,Type_code, image_data from visiting_details where Ticket
Student
Student  Is Agitar Software used for generating junit test cases for Texlipse plugin in eclipse IDE? If yes, how? what should be the input values to the project
bank details - JSP-Servlet
is first to set the user account details in database, and the to create a login...bank details  hi i just need a coding for bank details... since iam... is did is i created a database for users account details and created a login
how to code-updating some details n some details r unchanged
how to code-updating some details n some details r unchanged  i have created a page with empty text boxes,details are.... house... : bloodgroup : my requirement is to update the details of user. and i had written
Get specific item details by clicking on hyperlink
Get specific item details by clicking on hyperlink  sir, I am... of that particular item which I clicked. How should I perform this? Thanks in advance...;tr><td>Item:</td><td><input type="text" value="<
how to access the details - Java Beginners
how to access the details  how to access the detailsclass E { String name; String no;string place; E(String n,String n,String p) { ... ... .... } public String... no)and retrive all the details of the person which is not given
c++ - AOP
student,the following details are available: a candidate number -4 digits... student should also be output.end of output is to be signaled by input of a negative...c++  hi friends,i got this question and i need u help. "Two subjects
j2ee environment varaiable details
*; import java.io.*; public class helloworldservlet extends genericservlet
C/C++ Programming Books
; Object-Oriented Programming and The Objective C Language..., with details of how to download up-to-date compressed versions of the text and its... know much about C or C++, it just introduces a new object oriented language
Employee Details - JSP-Servlet
to do that, you have to forward form to either java action class or to some jsp (i.e
Student database
Student database  Create a class Student with Name, Gender, and Date of Birth and Input Student and print as ?Dear Mr/Mrs Name, your Age is 99 Years?. Mr/Mrs - only one should be displayed based on their age and Gender
Input And Output
This class reads the primitive data types from the input stream.... FileDescriptor This class uses for create a FileInputStream.... InputStream This class represents an input stream of bytes
How to create a Student data base using Linked List in java
How to create a Student data base using Linked List in java  I want... want anything it should display null   import java.util.*; class...")); Scanner input=new Scanner(System.in); System.out.print("Enter record
Retrieval column details into respective JComboboxs
Retrieval column details into respective JComboboxs   Hello sir, As of now i created program in the Eclipse the GUI window .I had creaated... in there respective comboboxs.. how to achive it,plz help me in this regard through by code
how to get the details of username&password of mysql - JDBC
how to get the details of username&password of mysql  Hi friends, i installed mysql 5.5 on my system successfully,but the thing is i forgotten the username and password .please tell me how to get those details . Thanks
STUDENT MANAGEMENT SYSTEM
student/course :view fee details for a particular student/all students/course...STUDENT MANAGEMENT SYSTEM  can any one help me with the coding if this using awt please!!!!!!! STUDENT MANAGEMENT SYSTEM Table details Student
implementation object in C
implementation object in C  how to create and implement an object in C
How to display gridview details to labels dynamically?
How to display gridview details to labels dynamically?  I am using SQLDataSource to connect to MySQL. I have a gridview that retrieves information... to display however, it always displays the details of the previously selected id
customer details
customer details  write a java code to enter n number of persons details(name,address,phone number) in a array list. Also consider exceptional cases like entering integer in name,character in phone number. use try,catch ,throw
create examination slip for students
create examination slip for students  hello,can anyone help me how to create examination slip that include subject code,courses,credit hours,grade ,and status
adding a method to calculate a students grade
someone help please the program code is as follows: class Student { private...adding a method to calculate a students grade  The Following program which displays a students name, id and mark works fine. But when i tried to add
get details of employee after enter the emp_id
get details of employee after enter the emp_id  how to get employee details after entered the emp_id from database after that we have three more option add new,modify and delet employee   Please visit the following
get details of employee after enter the emp_id
get details of employee after enter the emp_id  how to get employee details after entered the emp_id from database after that we have three more option add new,modify and delet employee   Please visit the following
c++
; double w; }; xClass x; a. How many members does class xClass have? b. How many private members does class xClass have? c. How many constructors does class xClass...c++  Consider the following declarations: class xClass { public: void
How to create an input box?
How to create an input box?  How to create an input box
Implementing more than one Job Details and Triggers
Implementing more than one Job Details and Triggers... will learn how to implement more than one triggers and jobs with a quartz... that contains Job Details and Triggers. It has a name and group associated with them