Michael Sgier wrote:[color=blue]
> Hi
> as im new to C coming from VB.NET where i haven't seen so far
> typedeclarations. As I get the error below I don't know what to do.
>
> in main.h:
> bool isExtensionSupported(string ext);
> and the error:
> /src/main.h:164: error: ` string' was not declared in this scope
>
> in main.h I've also included:
> # include <string.h>
> is that correct? Is it possible to declare any types through a class or
> struct like below so I don't need to write anymore float? How would I
> access f.ex. y?
> class CVector2
> {
> public:
> float x, y;
> };
> What does the above provide? In VB.NET I only used the predefined types
> like int, float etc. I haven't seen the above there...but my career is
> still young :-)
> Regards Michael[/color]
Methinks you need a good book. And soon.
Check
http://www.accu.org for suggestions.
HTH,
--ag
--
Artie Gold -- Austin, Texas
http://goldsays.blogspot.com (new post 8/5)
http://www.cafepress.com/goldsays
"If you have nothing to hide, you're not trying!"