Quick c++ Question

Associate
Joined
2 Oct 2003
Posts
2,121
Location
Chester
Code:
#include <iostream>
using namespace std;

struct movies_t {
	char title;
	int year;
};

struct friends_t {
	char name;
	int age;
	movies_t favFilm;
} robert, aled;

int main()
{
	aled.favFilm.title = "The Matrix";
	cout << aled.favFilm.title;
	return 0;
}

e:\Visual Studio Projects\pointers\pointers.cpp(17): error C2440: '=' : cannot convert from 'const char [11]' to 'char'


How do I fix this? :(
 
Back
Top Bottom