Thread: Help me get my feat on the grond

  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    6

    Question Help me get my feat on the grond

    firs i would like to say yes i am a noob to c++ but this is not the first time ive tryed to program. I made bots for onlin game for fun becaus it was somting i liked to do I programd in pascal. Now i wish to start out in C++ making bot so i can start learnigh the C++ language. So if some of you people can help me out i would like to no if Dev-C++ is a good compiler to use or if it is not then wut kind of compiler to get and were i can get it.


    Also if some of you can answer some of these questons that i have or drect me to were i can find out or how to find out it whould b a lot of help thanks.

    i nead to no how to make the mouse move to a spot i asign it like X and y cordenets?


    i need to no how to find colors on the screen so i can have to ?mouse move to them


    need to no how to search for bitmaps?

    that all i have for now

    p.s I cant spell verey well so just try to make it out

  2. #2
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    Hi diving, welcome to C++! First off, check out the tutotials on the home page of this site.. they can get noobs off to a good start. Here is a first glimps at C++:

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
    cout << "Hello Diving!" << endl;
    
    return 0;
    }
    
    output: Hello Diving!
    As for colours to the screen, that is pretty advanced topic, but again there are
    online tutorials that can help you out, or do a google. Aslo, look on the FAQ pages
    of this website for any aditiional help. Mouse pointing would have alot to do with
    pointers '*' but this again is a high advanced topic. Learn the basics first.. then learn the harder bits after you are confident. We are always here to help you out if you have
    any questions.

    This is a colur text program for the console, but if you are a noob I don't excpect you to
    understand all the code.:

    Code:
    void DrawColorString(string szText, int X, int Y, WORD color)
    {	
    	HANDLE OutputH;									
    	COORD position = {X, Y};							
    
    	OutputH = GetStdHandle(STD_OUTPUT_HANDLE);		
    
    	SetConsoleTextAttribute(OutputH, color);		
    													
    	SetConsoleCursorPosition(OutputH, position);	
    
    	cout << szText;									
    
    }
    As for compilers, I use DevC++ for little programs and Microsoft Visual C++ 2003 and 2005
    for larger projects like games for example. Dev C++ is a good compiler for anyone new to the language. It has a good gnw compiler that is faithful to the ISO standard too. Play around with small programs first, then as you get more confident, try new things.

    We are always here to help you if you get stuck on any erros or stuff.

    Good Luck!

    Pete

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    Welcome to the C++ forum.

    Dev-C++ is a fine compiler. And it's popular, so if you have any trouble getting started with it there are people here who can help.

    With your Pascal experience, you should be able to work through the cprograming.com tutorials rather quickly. I also recommend that you get yourself a book. A good beginning book will cover the same topics in the tutorial, but with more depth and explanation. If you continue with C++, you will need more than one book... It's a complex language.

    Now the bad news - There is no color, graphics, mouse, sound, or networking in ANSI/ISO Standard C++ ! (I assume that the same is true of Pascal.) Of course most compilers (including Dev-C++) do have platform-specific libraries for this stuff, but you need to learn the standard underlying language first.


    ...And now a bit of harsh advice -
    p.s I cant spell verey well so just try to make it out
    Assuming that English is your first language.... You MUST work on your spelling!!! Programming requires precision, and lousy spelling reflects badly on your attitude about precision. It gives the impression that you're not willing to put-in the kind of care and effort that's required for programming. The compiler does not have any sympathy! It's just going to give you a bunch of hard-to-understand error messages. Or worse, it's going to compile your program with the bugs and errors!

    My spelling sucks too!* But, I know how to use a dictionary and spell-checker! I'm going to spell-check this post! You can write your post here, and then paste it into your word processor to spell-check it, or you can write your post with a word processor, and then paste it into the forum.

    Instead of apologizing and expecting everybody else to adjust to your problems, I suggest that you try to find strategies to overcome and compensate for your weaknesses. For example, when I was in college, I carried a dictionary with me. Now, I keep a dictionary on my desk. I highlight words in the dictionary when I look them up so that I can slap myself when I have to look-up a word a 2nd or 3rd time... And, so I can easily find them again.

    * However, I do know the difference between "feat" and "feet", and the difference between "no" and "know". ...If you look those up in your dictionary, I think you'll get a laugh too!

  4. #4
    Registered User
    Join Date
    Jan 2006
    Posts
    3
    Best to keep this in your favorite sites section on whatever browser your using, correct spelling is a must have. No offense but unless English is a secondary language for you, you should definately learn to type and spell more efficently. Not saying you have to be a spelling bee king (no doubt there are grammatical and spelling errors in this post). Spelling is really a vital skill in really any field of work. I know this post is off topic but just wanted to give you some insight.

    Here is the site: http://www.spellcheck.net/ or you could just do what the other poster said and use a word processor.

    Good luck

  5. #5
    Registered User
    Join Date
    Jan 2006
    Posts
    6
    Thank you gies a lot for you help and I think ill be sticking arrowed for a wile and ill go through some tutorials. The reason I’m not good at spelling is that I am Dyslexic witch I think is sweet because of how fast I pick things up when I was studding Pascal. It took me 2 weeks to learn a lot of the language and took me 3 more weeks after that to make a 1350 line program for a game called runescape don’t really like the game but I loved scripting for it. If you have never heard of Dyslexia is basically not a good speller a different way of thinking of things. I have completely written a paper backwards I mean you had to look in a mirror to read it and I didn’t even no that I did it and cant do it win I try to.


    I’m purity sure that there is a way to move the mouse to x,y cored nets. Pascal does do that because that’s what I used all the time and a find colors on the page to make auto bots.

  6. #6
    Registered User
    Join Date
    Jan 2006
    Posts
    6
    does any have any good books to recemend?

  7. #7
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    Heheheh, runescape scripting, sounds terribly farmiliar for some crazy reason...

    Anyways, you seem to be able to function just fine with dislexia, so I'll go on to saying this:

    Use google, its fun. This site has a bunch of tutorials (Direct Link);
    http://www.cprogramming.com/tutorial.html

    And dont get to comfy with -the particular language you're using-, it gives you alot of power with little code, but C++ gives you near infinite power, but tons more code. Mmmm dont try it without making sure you understand the general ideas of C++. (Or it'll give you a major headache later -,-)

    Good luck :P
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

Popular pages Recent additions subscribe to a feed