Need my code to be cleaned and fixed

Hope someone have time to fix my code^^

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4

55 Replies - 2247 Views - Last Post: 25 May 2008 - 01:05 PM Rate Topic: **--- 3 Votes

#31 Codegamer  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 127
  • Joined: 04-May 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 04:31 AM

LOL now my whole WOP code is green!!
Was This Post Helpful? 0
  • +
  • -

#32 gabehabe  Icon User is online

  • GabehabeSwamp
  • member icon




Reputation: 1346
  • View blog
  • Posts: 10,918
  • Joined: 06-February 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 04:32 AM

How wonderful.

Remember you can pass different numbers to the function, to get a different colour.

This post has been edited by gabehabe: 24 May 2008 - 04:33 AM

Was This Post Helpful? 0
  • +
  • -

#33 Codegamer  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 127
  • Joined: 04-May 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 06:23 AM

Ok I don't know how to do that but ok! :P

I had another question more than change color and that was if it is possible to change font (text style)?
Was This Post Helpful? 0
  • +
  • -

#34 gabehabe  Icon User is online

  • GabehabeSwamp
  • member icon




Reputation: 1346
  • View blog
  • Posts: 10,918
  • Joined: 06-February 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 06:25 AM

Nope, you're stuck with that font in the console.
And when I said about passing a different number, I meant this:
setcolor (<colour code>);
Use the key as a reference to pick which colour you want.
Was This Post Helpful? 0
  • +
  • -

#35 Codegamer  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 127
  • Joined: 04-May 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 07:46 AM

When are you going to unblock me and have you got the Dic-T-shirt yet?
Was This Post Helpful? 0
  • +
  • -

#36 gabehabe  Icon User is online

  • GabehabeSwamp
  • member icon




Reputation: 1346
  • View blog
  • Posts: 10,918
  • Joined: 06-February 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 07:55 AM

I'm not going to and I ordered one yesterday :P
Was This Post Helpful? 0
  • +
  • -

#37 Codegamer  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 127
  • Joined: 04-May 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 07:57 AM

Ok :sad3: :unsure:
Was This Post Helpful? 0
  • +
  • -

#38 skater_00  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 12
  • View blog
  • Posts: 256
  • Joined: 30-April 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 08:23 AM

Codegamer, try Google.com first before asking your questions here. In 90% of the cases, you won't even have to post here because you have already found it out there somewhere. At least, if you do the effort to actually look around and not be a f*****g lazy ass. Sorry, but this makes me so goddamn pissed. -_-
Was This Post Helpful? 0
  • +
  • -

#39 Codegamer  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 127
  • Joined: 04-May 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 08:30 AM

I thought that this site was meant to be like that and don't just say that to me because there is more people than onl me that ask question and isn't that why this site is here?
Was This Post Helpful? 0
  • +
  • -

#40 gabehabe  Icon User is online

  • GabehabeSwamp
  • member icon




Reputation: 1346
  • View blog
  • Posts: 10,918
  • Joined: 06-February 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 08:33 AM

Read the rules.
Was This Post Helpful? 0
  • +
  • -

#41 Guest_Whizzy*


Reputation:

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 08:53 AM

View PostCodegamer, on 24 May, 2008 - 08:30 AM, said:

I thought that this site was meant to be like that and don't just say that to me because there is more people than onl me that ask question and isn't that why this site is here?



This site is here is teach people about coding. Yes. That's true. But what you fail to understand, is that you have to teach yourself first. 95% of the people here go to school, or work with these languages. They learn the basics, and *** TRY *** to write the code themselves, and then when they get stuck and after trying three or four different things, ask for help.
it is not meant for people to say "I want to write a game", what do I do?
they receive help, then come back and say, "Ok, thanks, what next?"
That's not how it works...
Try this...

Take the game you want and put it on paper. Break it down into routines.
take each routine (called a function), and think about how it will need to interact with other functions. If you need to break it all down again, then break it down again....
Soon, (on Paper) you will have your pseudocode. Try to write as much of the pseudocode into actual code as you can. Compile it, fix as much as you can. Get it running as much as possible, then post your code, and tell them what the errors are. You will get one of four responses.

1. They will fix your code (or a part of it)
2. They will explain why it's not working (so you know what to look at)
3. They will explain other methods
or
4. They will tell you what course of action you need to take.

It is designed to help you teach yourself C++, not have someone write it for you. Which is what you have been doing. Even if you don't realize it.
I have thrown up some screwed up, God aweful code in the past... and it has been met with cheer, and jokes, and critisism, and corrections, and instructions... and I have gotten better...

Here's the short version.

No one is going to be writing anymore code for you, without YOU attempting to write, and correct it yourself. We WANT to help you, but writing your code is not doing that. That's not why we are here.
Was This Post Helpful? 0

#42 Codegamer  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 127
  • Joined: 04-May 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 09:10 AM

95% of the people here go to school, or work with these languages. They learn the basics, and *** TRY *** to write the code themselves.

I don't work with theese languages in work, school or something that's why I need some extra help doh!




No one is going to be writing anymore code for you, without YOU attempting to write, and correct it yourself. We WANT to help you, but writing your code is not doing that. That's not why we are here.

No one has wrote a code for me they have only wrote things like I had a problem with switches and a guy helped me I tried it worked first then I falied but he fixed the code to switches...

Plz give me an example that someone have wrote my code
Was This Post Helpful? 0
  • +
  • -

#43 akozlik  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 87
  • View blog
  • Posts: 796
  • Joined: 25-February 08

Re: Need my code to be cleaned and fixed

Posted 24 May 2008 - 05:24 PM

Amen brother. If you're really having this many problem writing code, I would definitely suggest starting with something smaller. Everybody sees commercials for Devry and ITT Tech and think wow! I'm going to go write a game! It doesn't quite work like that.

Go through some tutorials online, and study C programming as a language, rather than just trying to hack together a game. It's how we all learned. I'll even get you started. Go to www.cprogramming.com and do ALL the tutorials on there.

Also, you'll want to eventually learn about data structures such as linked lists, stacks, queues, etc. You need to understand these topics. Then you can start thinking about trying to write a game.

I say this in the nicest of terms, as we all started somewhere. You just need to start with something a bit less ambitious. Learn the concepts behind programming, and then go build that WOW kicking MMORPG.
Was This Post Helpful? 0
  • +
  • -

#44 gabehabe  Icon User is online

  • GabehabeSwamp
  • member icon




Reputation: 1346
  • View blog
  • Posts: 10,918
  • Joined: 06-February 08

Re: Need my code to be cleaned and fixed

Posted 25 May 2008 - 03:56 AM

codegamer said:

I don't work with theese languages in work, school or something that's why I need some extra help doh!
Even still, you have to try. I am completely self taught, and I manage to answer quite a few questions, don't I?

Try getting a book instead of relying on everyone else to do it for you - at the end of the day, if you ever manage to land a career from doing this, how are you gonna cope?
Was This Post Helpful? 0
  • +
  • -

#45 Codegamer  Icon User is offline

  • D.I.C Head

Reputation: 1
  • View blog
  • Posts: 127
  • Joined: 04-May 08

Re: Need my code to be cleaned and fixed

Posted 25 May 2008 - 04:00 AM

I've 69 C++ ebooks and only one helped me to start but there's no ebook for those who are in the middle of expert and noob.

And gabehabe yes you have helped me som things in C++ is that illegal or what?
Was This Post Helpful? 0
  • +
  • -

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4