码家

Web Platform, Cloud and Mobile Application Development

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年10月16日

摘要: #include<iostream>int main(){ std::cout<<"Please Enter two number:"<<std::endl; int a,b; std::cin>>a>>b; std::cout<<"The sum of"; std::cout<<a; std::cout<<"and"; std::cout<<b; std::cout<<"is:"; std::c 阅读全文
posted @ 2011-10-16 10:42 海山 阅读(103) 评论(0) 推荐(0)

摘要: #include<iostream>int main(){ std:cout<<"Please Enter two numbers:"<<std:endl; int a,b; std:cin>>a>>b; std:cout<<"a*b:"<<a*b<<std:endl; return 0; } 阅读全文
posted @ 2011-10-16 10:32 海山 阅读(106) 评论(0) 推荐(0)

摘要: #include<iostream>int main(){ std:cout<<"Hello,World"<<std:endl; return 0;} 阅读全文
posted @ 2011-10-16 10:23 海山 阅读(109) 评论(0) 推荐(0)

摘要: 返回值是0、-1、其他正数。分别代表什么意思。windows下返回-1操作系统并不报错。dos下敲入:echo %ERRORLEVEL% 系统会显示返回值-1 阅读全文
posted @ 2011-10-16 10:21 海山 阅读(128) 评论(0) 推荐(0)

摘要: 头文件和源文件的命名。头文件后缀:.h或者.hpp源文件后缀:.cc或.cpp 阅读全文
posted @ 2011-10-16 10:18 海山 阅读(141) 评论(0) 推荐(0)