Czy byłby ktoś w stanie wyłapać co robię źle w tym programie? Z góry dzięki za pomoc.
Source.cpp
#include <iostream>
#include <string>
#include "poczta.h"
using namespace std;
void wypisz(poczta x);
int main()
{
poczta mail;
cin >> mail.nadawca;
wypisz(mail);
system("pause");
}
void wypisz(poczta x)
{
cout << x.nadawca;
}
poczta.h
#pragma once
class poczta
{
public:
string nadawca;
string odbiorca;
string temat;
string tresc;
};