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






愉快的一天

 
 

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

2016年12月25日

add number
摘要: // io.cpp #include int readNumber() { std::cout > x; return x; } void writeAnswer(int x) { std::cout << "The answer is: " << x << std::endl; } // main.cpp int readNumber(); void writ... 阅读全文
posted @ 2016-12-25 23:10 愉快的一天 阅读(236) 评论(0) 推荐(0)
 
reference
摘要: z@z:~$ g++ -std=c++11 ref.cpp ref.cpp:7:10: error: invalid conversion from ‘int’ to ‘int*’ [-fpermissive] int *a = i; ^z@z:~$ g++ -std=c++11 ref.cpp 阅读全文
posted @ 2016-12-25 12:53 愉快的一天 阅读(157) 评论(0) 推荐(0)