File: test2.cpp

package info (click to toggle)
netcdf-cxx 4.3.0%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,016 kB
  • ctags: 1,015
  • sloc: sh: 11,553; cpp: 8,167; xml: 173; ansic: 134; makefile: 108
file content (24 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// 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;
}