mirror of
https://github.com/Unidata/netcdf-cxx4.git
synced 2024-11-21 03:13:46 +08:00
25 lines
345 B
C++
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;
|
||
|
}
|
||
|
|