I have a pair member data in a class: pair<double,double> memory;
How can I change the firs or second element?
If I simply write memory.first = 42 the compiler says read-only structure
If I use memory = pair<double,double>(42,42) than: error passing 'this' argument
I dont understand, please help me
merse 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.