Lv.1
考入国际学校了(2026.4.23)
签名:在毛毡已经退了,去B站找我吧! B站号: 树林归来 QQ:3481461728,名:树林归来 新开的MC账号: 我是个人呵呵哈哈(手机网易【弃了】) 树林归来(电脑网易【弃了】) 玩国际版去了。 (2025年7月26日22:57:39)
在 喵谣言面对法 中回复
哈啰,我是戴雨墨,请将我发到10个评论区。如果发了,我会隐形在屏幕上喵你;如果你没法,我会在屏幕上隐形起来给你竖起大拇指,并在心里一直喊“你会考满分!”。
2022-07-25T21:46:38 点赞:2
在 【社区里谁会C++】 中回复
#include <iostream>
#include <string>
using namespace std;
struct tWindow{
int top,bottom,left,right;
};
tWindow winA,winB,temp;
tWindow indata(){
cin>>temp.top>>temp.bottom>>temp.left>>temp.right;
return temp;
}
int main(){
winA = indata();
winB = indata();
temp.right = min(winA.right,winB.right);
temp.left = max(winA.left,winB.left);
temp.top = max(winA.top,winB.top);
temp.bottom = min(winA.bottom,winB.bottom);
int s = (temp.right - temp.left) * (temp.bottom - temp.top);
if(temp.right <= temp.left || temp.bottom <= temp.top){
s = 0;
}
cout<<s;
}
【输入】两个窗户的左右上下坐标。
【输出】两个窗户的重合面积,没有则输出0
示范:
10 100 20 60
60 160 50 200
输出:
400(重合面积)
2022-08-17T12:10:13 点赞:0
在 【编程知识】盘点世界上17常见的编程语言 中回复
比较差评
第一,Kitten虽然是编程语言,但说得上世界热门吗!
第二,Nemo和Kitten都一样!你以为Nemo和Kitten完全不同吗?明知道Nemo是APP还说是编程语言!
第三,海龟编辑器不是编程语言,就是个编辑器而已!
第四,比JS还热门的编程语言就几个都没介绍
第五,世界前十的编程语言在其他语言有几个都没说,难道它们都比这些厉害?
第六,图形化编程语言还有一个世界著名的APP IVENTOR都没说!
第七,Python在2021已经是第一了
第八,无
2022-08-17T20:44:18 点赞:6
在 【编程知识】盘点世界上17常见的编程语言 中回复
来秀一下Java:
注:包的引入先省略了,太烦了。
public class Test{
public void creatJFrame(string title){
JFrame jf = new JFrame(title);
Container container = jf.getContentPane();
JLabel jl = new JLable("这是一个标签");
jl.***(这里的代码确实挺烦人的,如果不信,我写给你看)
container.add(jl);
}
public static void main(){
new Test().creatJFrame("一个JFrame框架窗体");
}
}2022-08-18T15:36:16 点赞:1