Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jan 2004 16:13:49 -0800
From:      Ken Deeter <ktdeeter@alumni.princeton.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: New freebsd user here
Message-ID:  <20040124161349.6b662d62.ktdeeter@alumni.princeton.edu>
In-Reply-To: <400BEE9A.6030801@potentialtech.com>
References:  <20040119035817.29863.qmail@web60901.mail.yahoo.com> <400BEE9A.6030801@potentialtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help


Just a quick check. Make sure you do a 

#include <iostream>

and

using namespace std;

symbols like cout and endl are in the std namespace, so if you don't
have the above statement, you have to say something like

std::cout << "hello world" << std::endl;

-Ken

On Mon, 19 Jan 2004 09:50:02 -0500
Bill Moran <wmoran@potentialtech.com> wrote:

> [redirected to questions@, which is more appropriate for this kind of
> question]
> 
> Hugh Krogh-Freeman wrote:
> > Hello everyone. I just installed Free BSD 5.1 on my computer. I know
> > C++ and
>  > C, but I am not able to get C++ to compile yet because it doesn't
>  > recognize cout and endl (I wrote a simple "hello world" program). I
>  > assume it's because I am not including the right library.
> 
> That's the only reason I can think of.  C++ programs have compiled
> just fine any time I've tried them.  Without the snippit of code,
> however, it's hard to say for sure.
> 
> > Do I need to login as a "root" everytime
>  > I want to shutdown?
> 
> If you use KDE or Gnome as a window manager, they provide "shutdown"
> buttons. Also, by default, CTL+ALT+DELETE is mapped to a controlled
> (safe) shutdown(meaning it properly halts the OS before rebooting)  If
> neither of those methods are acceptable, you will have to be root, or
> someone with sudo rights to shutdown (if you've installed sudo).
> 
> > Also, I have windows and bsd on the same machine. Can
>  > anyone tell me a way of reinstalling just one of them in case I
>  > need to, rather than both of them? Thanks a million
> 
> Just reinstall the one you want.  If it's Windows, you'll need to
> reinstall the FreeBSD boot manager after you've reinstalled Windows
> (because Windows rebuilds your boot loader to its liking, without
> asking you).  Just make sure you use the correct partitions, etc.  I
> would definately back up everything before reinstalling either OS.
> 
> -- 
> Bill Moran
> Potential Technologies
> http://www.potentialtech.com
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040124161349.6b662d62.ktdeeter>