Psst.. new poll here.
[email protected] web/email now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!
Paste
Pasted as C++ by registered user raphael ( 1 year ago )
#include "membre.h"
#include <iostream>
using namespace std;
membre::membre()
{
this->m=50;
}
void membre::toString(){
cout<<"Le nombre contenu dans l'objet est : "<<this->m<<endl;
}
//--------------------------------------------------------------------------------------------------------------------
#ifndef MEMBRE_H
#define MEMBRE_H
class membre
{
public:
membre();
int m;
void toString();
};
#endif // MEMBRE_H
//--------------------------------------------------------------------------------------------------------------------
//Auteur : Raphael De Oliveira
#include <iostream>
#include "test.h"
#include "membre.h"
int main() {
membre m1;
m1.toString();
return 0;
}
Revise this Paste