English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

#include
#include
#define QUEUE_SIZE 5
struct queue
{
int f;
int r;
int a[10];
};
typedef struct queue QUEUE;
void insert_rear(int item,QUEUE *Q)
{
-----------
}

THE ERRORS ISSUED ARE
LINE 10:DECLARATION SYNTAX ERROR
LINE 11:) EXPECTED

2006-11-07 13:18:46 · 6 answers · asked by shilpa s 1 in Computers & Internet Programming & Design

it is part of a program which is used to implement priority queue

2006-11-07 13:35:49 · update #1

6 answers

There are no syntax errors in the code snippet you provided.
Probably, there is something in process.h conflicting with your declarations. It is not a standard include file. If it comes with your compiler, try looking at it to see what the culprit is, or try changing your type names to see if it makes a difference. If you wrote that include file yourself, look into it for errors... It could be something subtle, like missing brace or a semicolon in the end, that confuses your compiler.

2006-11-07 13:55:14 · answer #1 · answered by n0body 4 · 0 1

Line 10 is syntax Error

May be You can try use Different Name instead of QUEUE;

even it is Consider different between queue and QUEUE

2006-11-07 21:23:21 · answer #2 · answered by safrodin 3 · 0 4

the only thing I see is on the line:
void insert_rear(int item,QUEUE *Q)
the argument "QUEUE *Q" should be "queue *Q"

2006-11-08 09:08:32 · answer #3 · answered by justme 7 · 0 1

whats it for cuse the prob. might be by line 10 it says syntax error

2006-11-07 21:22:00 · answer #4 · answered by Erika 3 · 0 4

check for typos and maybe its not a real code

2006-11-07 21:26:09 · answer #5 · answered by ALt 3 · 0 2

check your spelling

2006-11-07 21:24:04 · answer #6 · answered by Anonymous · 0 2

fedest.com, questions and answers