--------------------------------------------------- platform: g++ on timberlake bash-3.2$ g++ -o IntList2 IntList2.cpp IntList2.cpp:65: error: invalid use of undefined type 'class List' IntList2.cpp:36: error: forward declaration of 'class List' IntList2.cpp:75: error: invalid use of undefined type 'class List' IntList2.cpp:36: error: forward declaration of 'class List' IntList2.cpp:102: error: expected `}' at end of input IntList2.cpp: In constructor 'List::List()': IntList2.cpp:40: error: expected `)' before '{' token IntList2.cpp:63: error: expected `{' before '}' token IntList2.cpp: In constructor 'List::Queue::Queue()': IntList2.cpp:68: error: type 'class List' is not a direct base of 'List::Queue' IntList2.cpp: In member function 'int List::Queue::get()': IntList2.cpp:70: error: 'get' is not a member of 'List' IntList2.cpp: In member function 'void List::Queue::put(int)': IntList2.cpp:72: error: 'add' was not declared in this scope IntList2.cpp: In constructor 'List::Stack::Stack()': IntList2.cpp:79: error: type 'class List' is not a direct base of 'List::Stack' IntList2.cpp: In member function 'int List::Stack::pop()': IntList2.cpp:80: error: 'get' was not declared in this scope IntList2.cpp: In member function 'void List::Stack::push(int)': IntList2.cpp:81: error: 'push' is not a member of 'List' IntList2.cpp: In member function 'int List::main()': IntList2.cpp:98: error: expected primary-expression before '<<' token IntList2.cpp:99: error: expected `;' before ')' token IntList2.cpp: At global scope: IntList2.cpp:102: error: expected unqualified-id at end of input forgot a ) bash-3.2$ g++ -o IntList2 IntList2.cpp IntList2.cpp: In function 'int main()': IntList2.cpp:98: error: expected primary-expression before '<<' token IntList2.cpp:99: error: expected `;' before ')' token bash-3.2$ had a ; in a middle of a line bash-3.2$ g++ -o plot PlottingCPlus.cpp PlottingCPlus.cpp:12: error: expected unqualified-id before ')' token PlottingCPlus.cpp: In function 'int main()': PlottingCPlus.cpp:32: error: invalid use of undefined type 'struct PlottingClass' PlottingCPlus.cpp:12: error: forward declaration of 'struct PlottingClass' bash-3.2$ Didn't initialize an object properly. bash-3.2$ g++ StringClientLDD.cpp StringClientLDD.cpp:50: error: ISO C++ forbids declaration of 'MyStringStack' with no type StringClientLDD.cpp:50: error: 'MyStringStack' is neither function nor member function; cannot be declared friend StringClientLDD.cpp:56: error: ISO C++ forbids declaration of 'push' with no type StringClientLDD.cpp:56: error: conflicting return type specified for 'virtual int MyStringStack::push(std::string)' StringClientLDD.cpp:36: error: overriding 'virtual void StringStack::push(std::string)' StringClientLDD.cpp: In member function 'virtual int MyStringStack::push(std::string)': StringClientLDD.cpp:25: error: 'int StringStack::top' is private StringClientLDD.cpp:57: error: within this context StringClientLDD.cpp:27: error: 'std::vector >* StringStack::elements' is private StringClientLDD.cpp:58: error: within this context StringClientLDD.cpp:58: error: expected unqualified-id before '(' token StringClientLDD.cpp:25: error: 'int StringStack::top' is private StringClientLDD.cpp:58: error: within this context timberlake {~/cse250} > g++ StringClientLDD.cpp StringClientLDD.cpp:98:2: warning: no newline at end of file platform: C++ from Windows(?) command line in "bash" window bash-3.2$ C++ HelloString.cpp HelloString.cpp: In function 'int main()': HelloString.cpp:19: error: invalid initialization of non-const reference of type 'std::string&' from a temporary of type 'const char*' HelloString.cpp:23: error: redeclaration of 'std::string& xr' HelloString.cpp:19: error: 'std::string& xr' previously declared here HelloString.cpp:34: error: assignment of read-only location bash-3.2$ C++ HelloWorld.cpp HelloWorld.cpp: In function 'int main()': HelloWorld.cpp:49: error: 'der' declared as reference but not initialized HelloWorld.cpp:53: error: conflicting declaration 'Derived* der' HelloWorld.cpp:49: error: 'der' has a previous declaration as 'Derived& der' HelloWorld.cpp:54: error: cannot convert 'Derived' to 'Base*' in initialization bash-3.2$ bash-3.2$ C++ IntList2.cpp IntList2.cpp:28: error: field 'next' has incomplete type IntList2.cpp: In constructor 'Cell::Cell(int)': IntList2.cpp:30: error: class 'Cell' does not have any field named 'next' IntList2.cpp: In constructor 'Cell::Cell(int, Cell*)': IntList2.cpp:31: error: class 'Cell' does not have any field named 'next' IntList2.cpp: In member function 'bool List::empty() const': IntList2.cpp:43: error: 'class Cell' has no member named 'next' IntList2.cpp: In member function 'void List::add(int)': IntList2.cpp:48: error: 'class Cell' has no member named 'next' IntList2.cpp:48: error: 'class Cell' has no member named 'next' IntList2.cpp: In member function 'virtual void List::push(int)': IntList2.cpp:51: error: 'class Cell' has no member named 'next' IntList2.cpp:51: error: 'class Cell' has no member named 'next' IntList2.cpp: In member function 'virtual int List::get()': IntList2.cpp:55: error: 'class Cell' has no member named 'next' IntList2.cpp:56: error: 'class Cell' has no member named 'next' IntList2.cpp:56: error: 'class Cell' has no member named 'next' bash-3.2$ ---removed the * from the declaration line. --------------------------------------------------------------------------- platform: g++ on Mac OS X. [exact causes not stated] HelloConst.cpp: In function ‘int main()’: HelloConst.cpp:24: error: assignment of read-only location HelloJava.cpp: In function ‘int main()’: HelloJava.cpp:50: error: conflicting declaration ‘Derived& der’ HelloJava.cpp:49: error: ‘der’ has a previous declaration as ‘Derived der’ HelloJava.cpp:54: error: conflicting declaration ‘Derived* der’ HelloJava.cpp:49: error: ‘der’ has a previous declaration as ‘Derived der’ HelloJava.cpp:55: error: cannot convert ‘Derived’ to ‘Base*’ in initialization HelloString.cpp: In function ‘int main()’: HelloString.cpp:19: error: invalid initialization of non-const reference of type ‘std::string&’ from a temporary of type ‘const char*’ HelloString.cpp:23: error: redeclaration of ‘std::string& xr’ HelloString.cpp:19: error: ‘std::string& xr’ previously declared here HelloWorld.cpp: In function ‘int main()’: HelloWorld.cpp:53: error: conflicting declaration ‘Derived* der’ HelloWorld.cpp:50: error: ‘der’ has a previous declaration as ‘const Derived& der’ HelloWorld.cpp:54: error: cannot convert ‘const Derived’ to ‘Base*’ in initialization JelloWorld.cpp:39: error: expected `{' before ‘public’ JelloWorld.cpp:39: error: expected unqualified-id before ‘public’ JelloWorld.cpp:43: error: expected declaration before ‘}’ token g++ -c LinkMain.cpp g++ -c LinkArg.cpp g++ -o LinkMain LinkMain.o LinkArg.o -lm ---------------------------------------------------------------------------- Platform: Windows 7 with Putty to Timberlake [KWR !! Wow---you have the Win 7 beta going? How is it?---!] File: LinkMain.cpp Problem: /tmp/ccPKzTdA.o: In function 'main': LinkMain.cpp:(.text+0x85): undefined reference to 'LinkArg::LinkArg(int const&)' LinkMain.cpp:(.text+0x99): undefined reference to 'LinkArg::LinkArg(int const&)' LinkMain.cpp:(.text+0xad): undefined reference to 'LinkArg::LinkArg(int const&)' LinkMain.cpp:(.text+0xc0): undefined reference to 'LinkArg:: operator std::basic_string >&, LinkArg const&)' /tmp/ccPKzTdA.o: In function 'LinkTemplate::lessThan(LinkArg const&, LinkArg const&) const' : LinkMain.cpp:(.text._ZNK12LinkTemplateI7LinkArgE8lessThanERKS0_S3_[LinkTemplate::lessThan(LinkArg const&, LinkArg const&) const]+0x1d): undefined reference to 'LinkArg::compare(LinkArg const&) const' collect2: ld returned 1 exit status File: LinkArg.cpp Problem: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../lib64/crt1.o: In function '_start': (.text+0x20): undefined reference to 'main' collect2: ld returned 1 exit status The above two resulted in these errors even without me tampering with them [KWR !! This is because they are tied to a Makefile. The errors you get are classic link errors. Try compiling with the "-c" option, which is what a Makefile does---or better yet, see if you can get "make -f LinkMain.make" working from your command line.] File: JelloWorld.cpp Line(s): 46: error: 'a' was not declared in this scope Cause: commented out declaration/asignment of a File: HelloWorld.cpp Line(s): 54: error: no match for 'operator=' in 'der + (((Derived*)operator new(8u)), (->Derived::Derived(), ))' 38: note: candidates are: Derived& Derived::operator=(const Derived&) 55: error: cannot convert 'Derived' to 'Base*' in initialization Cause: commented in Derived der and tried to assign a new Derived(); to it before assigning Base* foo to be der. File: HelloString.cpp Line(s): 51: error: 'xp' was not declared in this scope Cause: commented out the declaration/assignment of string* xp File: HelloJava.cpp Line(s): 56: error: request for member 'greet' in 'foo', which is of non-class type 'Base*' Cause: trying to execute foo.greet(a) File: HelloConst.cpp Line(s): 14: error: conversion from 'std::string*' to non-scalar type 'std::basic_string >' requested 16: error: cannot convert 'std::string' to 'std:string*' in assignment 18: error: no match for 'operator*' in '*xp' Cause: changed string* xp to string xp and changed xp->at(0) = 'H'; to xp.at(0) = 'H' ------------------------------------------------------------------- All the programs are run on a PC with Visual C++. One thing I have noticed working in Visual C++ is that if you don't include " #include " strings are somewhat difficult to work with, at least in the first two assignments, and even some of these outputs give less errors including that. HelloConst.cpp line 31 error C3892: 'ycp' : you cannot assign to a variable that is const HelloString.cpp line 24 error C2374: 'yr' : redefinition; multiple initialization ShapeTest.cpp line 11, 23 see declaration of 'ClosedCurve::area' warning C4244: 'argument' : conversion from 'double' to 'int', possible loss of data HelloConst.cpp line 30 error C2143: syntax error : missing ';' before 'const' error C2373: 'ycp' : redefinition; different type modifiers error C4430: missing type specifier - int assumed. Note: C++ does not support default-int HelloJava.cpp line 55 error C2372: 'foo' : redefinition; different types of indirection HelloString.cpp line 19,20 error C2440: 'initializing' : cannot convert from 'const char [6]' to 'std::string &' HelloWorld.cpp line 55 error C2228: left of '.greet' must have class/struct/union 1> type is 'Base *' 1> did you intend to use '->' instead? IntList2.cpp line 13 warning C4355: 'this' : used in base member initializer list LinkArg.cpp line 34 error C2248: 'LinkArg::x' : cannot access private member declared in class 'LinkArg' -------------------------------------------------------------------- platform: MS Visual Studio 9.0 Command Lines Creating temporary file "c:\Users\owner\Documents\Visual Studio 2008\Projects\test\test\Debug\RSP00000A9361924.rsp" with contents [ /Od /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /c /ZI /TP "..\..\..\..\..\Desktop\LinkMain.cpp" "..\..\..\..\..\Desktop\LinkArg.cpp" "..\..\..\..\..\Desktop\JelloWorld.cpp" "..\..\..\..\..\Desktop\HelloWorld.cpp" "..\..\..\..\..\Desktop\HelloString.cpp" "..\..\..\..\..\Desktop\HelloJava.cpp" "..\..\..\..\..\Desktop\HelloConst.cpp" ] Creating command line "cl.exe @"c:\Users\owner\Documents\Visual Studio 2008\Projects\test\test\Debug\RSP00000A9361924.rsp" /nologo /errorReport:prompt" Output Window Compiling... HelloConst.cpp c:\users\owner\desktop\helloconst.cpp(18) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, std::string)' with [ _Elem=char, _Traits=std::char_traits ] c:\users\owner\desktop\helloconst.cpp(25) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, const std::string)' with [ _Elem=char, _Traits=std::char_traits ] c:\users\owner\desktop\helloconst.cpp(33) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, std::string)' with [ _Elem=char, _Traits=std::char_traits ] c:\users\owner\desktop\helloconst.cpp(40) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, const std::string)' with [ _Elem=char, _Traits=std::char_traits ] HelloJava.cpp c:\users\owner\desktop\hellojava.cpp(36) : error C2784: 'std::_String_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_iterator<_Elem,_Traits,_Alloc>::difference_type,std::_String_iterator<_Elem,_Traits,_Alloc>)' : could not deduce template argument for 'std::_String_iterator<_Elem,_Traits,_Alloc>' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xstring(440) : see declaration of 'std::operator +' c:\users\owner\desktop\hellojava.cpp(36) : error C2784: 'std::_String_const_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_const_iterator<_Elem,_Traits,_Alloc>::difference_type,std::_String_const_iterator<_Elem,_Traits,_Alloc>)' : could not deduce template argument for 'std::_String_const_iterator<_Elem,_Traits,_Alloc>' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xstring(300) : see declaration of 'std::operator +' c:\users\owner\desktop\hellojava.cpp(36) : error C2784: 'std::reverse_iterator<_RanIt> std::operator +(_Diff,const std::reverse_iterator<_RanIt> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xutility(2203) : see declaration of 'std::operator +' c:\users\owner\desktop\hellojava.cpp(36) : error C2784: 'std::_Revranit<_RanIt,_Base> std::operator +(_Diff,const std::_Revranit<_RanIt,_Base> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xutility(2003) : see declaration of 'std::operator +' c:\users\owner\desktop\hellojava.cpp(36) : error C2676: binary '+' : 'const std::string' does not define this operator or a conversion to a type acceptable to the predefined operator c:\users\owner\desktop\hellojava.cpp(57) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::ostream, std::string)' HelloString.cpp c:\users\owner\desktop\hellostring.cpp(16) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, std::string)' with [ _Elem=char, _Traits=std::char_traits ] c:\users\owner\desktop\hellostring.cpp(27) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, std::string)' with [ _Elem=char, _Traits=std::char_traits ] c:\users\owner\desktop\hellostring.cpp(28) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, std::string)' with [ _Elem=char, _Traits=std::char_traits ] c:\users\owner\desktop\hellostring.cpp(35) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, const std::string)' with [ _Elem=char, _Traits=std::char_traits ] c:\users\owner\desktop\hellostring.cpp(46) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, std::string)' with [ _Elem=char, _Traits=std::char_traits ] c:\users\owner\desktop\hellostring.cpp(55) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::basic_ostream<_Elem,_Traits>, std::string)' with [ _Elem=char, _Traits=std::char_traits ] HelloWorld.cpp c:\users\owner\desktop\helloworld.cpp(35) : error C2784: 'std::_String_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_iterator<_Elem,_Traits,_Alloc>::difference_type,std::_String_iterator<_Elem,_Traits,_Alloc>)' : could not deduce template argument for 'std::_String_iterator<_Elem,_Traits,_Alloc>' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xstring(440) : see declaration of 'std::operator +' c:\users\owner\desktop\helloworld.cpp(35) : error C2784: 'std::_String_const_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_const_iterator<_Elem,_Traits,_Alloc>::difference_type,std::_String_const_iterator<_Elem,_Traits,_Alloc>)' : could not deduce template argument for 'std::_String_const_iterator<_Elem,_Traits,_Alloc>' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xstring(300) : see declaration of 'std::operator +' c:\users\owner\desktop\helloworld.cpp(35) : error C2784: 'std::reverse_iterator<_RanIt> std::operator +(_Diff,const std::reverse_iterator<_RanIt> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xutility(2203) : see declaration of 'std::operator +' c:\users\owner\desktop\helloworld.cpp(35) : error C2784: 'std::_Revranit<_RanIt,_Base> std::operator +(_Diff,const std::_Revranit<_RanIt,_Base> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xutility(2003) : see declaration of 'std::operator +' c:\users\owner\desktop\helloworld.cpp(35) : error C2676: binary '+' : 'std::string' does not define this operator or a conversion to a type acceptable to the predefined operator c:\users\owner\desktop\helloworld.cpp(56) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::ostream, std::string)' JelloWorld.cpp c:\users\owner\desktop\jelloworld.cpp(35) : error C2784: 'std::_String_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_iterator<_Elem,_Traits,_Alloc>::difference_type,std::_String_iterator<_Elem,_Traits,_Alloc>)' : could not deduce template argument for 'std::_String_iterator<_Elem,_Traits,_Alloc>' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xstring(440) : see declaration of 'std::operator +' c:\users\owner\desktop\jelloworld.cpp(35) : error C2784: 'std::_String_const_iterator<_Elem,_Traits,_Alloc> std::operator +(_String_const_iterator<_Elem,_Traits,_Alloc>::difference_type,std::_String_const_iterator<_Elem,_Traits,_Alloc>)' : could not deduce template argument for 'std::_String_const_iterator<_Elem,_Traits,_Alloc>' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xstring(300) : see declaration of 'std::operator +' c:\users\owner\desktop\jelloworld.cpp(35) : error C2784: 'std::reverse_iterator<_RanIt> std::operator +(_Diff,const std::reverse_iterator<_RanIt> &)' : could not deduce template argument for 'const std::reverse_iterator<_RanIt> &' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xutility(2203) : see declaration of 'std::operator +' c:\users\owner\desktop\jelloworld.cpp(35) : error C2784: 'std::_Revranit<_RanIt,_Base> std::operator +(_Diff,const std::_Revranit<_RanIt,_Base> &)' : could not deduce template argument for 'const std::_Revranit<_RanIt,_Base> &' from 'const char [8]' c:\program files\microsoft visual studio 9.0\vc\include\xutility(2003) : see declaration of 'std::operator +' c:\users\owner\desktop\jelloworld.cpp(35) : error C2676: binary '+' : 'std::string' does not define this operator or a conversion to a type acceptable to the predefined operator c:\users\owner\desktop\jelloworld.cpp(50) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) c:\program files\microsoft visual studio 9.0\vc\include\ostream(653): could be 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(700): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(738): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(785): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(909): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const signed char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(916): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,signed char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(923): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,const unsigned char *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(930): or 'std::basic_ostream<_Elem,_Traits> &std::operator <<>(std::basic_ostream<_Elem,_Traits> &,unsigned char)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(170): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ostream<_Elem,_Traits> &(__cdecl *)(std::basic_ostream<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(176): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_ios<_Elem,_Traits> &(__cdecl *)(std::basic_ios<_Elem,_Traits> &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(183): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::ios_base &(__cdecl *)(std::ios_base &))' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(190): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::_Bool)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(210): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(243): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned short)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(263): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(288): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned int)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(308): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(328): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__w64 unsigned long)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(349): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(__int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(369): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(unsigned __int64)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(390): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(float)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(410): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(430): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(long double)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(450): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(const void *)' with [ _Elem=char, _Traits=std::char_traits ] c:\program files\microsoft visual studio 9.0\vc\include\ostream(470): or 'std::basic_ostream<_Elem,_Traits> &std::basic_ostream<_Elem,_Traits>::operator <<(std::basic_streambuf<_Elem,_Traits> *)' with [ _Elem=char, _Traits=std::char_traits ] while trying to match the argument list '(std::ostream, std::string)' LinkArg.cpp c:\users\owner\desktop\linkarg.cpp(11) : error C2871: 'std' : a namespace with this name does not exist c:\users\owner\desktop\linkarg.cpp(14) : fatal error C1083: Cannot open include file: 'LinkArg.h': No such file or directory LinkMain.cpp c:\users\owner\desktop\linkmain.cpp(15) : fatal error C1083: Cannot open include file: 'LinkArg.h': No such file or directory Generating Code... Results Build log was saved at "file://c:\Users\owner\Documents\Visual Studio 2008\Projects\test\test\Debug\BuildLog.htm" test - 31 error(s), 0 warning(s) ----------------------------------------------------------------------- platform: MS Visual Stidio 2008 1>------ Build started: Project: Error, Configuration: Debug Win32 ------ 1>Compiling... 1>Error.cpp 1>.\Error.cpp(3) : fatal error C1083: Cannot open precompiled header file: 'Debug\Error.pch': No such file or directory 1>Build log was saved at [KWR: link deleted, private info] \Projects\Error\Error\Debug\BuildLog.htm" 1>Error - 1 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ------------------------------------------------------------------------ platform: (for all): Visual C++ File: HelloConst.cpp Line: 17 Error: C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) (lots more too, a good page full) Cause: Visual C++ wants #include to be put in or it gets really angry File: HelloConst.cpp Line: 30 error C2143: syntax error : missing ';' before 'const' error C2373: 'ypc' : redefinition; different type modifiers error C4430: missing type specifier - int assumed. Note: C++ does not support default-int error C2513: 'const int' : no variable declared before '=' Cause: un-commented line 30: "string* ypc const = new string("Jello");" File: HelloConst.cpp Line: 40 error C2784: 'std::basic_ostream<_Elem,_Traits> &std::operator <<(std::basic_ostream<_Elem,_Traits> &,const std::basic_string<_Elem,_Traits,_Alloc> &)' : could not deduce template argument for 'std::basic_ostream<_Elem,_Traits> &' from 'const char [2]' (and screenfulls more) Cause: only a single "<" instead of "<<" File: HelloConst.cpp Line: 17 error C2228: left of '.at' must have class/struct/union type is 'std::string *' did you intend to use '->' instead? Cause: the compiler is disturbingly accurate here >_> File: HelloConst.cpp Line: 16 warning C4553: '==' : operator has no effect; did you intend '='? Cause: Make that 2 straight for the compiler! File: HelloConst.cpp Line: 36 error C2065: 'Jello' : undeclared identifier Cause: Jello was not put in quotes File: HelloConst.cpp Line: 38 error C3892: 'ycpc' : you cannot assign to a variable that is const Cause: ycpc = xcpc; was uncommented. --------------------------------------------------------------------------- platform: Linux, g++ JelloWorld.cpp (added star on String Jello initilization) JelloWorld.cpp: In function ‘int main()’: JelloWorld.cpp:45: error: cannot convert ‘const char*’ to ‘std::string*’ in initialization JelloWorld.cpp:46: error: conversion from ‘std::string*’ to non-scalar type ‘std::string’ requested JelloWorld.cpp:50: error: no matching function for call to ‘Base::greet(std::string*&)’ JelloWorld.cpp:34: note: candidates are: std::string Base::greet(std::string) HelloConst.cpp (//string* const ycp = new string("Bello"); string* ycp const = new string("Jello"); //allowed by some compilers?) HelloConst.cpp: In function ‘int main()’: HelloConst.cpp:30: error: expected initializer before ‘const’ HelloConst.cpp:31: error: ‘ycp’ was not declared in this scope HelloWorld.cpp (cout -------------------------------------------------------------------------- platform: (KWR: looks like g++ on timberlake) 1) Error in HelloConst.cpp HelloConst.cpp: In function ‘int main()’: HelloConst.cpp:13: error: ‘Pointers’ was not declared in this scope HelloConst.cpp:13: error: expected `;' before ‘to’ HelloConst.cpp:16: error: ‘xp’ was not declared in this scope 2)Error in HelloJava.cpp HelloJava.cpp: In function ‘int main()’: HelloJava.cpp:55: error: conversion from ‘Derived*’ to non-scalar type ‘Base’ requested HelloJava.cpp:57: error: base operand of ‘->’ has non-pointer type ‘Base’ 3)Error in HelloWorld.cpp HelloWorld.cpp:30:19: warning: extra tokens at end of #include directive In c++ one must not use a semicolon after the include command 4)Error in HelloString.cpp HelloString.cpp: In function ‘int main()’: HelloString.cpp:52: error: ‘at’ was not declared in this scope 5)Error in LinkArg.cpp LinkArg:LinkArg(const int& x) Instead of colon , scope resolution operator must be used 6)Error in JelloWorld.cpp JelloWorld.cpp:44: error: new types may not be defined in a return type JelloWorld.cpp:44: note: (perhaps a semicolon is missing after the definition of ‘Derived’) JelloWorld.cpp:44: error: two or more data types in declaration of ‘main’ JelloWorld.cpp:44: error: ‘::main’ must return ‘int’ Class is not ended properly, in c++ one must end class with a semicolon after closing curly braces 7) Error in LinkMain.cpp Semicolon should not be used at the end of main method ---------------------------------------------------------------- 1) Error in HelloConst HelloConst.cpp: In function ‘int main()’: HelloConst.cpp:30: error: expected initializer before ‘const’ 2)Error in HelloString HelloString.cpp: In function ‘int main()’: HelloString.cpp:33: error: ‘ycr’ was not declared in this scope 3)Error in JelloWorld JelloWorld.cpp: In function ‘int main()’: JelloWorld.cpp:49: error: expected initializer before ‘->’ token JelloWorld.cpp:50: error: ‘foo’ was not declared in this scope 4)Error in Linkmain LinkMain.cpp:15:21: error: LinkArg.h: No such file or directory LinkMain.cpp:16:45: error: LinkTemplate.h: No such file or directory LinkMain.cpp: In function ‘int main()’: LinkMain.cpp:21: error: ‘LinkArg’ was not declared in this scope LinkMain.cpp:21: error: expected `;' before ‘b1’ LinkMain.cpp:22: error: expected `;' before ‘b2’ LinkMain.cpp:23: error: ‘b1’ was not declared in this scope LinkMain.cpp:25: error: ‘LinkTemplate’ was not declared in this scope LinkMain.cpp:25: error: ‘nonce’ was not declared in this scope LinkMain.cpp:25: error: expected type-specifier before ‘LinkTemplate’ LinkMain.cpp:25: error: expected `;' before ‘LinkTemplate’ LinkMain.cpp:26: error: ‘b2’ was not declared in this scope LinkMain.cpp:26: error: ‘lessThan’ was not declared in this scope [KWR: You downloaded an executable file, maybe my-bad for leaving it in the web folder after testing it there, but you should recognize the absence of a source-code extension (.h,.cpp) or object-code (.o) extension] 5)Error in HelloJava HelloJava.cpp: In function ‘int main()’: HelloJava.cpp:54: error: conflicting declaration ‘Derived* der’ HelloJava.cpp:51: error: ‘der’ has a previous declaration as ‘const Derived& der’ HelloJava.cpp:55: error: cannot convert ‘const Derived’ to ‘Base*’ in initialization 6) Error in HelloWorld HelloWorld.cpp: In function ‘int main()’: HelloWorld.cpp:46: error: cannot convert ‘std::string’ to ‘std::string*’ in initialization 7) Error in LinkArg LinkArg.cpp:14:21: error: LinkArg.h: No such file or directory LinkArg.cpp:16: error: ‘LinkArg’ has not been declared LinkArg.cpp:16: error: ISO C++ forbids declaration of ‘LinkArg’ with no type LinkArg.cpp: In function ‘int LinkArg(const int&)’: LinkArg.cpp:17: error: invalid use of ‘this’ in non-member function LinkArg.cpp: At global scope: LinkArg.cpp:20: error: ‘LinkArg’ is not a class or namespace LinkArg.cpp:20: error: expected ‘,’ or ‘...’ before ‘&’ token LinkArg.cpp:20: error: ISO C++ forbids declaration of ‘LinkArg’ with no type LinkArg.cpp:20: error: non-member function ‘int compare(int)’ cannot have cv-qualifier LinkArg.cpp: In function ‘int compare(int)’: LinkArg.cpp:22: error: invalid use of ‘this’ in non-member function LinkArg.cpp:22: error: ‘rhs’ was not declared in this scope LinkArg.cpp:22: error: invalid use of ‘this’ in non-member function LinkArg.cpp: At global scope: LinkArg.cpp:25: error: ‘LinkArg’ is not a class or namespace LinkArg.cpp:25: error: non-member function ‘operator std::string()’ cannot have cv-qualifier LinkArg.cpp:25: error: ‘operator std::string()’ must be a nonstatic member function LinkArg.cpp: In function ‘operator std::string()’: LinkArg.cpp:27: error: invalid use of ‘this’ in non-member function LinkArg.cpp: At global scope: LinkArg.cpp:33: error: expected ‘,’ or ‘...’ before ‘&’ token LinkArg.cpp:33: error: ISO C++ forbids declaration of ‘LinkArg’ with no type LinkArg.cpp: In function ‘std::ostream operator [KWR: With separate compilation, you need to download the .h file too!] --------------------------------------------------------------- platform: g++ on timberlake.cse.buffalo.edu File: HelloConst.cpp Line: ycpc = xcpc; error: HelloConst.cpp In function int main() HelloConst.cpp : 38 : assignment of read only variable ycpc File: HelloJava.cpp Line: Derived& der; error: HelloJava.cpp : 50 : der declared as reference but not initialized HelloJava.cpp : 54 : conflicting declaration Derived der HelloJava.cpp : 50 : der has a previous declarations Derived& der HelloJava.cpp : 55 : cannot convert Derived to Base in initialization File: HelloString.cpp Line: ycr = xcr; error: HelloString.cpp : 33 : passing âconst std::stringâ as âthisâ argument of âstd::basic_string& std::basic_string::operator=(const std::basic_string&) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]â discards qualifiers File: HelloWorld.cpp Line: Base& foo = (Base&) der; error: HelloWorld.cpp: In function âint main()â: HelloWorld.cpp:52: error: âderâ was not declared in this scope HelloWorld.cpp:53: error: redeclaration of âDerived* derâ HelloWorld.cpp:52: error: âderâ previously declared here HelloWorld.cpp:54: error: conflicting declaration âBase* fooâ HelloWorld.cpp:52: error: âfooâ has a previous declaration as âBase& fooâ HelloWorld.cpp:56: error: base operand of â->â has non-pointer type âBaseâ File: LinkArg.cpp Line: int LinkArg::dompare(const LinkArg& rhs) const{ error: LinkArg.cpp: In member function âint LinkArg::compare(const LinkArg&) constâ: LinkArg.cpp:21: error: a function-definition is not allowed here before â{â token LinkArg.cpp:25: error: expected `;' before âconstâ LinkArg.cpp:33: error: a function-definition is not allowed here before â{â token ----------------------------------------------------------------- platform: g++ on Macintosh [KWR: from Terminal command-line?] For the errors I changed some chars to bools. I have attached the file. I compiled with g++ on a mac. The error I got is : SeqClien.cpp:37: error: initializing argument 1 of ‘std::basic_string& std::basic_string::operator=(_CharT) [with _CharT = char, _Traits = std::char_traits, _Alloc = std::allocator]’ [KWR: I assume the student had screenfuls of similar lines---this happens when a type-error is made with a template-clas method. The system tries multiple type-instantiations of the template to try to make it work with your type-error...and it reports all of its failures...:-(.] ------------------------------------------------------------------- platform: g++ on timberlake timberlake {~/cse250} > g++ HelloConst.cpp HelloConst.cpp: In function ‘int main()’: HelloConst.cpp:31: error: assignment of read-only variable ‘ycp’ timberlake {~/cse250} > g++ HelloJava.cpp HelloJava.cpp: In function ‘int main()’: HelloJava.cpp:54: error: conflicting declaration ‘Derived* der’ HelloJava.cpp:49: error: ‘der’ has a previous declaration as ‘Derived der’ HelloJava.cpp:55: error: cannot convert ‘Derived’ to ‘Base*’ in initialization timberlake {~/cse250} > g++ HelloString.cpp HelloString.cpp: In function ‘int main()’: HelloString.cpp:19: error: invalid initialization of non-const reference of type ‘std::string&’ from a temporary of type ‘const char*’ HelloString.cpp:23: error: redeclaration of ‘std::string& xr’ HelloString.cpp:19: error: ‘std::string& xr’ previously declared here timberlake {~/cse250} > g++ HelloWorld.cpp HelloWorld.cpp: In function ‘int main()’: HelloWorld.cpp:53: error: conflicting declaration ‘Derived* der’ HelloWorld.cpp:50: error: ‘der’ has a previous declaration as ‘const Derived& der’ HelloWorld.cpp:54: error: cannot convert ‘const Derived’ to ‘Base*’ in initialization timberlake {~/cse250} > javac HelloWorld.java HelloWorld.java:22: cannot find symbol symbol : variable der location: class HelloWorld Base foo = der; ^ 1 error timberlake {~/cse250} > javac IntList2.java IntList2.java:78: class, interface, or enum expected } ^ 1 error timberlake {~/cse250} > g++ JelloWorld.cpp JelloWorld.cpp: In function ‘int main()’: JelloWorld.cpp:50: error: ‘foo’ was not declared in this scope timberlake {~/cse250} > g++ LinkArg.cpp LinkArg.cpp:20: error: no ‘int LinkArg::compare(const LinkArg&) const’ member function declared in class ‘LinkArg’ LinkArg.cpp:25: error: no ‘LinkArg::operator std::string() const’ member function declared in class ‘LinkArg’ LinkArg.cpp: In member function ‘LinkArg::operator std::string() const’: LinkArg.cpp:27: error: ‘out’ was not declared in this scope timberlake {~/cse250} > g++ LinkArg.h LinkArg.h:24: error: ISO C++ forbids declaration of ‘ostream’ with no type LinkArg.h:24: error: ‘ostream’ is neither function nor member function; cannot be declared friend LinkArg.h:24: error: expected ‘;’ before ‘&’ token LinkArg.h:27: error: expected constructor, destructor, or type conversion before ‘&’ token timberlake {~/cse250} > g++ LinkMain.cpp LinkTemplate.h:37: error: no ‘bool LinkTemplate::lessThan(const T&, const T&) const’ member function declared in class ‘LinkTemplate’ LinkTemplate.h:37: error: template definition of non-template ‘bool LinkTemplate::lessThan(const T&, const T&) const’ LinkMain.cpp: In function ‘int main()’: LinkMain.cpp:24: error: conversion from ‘LinkArg’ to non-scalar type ‘std::basic_string, std::allocator >’ requested LinkMain.cpp:26: error: ‘class LinkTemplate’ has no member named ‘lessThan’ LinkMain.cpp:27: error: ‘class LinkArg’ has no member named ‘operator std::string’ timberlake {~/cse250} > g++ LinkTemplate.h LinkTemplate.h:37: error: no ‘bool LinkTemplate::lessThan(const T&, const T&) const’ member function declared in class ‘LinkTemplate’ LinkTemplate.h:37: error: template definition of non-template ‘bool LinkTemplate::lessThan(const T&, const T&) const’ timberlake {~/cse250} > javac StringClient.java StringClient.java:26: class, interface, or enum expected int top; ^ StringClient.java:27: class, interface, or enum expected final int maxSize = 101; //C++: must init by constructor? ^ StringClient.java:28: class, interface, or enum expected String elements[] = new String[maxSize]; //C++: use vector* ^ StringClient.java:38: class, interface, or enum expected public StringStack() {top = 0;} ^ StringClient.java:38: class, interface, or enum expected public StringStack() {top = 0;} ^ StringClient.java:40: class, interface, or enum expected public void push(String c) { ^ StringClient.java:42: class, interface, or enum expected } ^ StringClient.java:43: class, interface, or enum expected public String pop() { ^ StringClient.java:46: class, interface, or enum expected return ""; //System.err.print ~= cerr << in C++ ^ StringClient.java:47: class, interface, or enum expected } else { ^ StringClient.java:49: class, interface, or enum expected } //Well, as we'll see , it *is* STL-style! ^ StringClient.java:51: class, interface, or enum expected public int size() { return top; } ^ StringClient.java:51: class, interface, or enum expected public int size() { return top; } ^ 13 errors timberlake {~/cse250} > ----------------------------------------------------------