#include<iostream.h>
#include<conio.h>
#include<stdio.h>
class city
{
private:
int c_code;
char c_name;
long int nop;
float km;
float density;
public:
void record();
void view();
void manage();
};
void city::record()
{
cout<<"enter the code \n";
cin>>c_code;
cout<<"enter the name \n";
gets(c_name);
cout<<"enter the no of person\n";
cin>>nop;
cout<<"enter the km\n";
cin>>km;
density=(pop/km);
}
#include<conio.h>
#include<stdio.h>
class city
{
private:
int c_code;
char c_name;
long int nop;
float km;
float density;
public:
void record();
void view();
void manage();
};
void city::record()
{
cout<<"enter the code \n";
cin>>c_code;
cout<<"enter the name \n";
gets(c_name);
cout<<"enter the no of person\n";
cin>>nop;
cout<<"enter the km\n";
cin>>km;
density=(pop/km);
}
No comments:
Post a Comment