79388434

Date: 2025-01-26 11:38:14
Score: 0.5
Natty:
Report link

I've this class "Vettore" and I need to read an input file with a function (i dont know how to adapt a "ReadfromFile" funcion to classes) and and store them to objects of a class Vettore. I also need to order the content of the class with selection sort

enter code here
class Vettore{

public: 
 

Vettore(); 
Vettore(int N); 


~Vettore();

//copy constructor 
Vettore(const Vettore&); 

//assignement operator 

Vettore& operator=(const Vettore&);


unsigned int GetN() const {return m_N;};
void SetComponent(int, double);
double GetComponent(int) const;
double& operator[](int); 

void Scambia(int, int);

private: 

int m_N; 
double * m_v; 

};
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aurora Pavanello