Questions about constants.

Hi, I'm new to C++ and I'm reading more each day. One part I&

Page 1 of 1

5 Replies - 559 Views - Last Post: 08 November 2009 - 05:45 PM Rate Topic: -----

#1 H4CKC0D3R  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 16-September 09

Questions about constants.

Post icon  Posted 08 November 2009 - 10:57 AM

Hi, I'm new to C++ and I'm reading more each day. One part I'm having trouble understanding though is constants. So I'll ask you guys about them.

First off, what are octal(base-8) and hexadecimal(base-16) numerals?

Last, I don't understand how to use suffixes in floating point numbers. Such as: (e, f, l)

Anyways that is all my questions for now, please answer them as soon as possible.
Is This A Good Question/Topic? 0
  • +

Replies To: Questions about constants.

#2 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: Questions about constants.

Posted 08 November 2009 - 12:02 PM

Quote

First off, what are octal(base-8) and hexadecimal(base-16) numerals?
What have you done to try and answer your own question?

Quote

Last, I don't understand how to use suffixes in floating point numbers. Such as: (e, f, l)
What have you done to try and learn about suffixes?
Was This Post Helpful? 0
  • +
  • -

#3 H4CKC0D3R  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 16-September 09

Re: Questions about constants.

Posted 08 November 2009 - 04:55 PM

View PostOler1s, on 8 Nov, 2009 - 11:02 AM, said:

Quote

First off, what are octal(base-8) and hexadecimal(base-16) numerals?
What have you done to try and answer your own question?

Quote

Last, I don't understand how to use suffixes in floating point numbers. Such as: (e, f, l)
What have you done to try and learn about suffixes?


I've read the tutorials from: http://www.cplusplus.com/doc/tutorial/ on them and I don't understand them really. All I need is someone to explain them to me in their own words.
Was This Post Helpful? 0
  • +
  • -

#4 redhotfire0  Icon User is offline

  • D.I.C Head

Reputation: 10
  • View blog
  • Posts: 210
  • Joined: 13-July 09

Re: Questions about constants.

Posted 08 November 2009 - 05:07 PM

View PostH4CKC0D3R, on 8 Nov, 2009 - 03:55 PM, said:

I've read the tutorials from: http://www.cplusplus.com/doc/tutorial/ on them and I don't understand them really. All I need is someone to explain them to me in their own words.



http://www.wikipedia.org



I am sure it will give a more thorough explanation to your questions than your book seeing as you skimmed over it.
Was This Post Helpful? 0
  • +
  • -

#5 carltech  Icon User is offline

  • What did you call me?
  • member icon

Reputation: 28
  • View blog
  • Posts: 997
  • Joined: 19-October 07

Re: Questions about constants.

Posted 08 November 2009 - 05:38 PM

Wiki
base 8 just means you count like 0 1 2 3 4 5 6 7 10 11 12 13 14 15 16 17
base 10 is decimal numbers like 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
base 16 used A B C D E F since there isn't actually 16 numerals so i c ounts like 0 1 2 3 4 5 6 7 8 9 A B C D E F G 10.

http://msdn.microsof...wxf(VS.80).aspx
Was This Post Helpful? 1
  • +
  • -

#6 Oler1s  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1395
  • View blog
  • Posts: 3,884
  • Joined: 04-June 09

Re: Questions about constants.

Posted 08 November 2009 - 05:45 PM

You can't understand their tutorial, so you want us to spend time repeating everything? Why? I mean, how do we know you'll understand us?

Did you specific questions about what you didn't understand. Did you encounter a sentence you didn't understand. Did you encounter a line of code you didn't understand? Or was it all gibberish?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1