File: list.h

package info (click to toggle)
craft 3.5-4
  • links: PTS
  • area: main
  • in suites: potato
  • size: 17,996 kB
  • ctags: 1,585
  • sloc: cpp: 3,793; makefile: 2,310; ansic: 839; sh: 385
file content (37 lines) | stat: -rw-r--r-- 1,103 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*======================================================================*/
/*= CHANGES AND UPDATES                                                =*/
/*======================================================================*/
/*= date   person file       subject                                   =*/
/*=--------------------------------------------------------------------=*/
/*=                                                                    =*/
/*= 270694 hua    list.h     created                                   =*/
/*=                                                                    =*/
/*======================================================================*/

#ifndef list_h
#define list_h

#include "bool.h"

#define max_elements 100


struct list
  {int  num;
   int  elem [max_elements];
   bool is_universal;
 };


list list           (int e);
list empty_list     ();
list universal_list ();
void print          (list l);
void copy           (list &l , list r);
list operator +     (list l, int e);
list operator -     (list l, int e);
bool operator %     (int e, list l);

#endif