added java & fixed z7
This commit is contained in:
commit
d9bc3c5fa4
1
POB_Java/.gitignore
vendored
Normal file
1
POB_Java/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.class
|
20
zad7_3.cpp
Normal file
20
zad7_3.cpp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
template <typename type>
|
||||||
|
class Array {
|
||||||
|
private:
|
||||||
|
type* ptrs;
|
||||||
|
Array(){}
|
||||||
|
~Array(){}
|
||||||
|
public:
|
||||||
|
Array& operator new [](){
|
||||||
|
Array();
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
void operator delete [](){
|
||||||
|
~Array();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user