#include <iostream>
int show(int iA,int iB)
{
    return iA + iB;
}
int main()
{
    int iA,iB;
    
    std::cout<<"请输入加数a:";
    std::cin>>iA;
    std::cout<<"请输入被加数b:";
    std::cin>>iB;

    std::cout<<"a+b="<<show(iA,iB)<<"\n";


    system("pause");
    return 0;
}


窗口编译后一闪而过 需要在 return 0;

前添加 system("pause");

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
猜你喜欢
  • 2021-09-03
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
相关资源
相似解决方案