#ifndef A_H #define A_H #include <stdlib.h> class A{ int member1; public: void Assign(int v); void Print(); }; #endif
#include "A.h" #include <iostream> using namespace std; void A::Assign(int v){ member1 = v; } void A::Print(){ cout<<member1<<endl; }
#include <stdlib.h> #include "A.h"; int main(){ A a1; a1.Assign(1); a1.Print(); return 0;
<stdlib.h>
#include "A.h"
#include <A.h>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)