0
#include <iostream>
#include <string>
#include "Movie.h"
#include "Collect.h"
using namespace std;

int main() {
	Collect c1;
	c1.setTitle("BestofBest");
	Movie m1, m2, m3("John Ford", "Stagecoach", "Western", 96, "G", "1939");
	m1.set("David Lean", "Doctor Zhivago", "Historical", 200, "G", "1965" );
	m2.setDirector("John Avildsen");
	m2.setTitle("Rocky");
	m2.setGenre("Sports");
	m2.setLength(120);
	m2.setRating("G");
	m2.setRelease("1976");
	Movie m4(m2);
	cout << m4.getDirector() << " " << m4.getTitle() << " " <<  m4.getGenre() << " " << m4.getRating()<< endl; 
	Movie m5;
	cin >> m5;
	cout << m1 << m2 << m3 << m4 << m5;
	
	return 0;
}

i am getting "1>c:\users\brandon\documents\visual studio 2008\projects\project 2\project 2\main.cpp(5) : error C2143: syntax error : missing ';' before 'using'"
i have tried everything....is there possibly another error in my other files causing this????

2
Contributors
1
Reply
2
Views
9 Years
Discussion Span
Last Post by John A
0

Have you remembered to put a semicolon after your class definitions? I.e.

class something
{
.
.
.
}[B];[/B]
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.