| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| C/C++ Discussion | |
|---|---|
| Tweet Topic Started: Sep 17 2008, 09:05 PM (2,066 Views) | |
| Fission | Sep 17 2008, 09:05 PM Post #1 |
|
Uguu
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Programming and Scripting Chat is empty, so let's actually have some programming chat. Do you know C/C++? If so, have you done any projects that you've shared with others? What compiler do you use, and what libraries have you used or want to use? Anything else you want to talk about? I know C (mostly C++) and use Dev-C++. I'm well-versed with SDL (and it's sub-libraries SDL_ttf and SDL_image), have used Allegro, and love (absolutely love) the Lua library for adding scripting to my programs. I've done several projects, my favorite of which is infernoSand. Edited by Fission, Sep 17 2008, 09:07 PM.
|
![]() |
|
| Viral. | Sep 18 2008, 02:44 PM Post #2 |
![]()
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I've tried it many times, but I can never get work out how to compile a code using Microsoft Visual C++ 2008 Express Edition :/ . |
![]() |
|
| Fission | Sep 18 2008, 05:25 PM Post #3 |
|
Uguu
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Try Dev-C++ or search Google for answers. I never did like MS Visual C++ (the first compiler I tried) since it was so confusing. Then again, I was like 12 and didn't know a thing about programming. |
![]() |
|
| FinalKiller0 | Sep 18 2008, 06:12 PM Post #4 |
![]()
OVER 1,000!!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I am taking Computer Science, and we are learning C++. We use the Turbo C++ 3.0 Compiler. Right now I am trying to get the quick sort to work. Complicated algorithm. :-/ |
![]() |
|
| Fission | Sep 18 2008, 06:49 PM Post #5 |
|
Uguu
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hrm. I really haven't done that much with sorting algorithms (seeing as I haven't had a need for them). However, http://siebn.de/anisort/english is a small program that can render out several algorithms in either Java or C++. |
![]() |
|
| FinalKiller0 | Sep 18 2008, 07:35 PM Post #6 |
![]()
OVER 1,000!!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
We are using a way more complicated version of quick sort (according to our teacher, the most optimized version). Thanks for the help though. We aren't allowed to use outside sources anyways. |
![]() |
|
| Fission | Sep 18 2008, 07:44 PM Post #7 |
|
Uguu
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hrm, well... Has anyone else here messed around with 2D particle physics engines? I've done one based on an array of integers that represents the entire screen (see infernoSand link on first post) and have at least started a struct-, particle-based engine. Also, mind explaining what he means by most optimized? Usually, complicated != most optimized. Edited by Fission, Sep 18 2008, 07:48 PM.
|
![]() |
|
| mcteeth | Sep 19 2008, 11:28 AM Post #8 |
|
Oh, Comely.
![]() ![]() ![]() ![]()
|
Note that Dev-C++ isn't a compiler. It comes with MinGW, a Windows port of GCC. :p But that's another interesting war that rages on: Which IDE or text editor? I'm turning into a Vim guy -- joining the elite! When I write C++ (very seldomly), I use the g++ compiler. A good set of libraries that I'd recommend to anyone is Boost. It provides the kitchen sink. Edited by mcteeth, Sep 19 2008, 11:34 AM.
|
![]() |
|
| Fission | Sep 20 2008, 01:25 AM Post #9 |
|
Uguu
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I refer to it as a compiler because A.) It's easier that way, and B.) It compiles my codez. |
![]() |
|
| FinalKiller0 | Sep 20 2008, 10:11 PM Post #10 |
![]()
OVER 1,000!!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
For example, bubble sort is the easiest sorting code to make. However, there are many sorts, such as the quick sort, which run a whole lot faster than bubble sort. Even thought bubble sort may be the simplest of them all, it is pretty slow compared to the rest. |
![]() |
|
| Fission | Sep 20 2008, 10:18 PM Post #11 |
|
Uguu
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Hrm, I suppose. But that's only for sorting algorithms. I rarely use (or have a need for) algorithms of that kind. And if I did, I would most likely either look it up online or, being a lazy programmer, use the sort() function in the C++ standard algorithm library. |
![]() |
|
| FinalKiller0 | Sep 20 2008, 10:23 PM Post #12 |
![]()
OVER 1,000!!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Well I am not making sorting algorithms for the fun of it, just doing what I need to do for class, especially since this program alone is 20% of our quarter grade. |
![]() |
|
| Fission | Sep 20 2008, 10:35 PM Post #13 |
|
Uguu
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Ouch. Sounds painful. On my physics game (infernoSand) I am working on improving its Lua handling for menus (which are completely script-dependent) and on improving its physics and element attribute handling. |
![]() |
|
| FinalKiller0 | Sep 20 2008, 10:50 PM Post #14 |
![]()
OVER 1,000!!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I don't mind tacking the algorithm. I just find it unfair that we don't get extra time to work on it since we can't work on it at home. Only 1 or 2 people actually have it fully functioning. We have 45 mins to work on it in class on Monday, and then it is due Tuesday. |
![]() |
|
| Dyegov | Sep 20 2008, 11:01 PM Post #15 |
![]()
D . r . e . a . m . i . n . g
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Argh, I don't even know what to learn. I want to learn a programming language. Someone recommended Python to me; he said it was way easier that all other languages sucked, including java and C,C++. How are C/C++ better than Python? What's the difference between C and C++? Which one is better? :-/ |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
| Track Topic · E-mail Topic |
3:15 PM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)






3:15 PM Jul 11