Homework 6 & Midterm 1
Write a function int AtoiPlus(const char*, const char*) that takes two C-style strings containing int digit and return the corresponding int. For example, AtoiPlus("123", "4") return 127. You should write a main routine to test your function. Use at least the following code fragment to test your code.

1(原創) 写一个字符串相加产生整数的function (C/C++)string s = "1236";
2(原創) 写一个字符串相加产生整数的function (C/C++)char ca[] = "123";
3(原創) 写一个字符串相加产生整数的function (C/C++)// pass these into your AtoiPlus function and output 1359   


Demo code :

 1}

See Also
(原創)如何将std::string转int,double? (C/C++)
(原創)如何将int,double转std::string? (C/C++)

相关文章:

  • 2021-11-08
  • 2021-12-26
  • 2022-01-21
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2021-05-19
猜你喜欢
  • 2022-12-23
  • 2022-01-25
  • 2022-01-25
  • 2022-01-03
  • 2021-12-06
  • 2021-07-26
相关资源
相似解决方案