DOS Games Message Board
DOS Games Discussion
A message board to talk about DOS games, get help, and find old games.
Do NOT post warez or abandonware requests please
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


TinMan47's Lounge²
Goto page Previous  1, 2, 3, 4 ... 14, 15, 16  Next
 
Post new topic   This topic is locked: you cannot edit posts or make replies.    DOS Games Discussion Forum Index -> General Off-Topic
Author Message
wardrich
lawl catz r lawlz
lawl catz r lawlz


Offline
Joined: 14 Sep 2002
Posts: 3137
Location: Ontario Canada

PostPosted: Fri Jul 27, 2007 12:52 am     Post subject: Reply with quote

MiniMax wrote:
tinman47 wrote:
By the way...In C programming,how do you make a library? I would like to make a mathematical function library.

What is a mathematical function library?


Probably a math class, which is why C++ would be needed. Too bad he didn't listen to me.
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 231

PostPosted: Fri Jul 27, 2007 3:49 pm     Post subject: Reply with quote

Wardrich...get over it.
Back to top
MiniMax
Expert
Expert


Offline
Joined: 25 Jan 2007
Posts: 165
Location: Stockholm, Sweden

PostPosted: Fri Jul 27, 2007 5:05 pm     Post subject: Reply with quote

What is a math class ?
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 231

PostPosted: Fri Jul 27, 2007 7:53 pm     Post subject: Reply with quote

A math class or library is just a snippet or chunk of code you can use for functions or solving problems. Like game patches except you choose when to use them.
Back to top
Check-Mate
Lover Of The Tiny Guybrush
Lover Of The Tiny Guybrush


Offline
Joined: 12 Jan 2003
Posts: 954
Location: Canada

PostPosted: Fri Jul 27, 2007 10:35 pm     Post subject: Reply with quote

What? You actually don't know what a math class is??
Is this like, a language thing?
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 231

PostPosted: Fri Jul 27, 2007 10:39 pm     Post subject: Reply with quote

Check-Mate wrote:
What? You actually don't know what a math class is??
Is this like, a language thing?

Well...MiniMax does live in Sweden...
Back to top
Dogbreath
Admin
Admin


Offline
Joined: 14 Sep 2002
Posts: 3907
Location: In the back of a jacked-up Ford.

PostPosted: Sat Jul 28, 2007 1:18 am     Post subject: Reply with quote

MiniMax wrote:
What is a math class ?


A class is an "object" (from which the term OOP is derived), or a specially labeled peice of code that defines specific functions and variables that're applicable when the class is in use. A math class would be an object that defines mathematical functions for a program, such as the value of PI, or anything, really.

You could conceivably have more than one math class for a single program. Let's say, for example, you're an astrophysicist for NASA, and you're trying to figure out propulsion for a Mars rover. You'd want one math class that defines various physical conditions as they are on earth (like g=9.8 m/sec^2, or the effect of Earth's magnetic field, or wind resistance) and another that defines physical conditions as they are on Mars. (which lacks a magnetic field, and where gravity is significantly lower, and the atmosphere thinner) Same for the value of Pi, which, as the distortion caused by gravity increases, approaches 1.

That way, he could have one fuel efficiency equation that would produce different results depending on the value of variable "g" and dozens of others. A class just allows you to "toss" all that into one or two or twenty chunks instead of trying to define everything individually, which, when you're working with hundreds, or thousands of linked variables, is a big help. Classes can do more than define values and fuctions, btw, I'm just using that as an example, and probably goofed doing that because of my n00bish computer skillz. Wink

The kicker here is that C++ is C, but specifically designed for object oriented programming, which Wardrich has been trying to tell Tinman47 for months. And now Tinman is asking how to create classes in C, which is the exact reason people use C++ instead of C. Sarcastic

(BTW, check your private messages!)
Back to top
dosraider
Moderator
Moderator


Offline
Joined: 15 Mar 2005
Posts: 5044
Location: ROTFLMAO in Belgium.

PostPosted: Sat Jul 28, 2007 2:56 am     Post subject: Reply with quote

Dogbreath wrote:
The kicker here is that C++ is C, but specifically designed for object oriented programming, which Wardrich has been trying to tell Tinman47 for months. And now Tinman is asking how to create classes in C, which is the exact reason people use C++ instead of C. Sarcastic

But by now we all probably know that TinMan47 likes to reinvent the wheel or recasting old ideas. The 'proven good' concepts aren't swell enough for him.
Back to top
MiniMax
Expert
Expert


Offline
Joined: 25 Jan 2007
Posts: 165
Location: Stockholm, Sweden

PostPosted: Sat Jul 28, 2007 5:43 am     Post subject: Reply with quote

Thanks Dogbreath. The explanation I was waiting for was something like: A library is a file, in a format acceptable by a linker, containing entry points and code that implements specific tasks.

My next question would then be: What is a program.


Last edited by MiniMax on Sat Jul 28, 2007 6:20 am; edited 1 time in total
Back to top
Gamer_V
Gaming Demi-god
Gaming Demi-god


Offline
Joined: 03 Mar 2005
Posts: 1114
Location: The Netherlands

PostPosted: Sat Jul 28, 2007 5:47 am     Post subject: Reply with quote

You people can keep editing my post, but I will keep editing it away. Tbbbbbth!
Back to top
MiniMax
Expert
Expert


Offline
Joined: 25 Jan 2007
Posts: 165
Location: Stockholm, Sweden

PostPosted: Sat Jul 28, 2007 6:22 am     Post subject: Reply with quote

Check-Mate wrote:
What? You actually don't know what a math class is??
Is this like, a language thing?

No, it is a way of teaching. By asking the student to explain the question in detail, the student will often discover for him/herself what the solution is.

It is a time-consuming method and therefore not used often, but in a forum like this I think it is the perfect way to teach. Instead of putting all the burden on the teacher, it forces the student to work it out himself (with a little guidance). A reasonable way of sharing the burden I think, since I am doing this on a volountering basis. If tinman47 paid for my time, I would/could have provided him with a straight yes/no answer, but he would not have learned anything substantial.
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 231

PostPosted: Sat Jul 28, 2007 9:15 am     Post subject: Reply with quote

MiniMax wrote:
Check-Mate wrote:
What? You actually don't know what a math class is??
Is this like, a language thing?

No, it is a way of teaching. By asking the student to explain the question in detail, the student will often discover for him/herself what the solution is.

It is a time-consuming method and therefore not used often, but in a forum like this I think it is the perfect way to teach. Instead of putting all the burden on the teacher, it forces the student to work it out himself (with a little guidance). A reasonable way of sharing the burden I think, since I am doing this on a volountering basis. If tinman47 paid for my time, I would/could have provided him with a straight yes/no answer, but he would not have learned anything substantial.

Hey, that was really deep what you said MiniMax,but I know a substanstial amount of code you know. Wink Just because I have been a programmer for only 1 year doesn't mean I don't know alot.
Back to top
Dogbreath
Admin
Admin


Offline
Joined: 14 Sep 2002
Posts: 3907
Location: In the back of a jacked-up Ford.

PostPosted: Sat Jul 28, 2007 9:21 am     Post subject: Reply with quote

Quote:
No, it is a way of teaching. By asking the student to explain the question in detail, the student will often discover for him/herself what the solution is.


Or, when the student already knows the answer, just wastes his time and makes you look a little stupid and more than a little bit strange? There're ways to teach by asking questions while still making it obvious that you're trying to teach, that way people who aren't your "pupils" aren't trying to answer your questions, Socrates.


Last edited by Dogbreath on Sat Jul 28, 2007 9:51 am; edited 1 time in total
Back to top
tinman47
Lord of Gaming
Lord of Gaming


Offline
Joined: 24 Feb 2007
Posts: 231

PostPosted: Sat Jul 28, 2007 9:22 am     Post subject: Reply with quote

And I quote:

Don't mock my intellegence :B
Back to top
Gamer_V
Gaming Demi-god
Gaming Demi-god


Offline
Joined: 03 Mar 2005
Posts: 1114
Location: The Netherlands

PostPosted: Sat Jul 28, 2007 10:42 am     Post subject: Reply with quote

tinman47 wrote:
And I quote:

Don't mock my intellegence :B
intelligence. Who were you quoting, again? Suspicious
Back to top
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    DOS Games Discussion Forum Index -> General Off-Topic All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4 ... 14, 15, 16  Next
Page 3 of 16

 
Free Windows games


Powered by phpBB © 2001, 2005 phpBB Group and Ask an Expert
Also powered by Darren and the other admin and mods' hard work! ;)