Structures and setting variables

This is a discussion on Structures and setting variables within the Windows Programming forums, part of the Platform Specific Boards category; I think something akin to #pragma in visual studio, to link to a library without specifying that library in the ...

  1. #16
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,428
    I think something akin to #pragma in visual studio, to link to a library without specifying that library in the linker settings.

  2. #17
    Registered User
    Join Date
    Nov 2007
    Posts
    18
    Now that is what I'm talking about, using an actual line of code to link the program with the library (all without creating a project). Okay, so this can be done in visual studio, any1 know if this can be done in Dev-C++?

    By the way, I've been looking at some of the posts, and alot of them seem to always talk about classes as opposed to functions. Could someone maybe explain the difference between a class and a function please? And maybe when a class is more useful than a function (if it is)?
    Last edited by teck; 11-30-2007 at 02:32 PM.

  3. #18
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Classes are a fundamental aspect of object-oriented programming. They are used to represent objects in programming. http://www.cprogramming.com/tutorial/lesson12.html

    Functions are part of object-oriented and procedural programming, although in OOP they're sometimes calling methods, and they also go by other names such as subroutines. Functions are supposed to do a specific, well-defined job. http://www.cprogramming.com/tutorial/lesson4.html

    Google around for "class" and "function" and "object-oriented" and "procedural" for more information.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. setting structure char array with string
    By Tom Bombadil in forum C Programming
    Replies: 6
    Last Post: 04-03-2009, 07:10 AM
  2. Setting a user's input as the structure name
    By Ste_Mulv in forum C Programming
    Replies: 3
    Last Post: 04-01-2009, 05:23 AM
  3. Array of records?
    By pobri19 in forum C Programming
    Replies: 6
    Last Post: 05-03-2008, 06:34 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21