I need codign help
Problem :
*******************************
Consider an entity as Customer. Let its attributes be Name, Contact address and Phone no. A function is responsible for setting and another for printing the values for an instance of this entity. Implement this entity with its attributes and functions as a struct in C++.
Code:#include <iostream> using namespace std; struct Customer { char Name; char Address; double Phone; }; int main() { { cout << "Enter Name:" ; cin >> Name; } { cout << "Enter Address:" ; cin >> Address; } { cout << "Enter Phone Number" ; cin >> Phone; } };
I need a help with above problem..
Is my above code correct ?



LinkBack URL
About LinkBacks


