delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/23/11:46:39

From: William Roeder <broeder AT titan DOT com>
Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c++,comp.os.msdos.djgpp,comp.os.msdos.programmer
Subject: Re: Help with Casts...
Date: Thu, 22 Jul 1999 11:37:56 -0400
Organization: DBA Systems Inc.
Lines: 48
Message-ID: <37973AD4.751B358@titan.com>
References: <7n6153$eqc$1 AT autumn DOT news DOT rcn DOT net>
NNTP-Posting-Host: dba105-224.dba.titan.com
Mime-Version: 1.0
X-Mailer: Mozilla 4.51C-SGI [en] (X11; I; IRIX 6.5 IP32)
X-Accept-Language: en
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Tom wrote:
> 
> I'm am having trouble understanding casts.  
OK.
> Let's say I want to call a program and it takes three variables.  
Programs don't take variables.  They may take arguments, but that is OS
dependent.  Do you mean a function?
> Two of those variables are casts and are supposed to return 
> values from what I understand.  
casts are not variables and only function calls can return values.  You
do not understand.
> How do I get those two values.
Questions end with a question mark (?)
> 
> Example;
> 
> int playcdtrack(tracknumber, *startingposition, *endingposition)
If this is supposed to be a prototype it is incomplete:
 int playcdtrack(<insert type> tracknumber, <insert pointer type>
*startingposition, <insert pointer type> *endingposition);
> 
> How do I get the variables startingposition and endingposition of let's say
> track #1?
RTFM?
> 
> If anyone can help I would greatly appreciate.  Thanks.
> 
> Tom
1. Device control is operating system dependent and not part of the
standard C++ language.
2. Buy some reference books about your operating system.
3. Read the FAQs at:
http://www.eskimo.com/~scs/C-faq/top.html  -- C language FAQ
http://www.cerfnet.com/~mpcline/C++-FAQs-Lite/ -- C++ language FAQ

4. Research the following newsgroups before posting:
news:comp.programming
news:comp.unix.programmer
news:comp.os.msdos.programmer
news:comp.os.ms-windows.programmer.win32
news:borland.public.cppbuilder     (via forums.inprise.com newsserver)
news:borland.public.cpp.language   (via forums.inprise.com newsserver)
news:microsoft.public.vcc.language (via msnews.microsoft.com newsserver)
-- 
   __             _ __                    Ex: A has been.  Spurt: A drip
  /  )     /  /  ' )  )          /        under pressure.  Expert: A has
 /--'  *  /  /    /--' _ _ /> _ /  _  __  been under pressure.
/__)__/\_/\_/\_  /  \_(_) (__(_/\_(/_/ (_       mailto:broeder AT titan DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019