Bonjour,

Je commence sur un nouveau post-doc, je dois travailler sur un code déja existant programé initialement e C++. Seulement mes connaissances sont trés limités en C++

Est ce que queqlqu'un peut me dérouler ce petit programe et notament l'instruction Chameleon() {};. Merci d'avance:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef CHAMELEON_H__
#define CHAMELEON_H__
 
#include <string>
 
class Chameleon {
public:
	Chameleon() {};
	explicit Chameleon(const std::string&);
	explicit Chameleon(double);
	explicit Chameleon(const char*);
 
	Chameleon(const Chameleon&);
	Chameleon& operator=(Chameleon const&);
 
	Chameleon& operator=(double);
	Chameleon& operator=(std::string const&);
 
public:
	operator std::string() const;
	operator double     () const;
	operator int        () const;
	operator bool		() const;
private:
		std::string value_;
};
 
#endif