摘要: 新的一学期的计划 还有一年我就要开始找工作了,为了找工作要做好准备,所以要好好刷题,刷题使用leetcode,难度有些大,但是都可以克服,加油! 计划一周刷一道题,可以是任何难度,不仅仅是把这一道题弄明白,还有知道所需要的知识点。我计划用python或者C++进行刷题,不用C语言刷题。我需要用C语言 阅读全文
posted @ 2017-08-29 10:42 sarah_lxq 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 回顾2016,我总共经历了一件事,就是考研调剂。我从2016年的新年之后一直在等着考研成绩的出来,结果差强人意。我本来信心十足,终于觉得能够考上我心中理想的大学 北京邮电大学,但是事实往往是相反的。在面试过程中,由于我的基础知识不好,所以老师没有接受我。我就开始了艰辛的调剂之路。这是我这一辈子最难忘 阅读全文
posted @ 2016-12-31 23:52 sarah_lxq 阅读(99) 评论(0) 推荐(0) 编辑
摘要: include using namespace std; int decToOct(int num); int main() { int nNum; while (cin nNum){ cout 阅读全文
posted @ 2016-12-12 22:49 sarah_lxq 阅读(362) 评论(0) 推荐(0) 编辑
摘要: //判断回文数: bool isPalindrome(int n) { int temp1 = n, temp2 = 0; while(n 0) { temp2 = temp2 10 + n % 10; n /= 10; } return temp1 == temp2; } //判断素数: bool 阅读全文
posted @ 2016-12-12 18:59 sarah_lxq 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 命名空间关键字:namespace namespace A { int x = 0; void f1(); void f2(); } namespace B { int x = 2; void f1(); void f3(); } cout << A::x<<endl; B::f1(); #incl 阅读全文
posted @ 2016-09-10 14:41 sarah_lxq 阅读(271) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include<iomanip>using namespace std; int main(){ int year; cout << "Enter the year "; cin >> year; int firstDay; cout << "Enter fir 阅读全文
posted @ 2016-07-07 19:28 sarah_lxq 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 引用变量是一种特殊类型的变量,将函数形参声明为此种类型的变量,形参将成为原变量的一个引用(而不是拷贝)。一个引用变量的实质是另一个变量的一个别名,任何对引用变量的改变实际上都会作用到原变量上。 声明一个引用变量应在变量名前放置一个“&”。如:int &refVar; int & refVar; in 阅读全文
posted @ 2016-07-02 21:27 sarah_lxq 阅读(286) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<time.h> int main(void){// 随机产生雷的个数 (最多5个) int numBom = -1; srand(time(0)); numBom = rand() % 5 + 1;// 产生雷的 阅读全文
posted @ 2016-06-27 00:26 sarah_lxq 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 今天是第一天开通博客,原因是我看到了一个人的博客写的特别棒,想着我也即将进入学习编程人的行列,努力学习技术,我很喜欢计算机编程,也愿意努力的去解决问题。希望我在技术的道路上越走越远。给自己鼓劲,加油! 阅读全文
posted @ 2016-06-24 22:38 sarah_lxq 阅读(68) 评论(0) 推荐(0) 编辑