mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +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;
|
|
}
|
|
|