0

i dont understand how to do makefile .? can u give me some exmaple how to makefile for this code.and where to add the make file ...im using devC++ and vb2008

//file for GradeBook.h
#include <string>
using std::string;

// GradeBook class definition
class GradeBook
{
public:
GradeBook( string name );
void setCourseName( string name );
string getCourseName();
void displayMessage();
private:
string courseName;
};

//file for main.cpp
#include <iostream>
using std::cout;
using std::endl;

#include "GradeBook.h"

int main()
{ 
// create two gradeBook objects
GradeBook gradeBook1( "CS101 Introduction to C++ Programming" );
GradeBook gradeBook2( "CS102 Data Structures in C++" );

// display initial value of courseName for each GradeBoook
cout << "gradeBook1 created for course: " << gradeBook1.getCourseName()
<< "\ngradeBook2 created for course: " << gradeBook2.getCourseName()
<< endl;

return 0;
}
4
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by daviddoria
0

For DevCpp i'm guessing the easiest fix for you would just be to create a new project and put all of your files into that project and then compile it.

Chris

0

I did makefiles under unix in the 20th century. Man that was fun!
>>using devC++ and vb2008
together?
vb2008 does not even have a notion of makefiles which is great.
devC++ I don't know

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.