http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: question??



I think that the #include "apmatrix.h" line is correct if the header is in 
the local directory where the source file is being compiled.  I believe 
that the problem lies in the line, apmatrix<int> data(20,20,0);. I am not 
sure of what you were intending to do, but I do not believe that the 
notation "<int>" is correct.  If I am wrong, please let me know.

Thanks,
Jason Brunson


-----Original Message-----
From:	Syk0000000000000@aol.com [SMTP:Syk0000000000000@aol.com]
Sent:	Monday, November 27, 2000 10:13 PM
To:	gameprogrammer@gameprogrammer.com
Subject:	question??

i am taking a class at my high school in c++ and i am using a header file
called apmatrix.h that my teacher gave to me to write a program. i keep
getting an illegal structure error whenever i put something simple like 
this

#include<apmatrix.h>

main()
{
       apmatrix<int> data(20,20,0);

       if (data[3,3] == 0)
             data[4,6] = 1;
return 0;
}
it will give me an error in the if statement, well if anyone could possibly 
help me out please do, and thank you.
 << File: ATT00017.htm >> 
=================================================================
The GameProgrammer.Com mailing list is for the open discussion
of any topic related to the art, science, and business of
programming games. This list is especially tolerant of beginners.
We were all beginners once

To SUBSCRIBE or UNSUBSCRIBE please visit:
http://gameprogrammer.com/mailinglist.html