File: test2.cpp

package info (click to toggle)
netcdf-cxx 4.3.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,456 kB
  • sloc: cpp: 8,506; sh: 4,548; ansic: 4,251; xml: 173; makefile: 145
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;
}