Mail Archives: djgpp/1997/08/12/00:24:03
TH wrote:
> But when I try to compile the following:
> 
> #include <iostream.h>
> 
> void main ()
> {
>    float hats, heads;
> 
>    cout<< "Enter a number";
>    cin>>hats;
>    cout<< "Enter another number";
>    cin>>heads;
> 
>    cout<< "Heads= "<<heads<<"  Hats= "<<hats;
>    cout<<" Hats + Heads= "<<hats+heads<<"\n";
>    cout<<" Hats - Heads= "<<hats-heads<<"\n";
>    cout<<" Hats * Heads= "<<hats*heads<<"\n";
>    cout<<" Hats / Heads= "<<hats/heads<<"\n";
> }
> 
> It hangs.  And I have to kill it.Any other problem which demands a 
> level of complexity than a "Hello World" will lock up Rhide.  I 
> searched the documents but can't find anything.
i have used rhide ever since it first came out, although not heavily. i
actually do not like ide's very much. in any case, i have experienced,
with everybody else, the mouse problems in win 3.x etc. but i never ever
had rhide hang on any project "because the code is too complex". that is
an uncalled-for insult. there must be something elementary that you are
doing wrong.
FYI, rhide compiled and linked the following
#include <iostream.h>
int main (void)
{
  float hats, heads;
  cout << "Enter a number" << endl;
  cin  >>hats;
  cout << "Enter another number" << endl;
  cin  >> heads;
  cout << "Heads= " << heads << "  Hats= "<< hats << endl;
  cout << " Hats + Heads= " << hats+heads << endl;
  cout << " Hats - Heads= " << hats-heads << endl;
  cout << " Hats * Heads= " << hats*heads << endl;
  cout << " Hats / Heads= " << hats/heads << endl;
  return 0;
}
on my 486-DX4/75 in about 2-3 seconds in a dos window in win 95. i have
a bog standard djgpp setup.
-- 
   Sinan
 
*******************************************************************
 A. Sinan Unur                                WWWWWW
                                              |--O+O
 mailto:sinan DOT unur AT cornell DOT edu                C   ^ 
 http://www.people.cornell.edu/pages/asu1/     \  ~/ 
*******************************************************************
- Raw text -