Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Define a structure in C++:
Write a program a structure in c++ program.
void main()
{
struct player
char name[20];
int age,height;
} ;
struct player p[3];
int i,j,k;
clrscr();
for (i=0;i<=2;i++)
printf("Enter the name of player %d ,age %d,height %d\n",i+1,i+1,i+1);
scanf("%s %d %d",p[i].name,&p[i].age,&p[i].height);
}
printf("%s %d %d\n",p[i].name,p[i].age,p[i].height);
getch();
// Basic pointer code #include "stdafx.h" #include iostream using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int FirstNumber, SecondNumber;
Write a function that has a single int parameter n and returns an int: 0 if n is negative, otherwise 1. You are not allowed to simply check the integer value, and should use the fu
t a shop of marbles, packs of marbles are prepared. Packets are named A, B, C, D, E …….. All packets are kept in a VERTICAL SHELF in random order. Any numbers of packets with these
write a program that declares and initializes 2 integer variable a and b with the value 35 and 14, and displays and calculates their sum,product,quotient and real division result.t
What is the difference between structure and class? - Members of structures are public while those of a class are private. - Classes provide data hiding while structures don
What about Virtual Destructor?
Inheritance and Reuse Consider a car manufacturing company. When they require building a new car, they have two choices. They can start from the scratch, or they can change an
Explain about the Integer constants in c language? An integer constant is the integer valued number and it refers to a sequence of digits. A decimal integer constant includes o
Templates permit to create generic functions that admit any data type as parameters and return value without having to overload the function with all the possible data types. Until
A palindrome is a string that reads the same from both the ends. Given a string S convert it to a palindrome by doing character replacement. Your task is to convert S to palindrome
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd