Thread: Structures and setting variables

  1. #16
    Join Date
    Oct 2007
    Inside my computer
    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
    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 03:32 PM.

  3. #18
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Classes are a fundamental aspect of object-oriented programming. They are used to represent objects in programming.

    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.

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

    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:

    My website:
    Projects: codeform, xuni, atlantis, nort, etc.

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