Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #15415

(probably trivial) question about cmath library

From Fab <fab4100@gmail.com>
Newsgroups comp.lang.c++
Subject (probably trivial) question about cmath library
Date 2012-04-17 08:06 +0200
Organization albasani.net
Message-ID <877gxe99jj.fsf@gmail.com> (permalink)

Show all headers | View raw


Dear all,

I am a little confused about the std namespace used for all c++ libs.
I am using g++ for compilation and I think my issue could also be
related to g++ rather than the c++ libs.  Here's my issue:

When I use #include <iostream> in my code, I have to use the scope
operator or global the namespace std to access e.g. cout.  However, when
I use #include <cmath> and want to use e.g. cos from that lib, the above
mentioned does somehow not apply.  Why?

Thank you,
Fab

Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

(probably trivial) question about cmath library Fab <fab4100@gmail.com> - 2012-04-17 08:06 +0200
  Re: (probably trivial) question about cmath library SG <s.gesemann@gmail.com> - 2012-04-16 23:18 -0700
    Re: (probably trivial) question about cmath library Marc <marc.glisse@gmail.com> - 2012-04-17 07:00 +0000
  Re: (probably trivial) question about cmath library Juha Nieminen <nospam@thanks.invalid> - 2012-04-17 06:58 +0000
    Re: (probably trivial) question about cmath library Marc <marc.glisse@gmail.com> - 2012-04-17 07:11 +0000

csiph-web