All pastes #423003 Raw Edit

Stuff

public text v1 · immutable
·published 2007-04-03 21:13 UTC
rendered paste body
printf_function.cpp: In function 'int main(int, char**)':
printf_function.cpp:13: error: 'get_int' was not declared in this scope
printf_function.cpp:17: error: 'put_string' was not declared in this scope
printf_function.cpp: In function 'int get_int(std::string)':
printf_function.cpp:24: error: cannot convert 'std::string' to 'const char*' for argument '1' to 'int printf(const char*, ...)'
printf_function.cpp: In function 'int put_string(int, int, std::string)':
printf_function.cpp:31: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](((const char*)"add"))' to 'bool'
printf_function.cpp:36: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](((const char*)"multiply"))' to 'bool'
printf_function.cpp:41: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](((const char*)"subtract"))' to 'bool'
printf_function.cpp:46: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](((const char*)"mod"))' to 'bool'
printf_function.cpp:51: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](((const char*)"pow"))' to 'bool'
printf_function.cpp:56: error: could not convert 'type. std::basic_string<_CharT, _Traits, _Alloc>::operator= [with _CharT = char, _Traits = std::char_traits<char>, _Alloc = std::allocator<char>](((const char*)"divide"))' to 'bool'