restructure and add ipi texs

This commit is contained in:
2019-11-06 18:24:04 +01:00
parent e21da561fc
commit 8fd8d2a485
155 changed files with 129 additions and 0 deletions
@@ -0,0 +1,25 @@
#include<iostream>
#include<cassert>
#include "SimpleFloatArray.hh"
#include "SimpleFloatArrayImp.cc"
#include "SimpleFloatArrayIndex.cc"
#include "SimpleFloatArrayCopyCons.cc"
#include "SimpleFloatArrayAssign.cc"
#include "CheckedSimpleFloatArray.hh"
#include "CheckedSimpleFloatArrayImp.cc"
void g (SimpleFloatArray& a) {
std::cout << "beginn in g: " << std::endl;
std::cout << "access: " << a[1] << " " << a[10] << std::endl;
std::cout << "ende in g: " << std::endl;
}
int main () {
CheckedSimpleFloatArray a(10,0);
g(a);
std::cout << "beginn in main: " << std::endl;
std::cout << "zugriff in main: " << a[10] << std::endl;
std::cout << "ende in main: " << std::endl;
}