#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????

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

class something
{
.
.
.
}[B];[/B]
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.