#include <iostream>
using namespace std;
struct produto {
char nome[21];
float valorvenda;
};
int main() {
produto prod1 = { "Caneca", 5.00 };
cout << "Nome do Produto: \n";
cin >> prod1.nome;
cout << "Valor de venda: \n";
cin >> prod1.valorvenda;
}
//https://pt.stackoverflow.com/q/236487/101
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKc3RydWN0IHByb2R1dG8gewogICAgY2hhciBub21lWzIxXTsKICAgIGZsb2F0IHZhbG9ydmVuZGE7Cn07CgppbnQgbWFpbigpIHsKICAgIHByb2R1dG8gcHJvZDEgPSB7ICJDYW5lY2EiLCA1LjAwIH07CiAgICBjb3V0IDw8ICJOb21lIGRvIFByb2R1dG86IFxuIjsKICAgIGNpbiA+PiBwcm9kMS5ub21lOwogICAgY291dCA8PCAiVmFsb3IgZGUgdmVuZGE6IFxuIjsKICAgIGNpbiA+PiBwcm9kMS52YWxvcnZlbmRhOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yMzY0ODcvMTAx