netcdf-cxx4/cxx4/test2.cpp
Ed Hartnett 965b61a671 new
2011-08-17 18:56:14 +00:00

25 lines
345 B
C++

// Purpose: Converts ida3 format xma data to netcdf4
// Usage: xma2netcdf <shot number>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <cstddef>
using namespace std;
int main()
{
struct st{
double x;
int y;};
struct st a;
cout <<a.x <<endl;
cout <<a.y <<endl;
cout << offsetof(st,y) <<endl;
return 1;
}