I have look at your related questions but can't find a solution to my specific problem.
line prior to my error message
cout<<setw(20)<<studentFirstName+' '+studentLastName;
cout<<setfill<<('.')<<setw(30)<<"Total Points"<<cTotal<<endl;
#include <iomanip>
#include <iostream>
#include <conio.h>
#include <string>
using namespace std;
string studentFirstName, studentLastName;
int firstProgScore, secondProgScore, thirdProgScore;
int fourthProgScore, fifthProgScore;
int firstTestScore, secondTestScore, thirdTestScore;
int pTotal, tTotal, cTotal;
float pAverage, tAverage, cAverage;
error message: f:\documents\it210_summer07\projects\student grades july 5\student_grades.cpp(94) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
c:\program files\microsoft visual studio 8\vc\include\ostream(650): could be 'std::basic_ostream<_Elem,_Traits> &std:perator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)'
with
_Elem=char,
_Traits=std::char_traits<char>
any suggestions?
Thanks,
Jennifer
]
line prior to my error message
cout<<setw(20)<<studentFirstName+' '+studentLastName;
cout<<setfill<<('.')<<setw(30)<<"Total Points"<<cTotal<<endl;
#include <iomanip>
#include <iostream>
#include <conio.h>
#include <string>
using namespace std;
string studentFirstName, studentLastName;
int firstProgScore, secondProgScore, thirdProgScore;
int fourthProgScore, fifthProgScore;
int firstTestScore, secondTestScore, thirdTestScore;
int pTotal, tTotal, cTotal;
float pAverage, tAverage, cAverage;
error message: f:\documents\it210_summer07\projects\student grades july 5\student_grades.cpp(94) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)
c:\program files\microsoft visual studio 8\vc\include\ostream(650): could be 'std::basic_ostream<_Elem,_Traits> &std:perator <<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const char *)'
with
_Elem=char,
_Traits=std::char_traits<char>
any suggestions?
Thanks,
Jennifer
]