У меня есть строковый объект в объекте карты, который находится в объекте класса, тогда он дает мне ошибку, что делать < /p>
#include
#include
#include
#include
using namespace std;
class student
{
public:
int rollno;
char name[50];
int sub[10];
map marks;
};
int main()
{
int totalsub;
student st;
st.rollno=21;
strcpy(st.name,"Aman Tiwari");
cout > totalsub;
for (int i = 0; i < totalsub; i++)
{
int num;
string str;
cin.ignore();
cout
Подробнее здесь: https://stackoverflow.com/questions/751 ... inary-file