#include <iostream>
#include <string>
#include <limits>
using std::cin, std::cout, std::numeric_limits, std::streamsize;
struct echip
{
char name[30];
double price;
};
void read(echip* p, int n)
{
for (int i = 0; i < n; i++)
{
cout << "Name: ";
cin.ignore(numeric_limits<streamsize>::max(), '\n');
cin.get((p + i)->name, 30);
//cout << (p + i)->name;
cout << "Price: ";
cin >> (p+i)->price;
//cout << (p+i)->price;
}
}
int main()
{
echip* k;
int n;
cout << "Number: "; cin >> n;
k = new echip[n];
read(k, n);
delete[] k;
return 0;
}