fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void test(const float *x){
  5. cout<<x[0]<< " "<<x[1]<<endl;
  6. }
  7.  
  8. int main(){
  9. float **x=new float*[3];
  10. for(int i=0;i<3;i++){
  11. x[i]=new float[2];//Anlegen des 3*2Arrays
  12. }
  13. x[0][0]=1;x[0][1]=2;//manuelles Füllen
  14. x[1][0]=4;x[1][1]=3;
  15. x[2][0]=5;x[2][1]=6;
  16.  
  17. test(x[0]);
  18. }
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
1 2