先说最重要的结论
当指针作为参数传入函数时,是值传递而非引用传递!!!
其次,不要把指针在定义时和使用时搞混!
	
		
			定义时/值
			p
			*p
			
			**p
			
		
	
	
		
			int p;//变... 
    
    
    
    
        1. 操作系统:操作系统是管理计算机硬件与软件资源的计算机程序,主要有进程管理、内存管理、文件管理和I/O管理等任务。
2. 进程和程序的区别:程序是静止的,进程是动态的;进程包括程序、数据、进程控制块;进程具有并发性而程序没有;进程是暂时的,有生命周期,程序则可以永久保存在硬盘上。进程... 
    
    
    
    
        Directions:
Write an essay based on the chart below. In your writing, you should
1) interpret the chart, and
2) give your comments.
You... 
    
    
    
    
        22年真题
 
 
题目说明
感觉今年的题目主旨是批判学习的功利性,但用功利性的主题来写临场作文会有点深,所以我的落脚点是“实用目的”(Practical purpose)
1. 开头段范文
The pic... 
    
    
    
    
        先写结论:做笔记,首要目的是为了获得一个知识梳理的过程。而笔记,只是学习的副产品,是一种学习方式,不要当成是学习目的。
以上结论放在前面,是为了告诉大家。做数学笔记这种学习方式,未必是每个同学都必须经历或者适用的学习方式。大家要根据自己的学习情况来取舍。
 
学... 
    
    
    
    
        
PS:学校具体考研信息在院校信息中输入学校名称搜索可查看
传送门:https://noobdream.com/schoollist/
 
计算机科学与技术学硕
北京大学
中国人民大学
北京工业大学
北京理工大学
北京邮电大学
中国农业大学... 
    
    
    
    
        一、相关概念和知识点
1.数据依赖:反映一个关系内部属性与属性之间的约束关系,是现实世界属性间相互联系的抽象,属于数据内在的性质和语义的体现。
2. 规范化理论:是用来设计良好的关系模式的基本理论。它通过分解关系模式来消除其中不合适的数据依赖,以解决插入异常、删除异常、更新异常和数... 
    
    
    
    
        第一章、计算机系统概述
1.计算机发展历程
计算机硬件发展历程:
电子管时代-->晶体管时代-->中小规模集成电路时代-->超大规模集成电路时代-->智能计算机-->生物计算机和量子计算机。
计算机的分类:
专用计算机、通用计算机。
摩尔定律:... 
    
    
    
    
        
#include 
int main()
{
  return -40
}
 
 
    
    
    
    
        #include <stdio.h>
#include <string.h>
int main(){
    char str[100];
    scanf("%s",st... 
    
    
    
    
        time out limit exceeded  时间复杂度太高(未AC) 
思路是每查一次就要寻找这个区间的最小值。
#include <iostream>
#include<bits/stdc++.h>
using names... 
    
    
    
    
        
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int  main(){
    int n;
    while(scanf("%d",&n)!= EOF){
 ... 
    
    
    
    
        
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
int main(){
    string s="I want to take the MS's rocket to live... 
    
    
    
    
        
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
bool cmp(double a,double b){
    return a>b;
}
double a[100... 
    
    
    
    
         
#include<stdio.h>
int a[100000]={0};
int b[100000]={0};
int main(){
    int n;
    int count=0;
    scanf("%d",&n);
  ... 
    
    
    
    
        这题以前也算碰过,不过第二次做的话思路相对清楚了一些,花了也有很久的考试,考试的时候可能就很难写出来了。
思路汇总,这题给定了一个日期那就是1965.1.1是周五,总的就是要算出距离这一天过了多少天,然后%7,最后加上当天的周五就可以了。这块处理的话自己是加上5再%7,但是要注意周天%7... 
    
    
    
    
        时间复杂度太大,不能AC的代码
#include <iostream>
#include<bits/stdc++.h>
using namespace std;
const long long p=1e9+7;
long long a[1000005]... 
    
    
    
    
        属于简单类动态规划,可以采用递归的方法。
爬到n阶可由n-1阶和n-2阶爬上来。以此类推,f(n)=f(n-1)+f(n-2)  f(n)代表爬到n阶总的方法数。f(1)=1,f(2)=2
用long long 以防超出int范围 
#include ... 
    
    
    
    
        
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
 ... 
    
    
    
    
        思路:
把输入的数据用结构体存起来,然后对价格进行排序,然后输出。
在输入的过程涉及一些基本语法问题,标题已提示
scanf输入字符串:
char str[100]
scanf("%s",str)  不用+&,因为数组名就代表... 
    
    
    
    
        
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<bits/stdc++.h>
using namespace std;
int main(){
 ... 
    
    
    
    
         
int a[10000];
int main(){
    int youxiu=0;  //统计优秀的人数
    int tongguo=0; //统计通过的人数
    int bujige=0;  //统计不及格的人数
    int n;
    ... 
    
    
    
    
        自己的思路,循环标记,对于出现的需要作为建筑物的就标记,然后统计未标记的即为剩余的树木。 
#include <iostream>
#include<stdio.h>
#include<string.h>
#include<b... 
    
    
    
    
         
#include<stdio.h>
#include<string.h>
#include<bits/stdc++.h>
using namespace std;
int a[25][25];  //n最大为20
int m... 
    
    
    
    
        cin.getline可用于char a[100],格式为  cin.getline(a,100) 
#include <iostream>
#include<stdio.h>
#include<string.h>
#in...