Author |
Message |
Guest
Offline
|
Posted: Fri Feb 01, 2008 7:23 am Post subject: Learning C |
 |
|
|
|
I'm trying to learn C in an attempt to make plugins for MERVBot.
Where do I begin? I have Dev C++ and I've downloaded and looked at the source of MERVBot, but it all looks like a bunch of jibberish. I've also checked out a few C tutorials, but nothing seems to help me understand.
Can anyone point me in the right direction? |
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Fri Feb 01, 2008 12:19 pm Post subject: |
 |
|
|
|
Um, The C tutorials would be the right direction you're looking for. I really don't know how to get any more basic than that. I believe http://www.cplusplus.com has tutorials, you might want to check those out. |
|
Back to top |
|
 |
Samapico No, these DO NOT look like penises, ok?

Joined: May 08 2003 Posts: 1252 Offline
|
Posted: Fri Feb 01, 2008 1:18 pm Post subject: |
 |
|
|
|
Yeah, read some cplusplus.com before attempting to make plugins. Once you get used to the language, you can try to understand the structure of a MERV plugin. _________________ (Insert a bunch of dead links here) |
|
Back to top |
|
 |
Guest
Offline
|
Posted: Fri Feb 01, 2008 1:30 pm Post subject: |
 |
|
|
|
Samapico wrote: | Yeah, read some cplusplus.com before attempting to you can try to understand the structure of a MERV plugin. |
I have a feeling that's going to be the hardest part.
Any tips for the future? |
|
Back to top |
|
 |
tcsoccerman Server Help Squatter
Age:33 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Fri Feb 01, 2008 3:42 pm Post subject: |
 |
|
|
|
you caqn also try the help file in devcpp. it's at help menu in the menustrip. |
|
Back to top |
|
 |
Guest
Offline
|
Posted: Fri Feb 01, 2008 6:31 pm Post subject: |
 |
|
|
|
I'm having a terrible time getting anything to work in Dev-C++. When I go to compile even the simplest program from a tutorial, it gives me a write "Error 1".
I don't know what the hell happened to it, but it used to work fine.
Can you recommend any other programs? |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Fri Feb 01, 2008 6:57 pm Post subject: |
 |
|
|
|
Error 1?
Could you copy the compile logs? _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Guest
Offline
|
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Fri Feb 01, 2008 8:03 pm Post subject: |
 |
|
|
|
And your Untitled1.cpp file?
Obviously, it's pointing at line 10; something you have with your #include statement isn't what it's expecting. |
|
Back to top |
|
 |
Guest
Offline
|
|
Back to top |
|
 |
tcsoccerman Server Help Squatter
Age:33 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Fri Feb 01, 2008 8:55 pm Post subject: |
 |
|
|
|
i don't know if this is how it is in the file, but try having
#include <stdio.h>
instead of
#include
<stdio.h> |
|
Back to top |
|
 |
Guest
Offline
|
Posted: Fri Feb 01, 2008 9:40 pm Post subject: |
 |
|
|
|
Heh, that did it.
Thanks a lot.
I'm gonna take a look at the tutorials you guys posted and if I have any more questions, I will post here. |
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Wed Feb 06, 2008 5:37 pm Post subject: |
 |
|
|
|
Yeah... anything that begins with # is a preprocessor or precompiler directive iirc, and all directives like that have to be on one line, and aren't ended with semicolons. It's not really being compiled, it's translated before the actual compilation. Just FYI. |
|
Back to top |
|
 |
|