- #1
Lancelot59
- 646
- 1
The code would be too long to paste here, so I've put it up on PasteBin.
http://pastebin.com/m1190678c
My compiler has an issue with every single getline():
This is just for the one on line 161.
Also it appparently thinks I'm missing a ')' in the for loop on line 158, and a ';' before the '{' on 159.
I have no clue what's going on. Can someone please help me?
http://pastebin.com/m1190678c
My compiler has an issue with every single getline():
This is just for the one on line 161.
Code:
Error 4 161 error C2784: 'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_istream<_Elem,_Traits> &' from 'std::ifstream' e:\users\ashwin\my stuff\school\post secondary\2009\kwantlen\school work\fall semester\cpsc 1103\assignments\assignment 5\cpsc1103_asgn05\cpsc1103_asgn05\cpsc1103_asgn05_combinedcode.cppError 5 161 error C2784: 'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_string<_Elem,_Traits,_Alloc> &' from 'int' e:\users\ashwin\my stuff\school\post secondary\2009\kwantlen\school work\fall semester\cpsc 1103\assignments\assignment 5\cpsc1103_asgn05\cpsc1103_asgn05\cpsc1103_asgn05_combinedcode.cppError 6 161 error C2780: 'std::basic_istream<_Elem,_Traits> &std::getline(std::basic_istream<_Elem,_Traits> &,std::basic_string<_Elem,_Traits,_Alloc> &,const _Elem)' : expects 3 arguments - 2 provided e:\users\ashwin\my stuff\school\post secondary\2009\kwantlen\school work\fall semester\cpsc 1103\assignments\assignment 5\cpsc1103_asgn05\cpsc1103_asgn05\cpsc1103_asgn05_combinedcode.cpp
Also it appparently thinks I'm missing a ')' in the for loop on line 158, and a ';' before the '{' on 159.
I have no clue what's going on. Can someone please help me?
Last edited by a moderator: