Thread: C++ Funtion/Include Problems.

  1. #46
    Registered User
    Join Date
    Apr 2005
    Posts
    26
    I did. That worked.

    Then I added monster.cpp and monster.h.

    There was an error. (i typed #end instead of #endif)

    So I fixed that.

    AND IT F@£"!G WORKS!

    Thank you so much for your help. I think it must be something to do with how I added to the project, Something didn't compute (maybe an error since I'm using the last "stable" release, methinks) So from now on, people if you have problems including files, a better way to do it than the "add to project" feature, is to

    Right click on the project in the left section
    Click "new file"
    Copy paste your code in
    then "rename file"

    Done.

    Thank you so much 7stud. Maybe one day I will be able to help people code on here too
    I'm using Dev-C++ 4.9.8.0

  2. #47
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    Alriiight!

    You can learn a lot by explaining things to other people. In addition, as you get more experienced you tend to lose touch with how beginners think, so a beginner can often explain things better to another beginner. No matter how much a person knows about programming, there is usually someone somewhere who can program circles around them. So, jump in any time.
    Last edited by 7stud; 04-24-2005 at 08:05 AM.

  3. #48
    Registered User
    Join Date
    Apr 2005
    Posts
    26
    Lol, I've already run in to my next set of problems, but this time I have some limited Idea about them, so it shouldn't be a problem.
    I'm using Dev-C++ 4.9.8.0

  4. #49
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    By the way, you might want to download a newer version of Dev-C++.

    The current version is 4.9.9.2, and the next might just be the 5.0 final, if everything goes right.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. No clue how to make a code to solve problems!
    By ctnzn in forum C Programming
    Replies: 8
    Last Post: 10-16-2008, 02:59 AM
  2. C Pointers Problems
    By mhelal in forum C Programming
    Replies: 8
    Last Post: 01-10-2007, 06:35 AM
  3. String Manipulation problems -_-
    By Astra in forum C Programming
    Replies: 5
    Last Post: 12-13-2006, 05:48 PM
  4. Rendering problems (DirectX?)
    By OnionKnight in forum Tech Board
    Replies: 0
    Last Post: 08-17-2006, 12:17 PM
  5. contest problems on my site
    By DavidP in forum Contests Board
    Replies: 4
    Last Post: 01-10-2004, 09:19 PM