tags:

views:

92

answers:

2
+1  A: 

You're using

#include "glossary_demo.h"

which is basically injecting the contents of glossary_demo.h into your code at compile-time. Your glossary_demo.h file isn't valid C, which is why you're getting all those errors.

It sounds like really you want to load a text file at execution time, which is very different.

Jon Skeet
so what can i do ? i just want to when i input array or arrays can display (an ordered collection of values) this sentence....
pepajen
thank you for your answer!
pepajen
pepajen
@pepajen: No, you need to rethink this from the start. Given that this is homework, I think it's best if you talk it through with your teacher - my gut feeling is that you have enough of a misunderstanding to make it inappropriate to try to fix on Stack Overflow.
Jon Skeet
A: 

You have tagged your question C, but class can be used only in C++, not C.

Your error is from file glossary_demo.h, please show contents of that.

BTW, it must be

#include <stdio.h> (not <stido.h>)
ArunSaha
i have been showing the contents
pepajen
How to solve the problem?
pepajen