|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: C++ Advance topics...
you might try gamedev.net
----- Original Message -----
From: "1010" <1010@nu.edu.pk>
To: <gameprogrammer@gameprogrammer.com>
Sent: Saturday, July 01, 2000 1:08 AM
Subject: C++ Advance topics...
> Hi,
> Can someone tell me where can I find tutorials and mailing list on
> "Advanced tropics" in C++.
> Shahid
> > ----------
> > From: Jason Brunson[SMTP:jason@teamair.com]
> > Reply To: gameprogrammer@gameprogrammer.com
> > Sent: Thursday, June 29, 2000 10:24 PM
> > To: gameprogrammer@gameprogrammer.com
> > Subject: Re: problem
> >
> > The 0L is the offset from the end of the file in this case. It is
actual
> > the offset from the constant that you place in the 3rd parameter spot of
> > the
> > function. The L is short for the long data type.
> >
> > Thanks,
> > Jason Brunson
> >
> > ----- Original Message -----
> > From: Toby <Wiederbelebung@gmx.de>
> > To: <gameprogrammer@gameprogrammer.com>
> > Sent: Thursday, June 29, 2000 11:56 AM
> > Subject: Re: problem
> >
> >
> > > Hi
> > > thanks for the answer I knew it was somthing simple.
> > > Another question:
> > > fseek( fp, 0L, SEEK_END ) != 0
> > >
> > > What does the 0L stand for? I know this function seeks to the end.
> > >
> > > Should I bother somebody else with those questions since they are not
> > > very gaming oriented and if where can I find a good C beginner
> > > mailinglist?
> > >
> > > Thanks again.
> > > By
> > > Toby
> > >
> > > Neato wrote:
> > > >
> > > > > Hi
> > > > > #include <stdlib.h>
> > > > > #include <stdio.h>
> > > > > #include <string.h>
> > > > >
> > > > >
> > > > >
> > > > > /**************************************************> main <*/
> > > > > int main( void )
> > > > > {
> > > > > int myData = 7;
> > > >
> > > > first off, why initialize myData if you're replacing it?
> > > >
> > > > > FILE *fp;
> > > > > fp = fopen( "My Data File", "r" );
> > > > > fscanf( "%d", &myData );
> > > >
> > > > but the main problem is you're not telling fscanf() what file
pointer
> > to
> > > > use.
> > > >
> > > > fscanf(fp, "%d", &myData);
> > > >
> > > > would be correct.
> > > >
> > > > >
> > > > > printf( "Goodbye..." );
> > > > >
> > > > > return 0;
> > > > > }
> > > > >
> > > > > Why doesn't this compile? It says that it can't convert char * to
> > > > > struct_file.
> > > > > How can I read in a single number from a file?
> > > > >
> > > > > By
> > > > > Toby
> > > =================================================================
> > > 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
> >
> > =================================================================
> > 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
> >
> =================================================================
> 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
>
=================================================================
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
|
|