Karl Ebener wrote:[color=blue]
>
> Hi![color=green]
> > There is nothing in standard C++ to help you.
> > Mostly because standard C++ is not aware of a keyboard.
> > All input or output is generalized to a stream.
> >
> > But that doesn't mean that it can't be done on your
> > specific system. All it means is that there is no
> > general solution. You need system specific functionality
> > to do that.
> >[/color]
>
> Could you give me a hint for Linux systems? I looked but didn't find
> anything....[/color]
Sorry. I donÄt know about Linux. You should ask in a newsgroup dedicated
to Linux programming.
[color=blue]
>
> Another question: Is there a way to make a function return a list?
> e.g.
> int[] abc() { //*returning list*}[/color]
int[] is not a list.
It is the notation for an array with unknown dimensions. But
beware, in this case things are not what they seem to be. The
above is in reality a way to avoid pointer notation, nothing
more. And it cannot be used as return type.
As for a list:
#include <list>
std::list<int> foo()
{
list<int> MyList;
MyList.push_back( 5 );
MyList.push_back( 7 );
return MyList;
}
--
Karl Heinz Buchegger
kbuchegg@gascad.at