Hi
I did not paste the heading when I post the code,
MVC++6, win32 app
Code:
error C2664: 'class std::basic_istream<char,struct std::char_traits<char> > &__cdecl std::getline(class std::basic_istream<char,struct std::char_traits<char> > &,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > &,const char)' : cannot convert parameter 2 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > [9]' to 'class std::basic_string<char,struct std::char_traits<char>,class std::allocato
r<char> > &'
A reference that is not to 'const' cannot be bound to a non-lvalue
C:\date\date.cpp(23) : error C2664: 'itoa' : cannot convert parameter 2 from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > [9]' to 'char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
C:\date\date.cpp(33) : error C2440: 'initializing' : cannot convert from 'const int' to 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >'
No constructor could take the source type, or constructor overload resolution was ambiguous
C:\date\date.cpp(33) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Error executing cl.exe.
heading
Code:
#include <cstdio>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <time.h>
#include <numeric>
#include <limits>
using namespace std;
I am not sure what is these error are.