/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to Development/languages/C/Samples/c_cpp/class.cpp

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <iostream>
 
2
 
 
3
class TestDrive {
 
4
 public:
 
5
    TestDrive(int j);
 
6
};
 
7
 
 
8
TestDrive::TestDrive(int j) {
 
9
    std::cout<<"Object created\nArgument: "<<j<<"\n";
 
10
}
 
11
 
 
12
 
 
13
void wrapper_level1(int j) {
 
14
    TestDrive a(j);
 
15
}
 
16
 
 
17
 
 
18
extern "C" {
 
19
    void wrapper(int j) {
 
20
        wrapper_level1(j);
 
21
    }
 
22
}
 
23