Skip to main content

Posts

Featured

Input and Display Data in Structure using functions

#include   <iostream> using   namespace   std ; struct   Person {      char   name [ 50 ];      int   age ;      float   salary ; }; Person   getData ( Person ); void   displayData ( Person ); int   main () {      Person   p ,  x ;      getData ( p );      p   =   x ;      displayData ( p );      return   0 ; } Person   getData ( Person   p ) {      cout   <<   "Enter Full name: " ;      cin . get ( p . name ,  50 );      cout   <<   "Enter age: " ;      cin   >>   p . age ;      cout   <<   "Enter salary: " ;      cin ...

Latest Posts

Simple Calculator inC++

Sum of first 10natural numbers using C++

Structure to enter Details of a person.

C++ program to write multiplication table.

Checking Armstrong number using C++

Checking Palindrome using c++

if-else in c++

Hello World in C++

Class of Shop to tell the Price and itemId of a item.

Check the number is binary or not and if binary then its one's compliment.