C++ Program to Store and Display Information Using Structure
xcode 649 8th Aug, 2021
Loading Please wait...
Description
This program stores the information (name, roll and marks) of 10 students using structures. To understand this example, you should have the knowledge of the following C++ programming topics: C++ Arrays C++ Structures In this program, a structure, student is created. This structure has three members: name (string), roll (integer) and marks (float). Then, we created a structure array of size 10 to store information of 10 students. Using for loop, the program takes the information of 10 students from the user and displays it on the screen.
Recent Pastes
- C++ Program to Add Two Numbers
C++ | 5.4K | 10 months ago
- C++ Program to Print Number Entered by User
C++ | 3.1K | 10 months ago
- C++ "Hello, World!" Program
C++ | 2.3K | 10 months ago
Please disable your adblock and script blockers to view this page