~ubuntu-branches/ubuntu/wily/openms/wily

« back to all changes in this revision

Viewing changes to source/EXAMPLES/Tutorial_DPosition.C

  • Committer: Package Import Robot
  • Author(s): Filippo Rusconi
  • Date: 2012-11-12 15:58:12 UTC
  • Revision ID: package-import@ubuntu.com-20121112155812-vr15wtg9b50cuesg
Tags: upstream-1.9.0
ImportĀ upstreamĀ versionĀ 1.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <OpenMS/DATASTRUCTURES/DPosition.h>
 
2
#include <iostream>
 
3
 
 
4
using namespace OpenMS;
 
5
 
 
6
Int main()
 
7
{
 
8
  DPosition<2> pos;
 
9
  pos[0] = 8.15;
 
10
  pos[1] = 47.11;
 
11
 
 
12
  for (Size i = 0; i < DPosition<2>::DIMENSION; ++i)
 
13
  {
 
14
    std::cout << "Dimension " << i << ": "<< pos[i] << std::endl;
 
15
  }  
 
16
 
 
17
  return 0;
 
18
} //end of main