Solved

how can I compile two .cpp files and a main file in Dev C++.Also,exam help please

Posted on 2009-05-06
1
427 Views
Last Modified: 2013-12-14
I am trying to execute figure 10.11 - 10.14 in deitel, c++ how to program..
This example is about composition of a member object in a different class.
How can I compile and link the date.cpp(date.h), Employee.cpp(employee.h)  and a main file.
I placed all the above files in a project and trying to hit Execute--> compile option in Dev c++......
I dont know what went wrong but my Date.cpp is throwing many errors.
The link for code is below
http://media.pearsoncmg.com/ph/esm/deitel/CppHTP6e/examples/ 
hit this link and download chapter 10 code.
Now open fig 10_10_14.......

Also I have my c++ final tomorrow I dont really understand why this language is such complex.I can understand the program but I cant write one on my own.......
can somebody provide some sample tests and solutions on oops.
0
Comment
Question by:aditya86b
1 Comment
 
LVL 39

Accepted Solution

by:
itsmeandnobodyelse earned 500 total points
ID: 24324046
>>>> but my Date.cpp is throwing many errors.
Can you post the errors?

It probably is only some include paths missing. It is correct to put all these sources into one folder and one project. The project file normally is in the same folder as the sources.


0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now