update
This commit is contained in:
9
src/amscppperm1/amscppperm1.cpp
Normal file
9
src/amscppperm1/amscppperm1.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
#include <amscppperm1/amscppperm1.hpp>
|
||||
|
||||
namespace ams
|
||||
{
|
||||
namespace perm
|
||||
{
|
||||
|
||||
}; //end namespace perm
|
||||
}; //end namespace ams
|
25
src/amscppperm1/permutation.cpp
Normal file
25
src/amscppperm1/permutation.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
#include <amscppperm1/amscppperm1.hpp>
|
||||
|
||||
namespace ams
|
||||
{
|
||||
namespace perm
|
||||
{
|
||||
|
||||
permutation::permutation()
|
||||
{
|
||||
dim = 0;
|
||||
data = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
permutation::~permutation()
|
||||
{
|
||||
if(data!=NULL) {delete[] data; data = NULL;}
|
||||
dim = 0;
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
}; //end namespace perm
|
||||
}; //end namespace ams
|
@ -1,12 +0,0 @@
|
||||
#include <amscpptemplate25a/amscpptemplate25a.hpp>
|
||||
|
||||
namespace ams
|
||||
{
|
||||
|
||||
void amscpptemplate_testfn2()
|
||||
{
|
||||
printf("Test function 2.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
};
|
@ -1,12 +0,0 @@
|
||||
#include <amscpptemplate25a/amscpptemplate25a.hpp>
|
||||
|
||||
namespace ams
|
||||
{
|
||||
|
||||
void amscpptemplate_testfn()
|
||||
{
|
||||
printf("Test function.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
};
|
@ -1,9 +1,9 @@
|
||||
#include <amscpptemplate25a/amscpptemplate25a.hpp>
|
||||
#include <amscppperm1/amscppperm1.hpp>
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int ret = 0;
|
||||
printf("ams c++ project template tests.\n");
|
||||
ams::amscpptemplate_testfn();
|
||||
|
||||
return ret;
|
||||
}
|
Reference in New Issue
Block a user