New to C++ need help with define

define, C++, noob, needs, help

Page 1 of 1

2 Replies - 732 Views - Last Post: 17 March 2008 - 08:26 PM Rate Topic: -----

#1 zombie_chan51  Icon User is offline

  • D.I.C Regular

Reputation: 7
  • View blog
  • Posts: 327
  • Joined: 16-March 08

New to C++ need help with define

Post icon  Posted 17 March 2008 - 10:25 AM

I'm sorta new to C++ programming. I've only studied it for a few weeks, and im have trouble understanding define#, i dont understand why you would use it, when to use it and all that. please someone help me.
Is This A Good Question/Topic? 0
  • +

Replies To: New to C++ need help with define

#2 Amadeus  Icon User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 248
  • View blog
  • Posts: 13,506
  • Joined: 12-July 02

Re: New to C++ need help with define

Posted 17 March 2008 - 10:30 AM

http://www.cprogramm...sor/define.html

http://msdn2.microso...593(VS.80).aspx

While there are a few uses for the define directive, the most common is to assign a meaningful name to a constant being used in your program, or often to provide a meaningful name for a macro that will be run multiple times during your program.
Was This Post Helpful? 0
  • +
  • -

#3 zombie_chan51  Icon User is offline

  • D.I.C Regular

Reputation: 7
  • View blog
  • Posts: 327
  • Joined: 16-March 08

Re: New to C++ need help with define

Posted 17 March 2008 - 08:26 PM

thanks
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1