Welcome to Dream.In.Code
Become a C++ Expert!

Join 136,909 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,745 people online right now. Registration is fast and FREE... Join Now!




New to C++ need help with define

 
Reply to this topicStart new topic

New to C++ need help with define, define, C++, noob, needs, help

drjoe51
17 Mar, 2008 - 09:25 AM
Post #1

New D.I.C Head
*

Joined: 16 Mar, 2008
Posts: 26


My Contributions
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.
User is offlineProfile CardPM
+Quote Post

Amadeus
RE: New To C++ Need Help With Define
17 Mar, 2008 - 09:30 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,228



Thanked: 40 times
Dream Kudos: 25
My Contributions
http://www.cprogramming.com/reference/prep...sor/define.html

http://msdn2.microsoft.com/en-us/library/t...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.
User is offlineProfile CardPM
+Quote Post

drjoe51
RE: New To C++ Need Help With Define
17 Mar, 2008 - 07:26 PM
Post #3

New D.I.C Head
*

Joined: 16 Mar, 2008
Posts: 26


My Contributions
thanks
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 09:55PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month