• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
aacm
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2018年7月24日

将博客搬至CSDN
摘要: 搬个家喽 阅读全文
posted @ 2018-07-24 09:45 aacm 阅读(180) 评论(0) 推荐(0)
 
 

2017年6月2日

万年历小程序
摘要: #include #include #include #include using namespace std; unsigned int LunarCalendarDay; int gg1,gg2; int Year_first[10000];//每年第一天周几。 int day_first;//记录每月第一天是周几。 int a[13]={0,31,28,31,30,31,30... 阅读全文
posted @ 2017-06-02 08:50 aacm 阅读(2657) 评论(0) 推荐(0)
 
 

2017年5月27日

string
摘要: 一、包含的头文件 二、读写 1、cin,cout while() 2、getline 三、操作 1、常用的string操作 s.empty 如果s为空串,则返回true,否则返回false s.size 返回s中字符的个数 s[n] 返回s中的位置为n的字符,位置从0开始计数 s1 + s2 把s1 阅读全文
posted @ 2017-05-27 21:41 aacm 阅读(206) 评论(0) 推荐(0)
 
c++输入
摘要: Input I like C++./I study C++./I am happy. output enter a sentence: I like C++./I study C++./I am happy. The string read with cin is:I The second part 阅读全文
posted @ 2017-05-27 19:34 aacm 阅读(274) 评论(0) 推荐(0)
 
cin.get
摘要: get()函数是cin输入流对象的成员函数,它有3种形式:无参数的,有一个参数的,有3个参数的。 1) 不带参数的get函数 其调用形式为 cin.get() 用来从指定的输入流中提取一个字符(包括空白字符),函数的返回值就是读入的字符。 若遇到输入流中的文件结束符,则函数值返回文件结束标志EOF( 阅读全文
posted @ 2017-05-27 19:33 aacm 阅读(2768) 评论(0) 推荐(0)
 
get( )与getline( )区别
摘要: get与getline区别不是很大,但一个明显的区别是get遇到 '\n '字符后便返回,这是 '\n '还在缓冲区中,所以下次读出来的将是 '\n ',而getline遇到 '\n '也返回,但它会把 '\n '从缓冲区里移除掉 所以很多时候用getline方便些 一、cin.get()每次读取一 阅读全文
posted @ 2017-05-27 16:23 aacm 阅读(664) 评论(0) 推荐(0)
 
 

2017年5月25日

Points on Line
摘要: Points on LineDescription Little Petya likes points a lot. Recently his mom has presented him n points lying on the line OX. Now Petya is wondering in 阅读全文
posted @ 2017-05-25 20:39 aacm 阅读(257) 评论(0) 推荐(0)
 
upper_bound()与lower_bound()使用方法
摘要: #include //必须包含的头文件 #include using namespace std; int main() { int n,a[100],m; int left,right,i; scanf("%d",&n);//设初始数组内元素有n个 for(i=0;i<n;i++) scanf("%d",&a[i]); scanf("%... 阅读全文
posted @ 2017-05-25 16:13 aacm 阅读(6484) 评论(0) 推荐(0)
 
 

2017年5月19日

志愿者选拔
摘要: 世博会马上就要开幕了,福州大学组织了一次志愿者选拔活动。 参加志愿者选拔的同学们排队接受面试官们的面试。参加面试的同学们按照先来先面试并且先结束的原则接受面试官们的考查。 面试中每个人的人品是主要考查对象之一。(提高人品的方法有扶老奶奶过街,不闯红灯等) 作为主面试官的John想知道当前正在接受面试 阅读全文
posted @ 2017-05-19 19:45 aacm 阅读(613) 评论(0) 推荐(0)
 
 

2017年4月23日

sscanf
摘要: 在做一道九度上机题时,突然发现sscanf()函数非常有用,就顺便从网上搜集资料整理一下。 sscanf() 的作用:从一个字符串中读进与指定格式相符的数据. 原型: int sscanf (const char *str,const char * format,........); sscanf( 阅读全文
posted @ 2017-04-23 19:53 aacm 阅读(6410) 评论(0) 推荐(0)
 
 
下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3