netcdf-cxx4/cxx4/test2.cpp

25 lines
345 B
C++
Raw Permalink Normal View History

2011-08-18 02:56:14 +08:00
// 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;
}