• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






yogurt_莹

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2018年9月18日

打印表头函数
摘要: #include<iostream> using namespace std; void TableHead(); //声明打印表头函数 int main(){ TableHead(); //调用打印表头函数 system("pause"); return 0; } void TableHead() 阅读全文
posted @ 2018-09-18 23:31 yogurt_莹 阅读(155) 评论(0) 推荐(0)
 
值传递与地址传值的区别
摘要: #include<iostream> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<a<<b<<endl; //第一次输出a,b swap(a,b); //交换后输出b,a cout<<a<<b<<endl; //调用后输出a, 阅读全文
posted @ 2018-09-18 23:20 yogurt_莹 阅读(205) 评论(0) 推荐(0)
 
string的比较查找
摘要: #include<iostream> #include<string> using namespace std; int main(){ string str1("abcde"); //字符串初始化 string str2("abd"); cout<<(str1<str2)<<endl; //用(s 阅读全文
posted @ 2018-09-18 23:06 yogurt_莹 阅读(383) 评论(0) 推荐(0)