Search found 120 matches
- Sun Oct 25, 2009 5:26 pm
- Forum: Programming Discussion
- Topic: need ideas
- Replies: 23
- Views: 1556
Re: need ideas
The reason that piece of code is a bug is the '=' operator is actually the assignment operator. The '==' operator is used to test for equality. It's a very common error that the compiler doesn't catch, unless you have the warning level set to the highest.
- Sun Oct 25, 2009 5:02 pm
- Forum: Programming Discussion
- Topic: need ideas
- Replies: 23
- Views: 1556
Re: need ideas
Code: Select all
else if( c = x+5 )
This is what you wanted:
Code: Select all
else if( c == x+5 )
- Sun Oct 25, 2009 3:19 pm
- Forum: Programming Discussion
- Topic: need ideas
- Replies: 23
- Views: 1556
Re: need ideas
You didn't assign a value to x before you started using it.
- Wed Oct 21, 2009 10:21 pm
- Forum: General/Off-Topic
- Topic: Adventures in Game Dev Video Archive
- Replies: 89
- Views: 70281
Re: Adventures in Game Dev Video Archive
I've uploaded about 800 megs so far, I've been sharing about 100kB/sec for 2 hours.
I'll let it run until I go to bed and start it up again tomorrow.
I'll let it run until I go to bed and start it up again tomorrow.
- Mon Oct 19, 2009 7:25 pm
- Forum: Programming Discussion
- Topic: i need some advice :)
- Replies: 21
- Views: 1496
Re: i need some advice :)
Don't try to learn how to program and make a game at the same time unless it is a simple text game. You can give this a go: Wrath Lands It's all text and just about as simple as you can get with an RPG. The tutorials were done on the spot without any planning aside from the design document. Once you...
- Mon Oct 19, 2009 6:13 pm
- Forum: Programming Discussion
- Topic: i need some advice :)
- Replies: 21
- Views: 1496
Re: i need some advice :)
A few tips that I've picked up: 1) Find your limit and keep pushing it. Always try to do a little more than you are able. Try not to over do it or you'll burn yourself out. On the other hand, if you don't work hard enough you won't improve. 2) When you're stressed take some time to relax. If everyth...
- Sun Oct 11, 2009 3:57 pm
- Forum: Programming Discussion
- Topic: What must I already know :S
- Replies: 6
- Views: 536
Re: What must I already know :S
SDL requires that you do this:
Next time you should search for the answer first.
Code: Select all
int main(int argc, char *argv[])
- Sun Oct 11, 2009 2:44 pm
- Forum: Programming Discussion
- Topic: Referencing Project
- Replies: 2
- Views: 291
Re: Referencing Project
What you want to do is build a library. http://stackoverflow.com/questions/927063/building-c-source-code-as-a-library-where-to-start If you've never built a library before you might try to build an easy one like zlib or something. Now that you know what to look for you should be able to find a tutor...
- Sun Sep 20, 2009 9:21 pm
- Forum: Programming Discussion
- Topic: SDL License
- Replies: 8
- Views: 661
Re: SDL License
Does that mean we can sell SDL games as long as SDL is linked as a DLL? Short answer: yes. To comply with this license, you must give prominent notice that you use the Simple DirectMedia Layer library, and that it is included under the terms of the LGPL license. You must provide a copy of the LGPL ...
- Sun Sep 20, 2009 1:28 am
- Forum: General/Off-Topic
- Topic: Loud speaker noise - please help.
- Replies: 10
- Views: 703
Re: Louad speaker noise - please help.
Every once in a while although drivers don't suddenly go bad. :| Only drivers that are corrupted by viruses or hardware failure go bad. Also, the noise hasn't come back so it might have just been the interference from the power adapter. Would this power adapter happen to be a charger for something>...
- Sat Sep 19, 2009 9:05 pm
- Forum: General/Off-Topic
- Topic: Loud speaker noise - please help.
- Replies: 10
- Views: 703
Re: Louad speaker noise - please help.
I would try to take the guesswork out of it by using another operating system, you just might have a hardware problem. Give Knoppix or Ubuntu a try. You can run them without having to install them on your system. EDIT: Another thing you could try if you have a sound card is moving the card to a diff...
- Sat Sep 19, 2009 6:39 pm
- Forum: Programming Discussion
- Topic: SDL License
- Replies: 8
- Views: 661
Re: SDL License
http://www.libsdl.org/license-lgpl.php The Simple DirectMedia Layer library is currently available under the GNU Lesser General Public License (LGPL) version 2.1 or newer. SDL's use of the LGPL is twofold: * Allow end users to use custom versions of the library, to support bug fixes and other enhanc...
- Sun Sep 13, 2009 12:47 pm
- Forum: *(NULL) - Posts You Shouldn't Make
- Topic: Scrolling Text
- Replies: 13
- Views: 7126
Re: Scrolling Text
Found this with google: #include <iostream> int main() { char text[] = "Hello. This is a typewriter effect done in C."; int len = strlen(text); for (int i = 0; i <= len; i++) { printf("%c", text[i]); _sleep(150); } return 0; } You should be able to figure it out with that.
- Wed Sep 09, 2009 3:18 pm
- Forum: Programming Discussion
- Topic: Programming books?
- Replies: 29
- Views: 2536
Re: Programming books?
Books that I have: Teach Yourself C++ in One Hour a Day Tricks of the Windows Game Programming Gurus, 2nd ed Code Complete Design Patterns Writing Solid Code Focus on SDL Programming an RTS Game with Direct3D Game Codeing Complete, 3rd ed *Beginning C++ Through Game Programming *Game Programming All...
- Sat Sep 05, 2009 7:45 pm
- Forum: Programming Discussion
- Topic: [C++] Finding/reading a specific line in a file?
- Replies: 6
- Views: 721
Re: [C++] Finding/reading a specific line in a file?
Did you mean Alvaro?JaxDragon wrote:That looks very nice. Looking for "Alex"'s source code from the comments. I need that simplicity