1. Wrong : Return a Reference to a Local Object 
const string &manip(const string& s)
{
    
string ret=s;
    
return ret;
}

 

2. Wrong:未分配内存就进行操作

 

{
    
char *s ;
    itoa(s,
123,10);
}

 

3. 待整理

相关文章:

  • 2021-09-17
  • 2021-07-17
  • 2022-12-23
猜你喜欢
  • 2021-12-12
  • 2021-12-03
  • 2022-12-23
  • 2021-11-05
  • 2022-03-01
  • 2022-12-23
  • 2021-12-13
相关资源
相似解决方案