検索結果 1 件
- 7年前
- フォーラム: C言語何でも質問掲示板
- トピック: スタックについて
- 返信数: 4
- 閲覧数: 2385
スタックについて
スタックについての質問です。 このヘッダの部分でエラーが出てしまいますこのコードはc言語で学ぶアルゴリズムとデータ構造 (柴田望洋著) という本からの引用です。 #ifndef IntStack #define IntStack typedef struct { int max; int ptr; int *stk; }IntStack; int Initialize(IntStack *s, int max); int Push(IntStack *s, int *x); int Peek(IntStack *s, int *x); void Clear(const IntStack *s)...