随笔分类 - 暑假每周总结
摘要:快开学了,今天开始按照老师的要求整理pta上的编程题,可多了。 #include<iostream> using namespace std; int main(){ cout<<"Talk is cheap. Show me the code."<<endl; return 0; } #inclu
阅读全文
摘要:#include<iostream> using namespace std; void boy(int high,int weight); void girl(int high,int weight); int main(){ int N; int sex;//性别 int high;//身高 i
阅读全文
摘要:#include<stdio.h> #include<math.h> struct prople{ int num; int name[10]; }p[10000],pmin;//pmin表示最小值 int main (void) { int i,n,sum=0; double half;//hal
阅读全文
摘要:#include<stdio.h> int main(){ printf("PTA shi3 wo3 jing1 shen2 huan4 fa1 !"); return 0; } #include<iostream> #include<string> using namespace std; int
阅读全文
摘要:#include <stdio.h> int main() { int N,i; float height; char a; scanf("%d",&N);//输入时不要加入\n for(i=0;i<N;i++) { scanf(" %c%f",&a,&height);//在前面加一个空格 过滤空白
阅读全文
摘要:#include <iostream> #include <stdio.h> #include <string> using namespace std; int main() { int n; cin >> n; int a[1001] = {0}; for(int i = 0; i < n; i
阅读全文
摘要:今天上午去考科目二,上一个考的人把车停的位置不对,我一上去一松手刹就开始溜车,停都停不住最后撞墙才停,也是非常的坎坷虽然我9点就考完了,但是他是一整个驾校几个人一起去的,所以我还要等其他人考完一起走,我万万没想到这一等直接到了下午2点,好在我考过了。 #include <iostream> #inc
阅读全文
摘要:#include<stdio.h> int main() { int i; char s[20]="I Love GPLT"; #include<iostream> #include<set> #include<vector> using namespace std; int ans,ans1; i
阅读全文
摘要:看完大道至简了,完成了读后感 大道至简读后感 根据序言我知道了这本书不同编程类的大多数书籍,在这本书中被没有很多的例子和实际上的讲解,作者更加注重与教会你思考的方式和编程这件事的本质。 从第一章开始我就感觉到了这本书的与众不同,第一章名为“编程的精义”,在我脑海中第一时间浮现出的就是一大堆的生僻晦涩
阅读全文
摘要:今天上午建好了那个程序设计的小组群,感觉还是不太舒服睡了一上午 下午睡到三点起来玩了一会就去练车去了 晚上看了一会大道至简,看了一多半了马上就能写读后感了还打了一会代码 #include <iostream> #include <cctype> #include <cstring> using na
阅读全文
摘要:今天生病了,一整天都很难受,没有学习;明天打算拉实践课的同学建群玩敞开会任务。
阅读全文
摘要:1 #include <iostream> 2 #include <string> 3 4 using namespace std; 5 6 int main() { 7 string str; 8 int G, P, L, T; 9 G = P = L = T = 0; 10 11 cin >>
阅读全文
摘要:#include<iostream> using namespace std; int main() { int d; int N;//朋友圈的个数 int ID[100][1000]; int k[100];//朋友圈中的人数 int M;//待查询人数 int Mid[10000];//待查询人
阅读全文
摘要:#include<stdio.h> int main() { int i ,na,nb,n,ahan[100] ,ahua[100] ,bhan[101] ,bhua[100] , counta= 0 , countb = 0; scanf("%d%d",&na,&nb); scanf("%d",&
阅读全文
摘要:#include<iostream> using namespace std; int main() { int T[100];//用于确认所有身分是否都正确 int N;//输入的身份证的个数 cin >> N; int a = 0; char A[100][18];//储存输入的身份证号 //首
阅读全文
摘要:#include<iostream> #include<math.h> using namespace std; int main(){ int a=0; cin>>a; cout<<"2^"<<a<<" = "<<pow(2.0,a)<<endl; return 0; } #include<ios
阅读全文
摘要:#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b) { if(b>c) cout<<c<<"->"<<b<<"->"<<a<<endl; else{ if(c>a) cout<<b<
阅读全文
摘要:今天上午我大爷爷家的小孙子过满月,一大早就开车出去吃饭去了,下午去驾校练车,学了侧方停车和S型路和过直角弯,晚上的时候我爸一个朋友的儿子高考结束要我们两个同龄人认识一下,之后好帮帮忙啥的又出去吃饭了。今天没有打代码,就看了一会网课学习了方法的重写和super的讲解。
阅读全文
摘要:今天网课看了类的继承部分,JAVA中类的继承需要用到关键字extends public class Animal{ String name; int age; public void eat(){ System.out.println(name + "正在吃饭"); } public void sl
阅读全文
摘要:#include<iostream> #include<math.h> using namespace std; int num1(int a) { int t = a; int num = 1;//纪录输入数据的位数 for (int i = 0; i < 100; i++) { if (t /
阅读全文
浙公网安备 33010602011771号