Search found 122 matches
- Wed Jul 22, 2009 9:05 pm
- Forum: Programming Discussion
- Topic: Class vs Struct
- Replies: 3
- Views: 569
Re: Class vs Struct
Structs are classes with all members public by default other than that there is no difference in c++.
- Wed Jun 17, 2009 10:40 am
- Forum: Game Development
- Topic: Visual C++ Express and Distribution
- Replies: 53
- Views: 7387
Re: Visual C++ Express and Distribution
I'm just in city college and I got it for free from http://www.dreamspark.com It's a great program MS runs themselves. You just have to jump through a couple hoops to verify your student status, but it only took me about 15 minutes. If you go about it this way does your license for the software onl...
- Mon Jun 15, 2009 2:12 pm
- Forum: Programming Discussion
- Topic: [SDL]beginners question
- Replies: 4
- Views: 745
Re: [SDL]beginners question
Thanks for the reply, yes it was the image but its weird that when i compile in the IDE it links to another image. I'm pretty sure that when you run the program from the release folder all the files(images, etc) need to be in the same folder as the exe but when you run it from the IDE the files nee...
- Thu Jun 11, 2009 8:37 pm
- Forum: Programming Discussion
- Topic: Default Arguments in functions and extern
- Replies: 2
- Views: 502
Default Arguments in functions and extern
I'm making a simple game that will have multiple source files. I would like to have a default argument in one of my functions however if I declare it extern in another file and compile it I get an error saying that I am not allowed to reassign a value to it. If I remove the default value from the pa...
- Tue May 19, 2009 6:29 pm
- Forum: Programming Discussion
- Topic: Help on a game.
- Replies: 15
- Views: 2257
Re: Help on a game.
Here try this code I changed a few things about it. First i created a char that is used for input of the choice. I also made it so it will see if the input is greater than or equal the the choice so if the user selects five he won't be wrong every time. #include <string> #include <iostream> using na...
- Thu May 07, 2009 8:18 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
Well if you need any more help with SDL you know where to post.
- Thu May 07, 2009 7:07 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
Ok I'm going to run through the process step by step tell me if you forgot to do something. Step 1: Download and extract SDL from the website make sure that you get the one for mingw (the one that ends in .tar.gz). (I advise putting it in your documents. Step 2: Open Code::Blocks and click settings,...
- Thu May 07, 2009 5:55 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
You have it linked as -lmingw32 not lmingw32 (without the dash). I doubt it but its worth a shot.
- Thu May 07, 2009 5:45 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
Dang same error.
- Thu May 07, 2009 5:27 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
You got it?
- Thu May 07, 2009 5:19 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
Hmm are you linked correctly by adding -lmingw32 -lSDLmain -lSDL to the linker box. If so did you give the directory to the lib files and if you did that I would try reinstalling SDL.
- Thu May 07, 2009 5:10 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
Its the one with all the source files and the project file is located. You should have SDL.dll in it.
- Thu May 07, 2009 5:02 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
Did u put the DLL in its proper folder?
- Thu May 07, 2009 4:46 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
Maybe he is forgetting to put the proper dll files in whatever directory code::blocks requires.
- Wed May 06, 2009 7:41 pm
- Forum: Programming Discussion
- Topic: How much c++
- Replies: 57
- Views: 5205
Re: How much c++
What error exactly did you get.