I think something akin to #pragma in visual studio, to link to a library without specifying that library in the linker settings.
I think something akin to #pragma in visual studio, to link to a library without specifying that library in the linker settings.
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.
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.