sdlab.hはSDLabの標準ヘッダファイルです。いちいちincludeするのが面倒なので頻繁に使う関数のヘッダファイルは全部includeしてます。

#ifndef SDLAB_H
#define SDLAB_H

#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <math.h>
#include <unistd.h>
#include <termios.h>
#include <time.h>
#include <float.h>

#include <sys/socket.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <netdb.h>

#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>

#include <vector>
#include <complex>

using namespace std;
typedef std::complex<double> sdlab_complex;

#endif

  添付編集
Last-modified: 2015-08-02 (日) 12:21:12 (3182d)