avatar
Articles
159
Tags
23
Categories
4
Home
Tags
Ferry's blog
Search
Home
Tags

Ferry's blog

Menu
Updated2022-05-22|swing
JMenuBar(菜单条),这一栏可以装菜单。 JMenu(菜单),只有菜单才能有分支 JMenuItem(菜单项目),最终选项 菜单和菜单条能用add中嵌套菜单,和菜单项目。 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253import javax.swing.JFrame;import java.awt.FlowLayout;import javax.swing.*;public class Menu extends JFrame { //声明组件 JMenuBar m; JMenu menu, subMenu, save_as,option; JMenuItem item1, item2, save, desktop, document; public Menu(){ init(); this.setLayout(new...
Calculator
Updated2022-05-22|swing
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.File;import java.io.FileWriter;import java.io.IOException;import javax.swing.*;public class Calculator extends JFrame implements...
java syntax
Updated2022-05-22|java
Basic conception First, every line of the code must be in the class. Second, a java file can have more than one class. However, there can only be one public class per java file and the name of public class must be the same name as its file name. VariablesA class can contain any of the following variable types. Local variables − Variables defined inside methods, constructors or blocks are called local variables. The variable will be declared and initialized within the method and the...
语法
Updated2022-05-22|English
读句子时,重点抓住主干 名词性从句包括: 宾语从句 主语从句 表语从句 同位语从句 引导词的划分,根据名词性从句的类型: that(从句是陈述句) I promise that I will help you. whether/if (从句是一般疑问句) They don’t know whether they will finish the work on time. when, where, why, how, who, whom, what, which, whose (从句是特殊疑问句(注意:从句是还是陈述句语序)) You never told me what you had done to my computer. what = the thing that(充当从句的宾语) The job is what I want. 同位语从句的引导词一般是that,因为它是解释说明 定语从句引导词的划分, 根据先行词(要修饰的词)的种类: 人,用who, whom, whose, that 物,用that, which,...
翻译技巧
Updated2022-05-22|English
修饰后置 修饰不用后置的情况 过短 元素单一 最高级 修饰后置的情况 的,地,得 时间 地点 方式 原因 目的 如何后置使用介词使用哪个介词不太重要(of, in, on, over, … ),关键要用一个介词来让修饰后置 定语从句当存在多个修饰时,考虑使用定语从句 插入语(同位语)使用情况: 名词解释 The WTO, founded(非谓语动词) on January 1st, 1995, aim to ensure a stable environment of trading and economy in the world. The Yangtze River, the longest river in Asia, also the third longest river in the world, flowing through many different kinds of biological systems, is a habitat of many endangered species, watering one fifth of...
特殊句型
Updated2022-05-22|English
强调句It is/was (not) ... that ... 首先,写出一个普通句子 I want to go to America this summer. 提取强调的部分(不能用于动词或形容词,这种情况是主语从句) 放到**is/was(根据原来句子时态变化) **和 that的中间(假如我要强调America) It is America that I want to go to this summer. that 可以根据要强调的东西换成who, whom, which 倒转句(主谓倒装)倒装句因为要强调adj, adv, 介词短语,而存在 全部倒装把普通的句子的主语和全部谓语动词移到主语前 A temple sits on the north bank of the River. On the north bank of the River sits a temple. (倒装) 部分倒装把普通的句子的主语和部分谓语动词移到主语前 三种部分倒装用法: 否定副词或词组(Not only … but…, No sooner, Never,...
长句写法
Updated2022-05-22|English
五大句型 主谓 主谓宾 主系表 主谓双宾 主谓宾宾补(Money makes people selfish. 主要使用2,3 并列句 or, not only…, but also… (and) whereas, while, yet (but) 从句定语从句本从句需要引导词充当成分。 人+ who(人充当主语), whom(人充当宾语),whose 物+ that, which 时间+ when 地点+where As …, …(As 指代, 后面整句话 As is symbolically illustrated in the cartoon, a person … 状语从句 when(当) Once …, … (一旦) As…, …(由于) in that = because, since, as, for(因为(强度由高到低) while, through(尽管) 宾语从句 动词/介词 + that, what 主语从句It is … that… 同位语从句一般用于抽象名词后, I cling to the idea that...
OOP
Updated2023-02-23|cpp
C++ OOPOOP stands for Object-Oriented Programming. Procedural programming is about writing procedures or functions that perform operations on the data, while object-oriented programming is about creating objects that contain both data and functions. OOP is faster and easier to execute OOP provides a clear structure for the programs OOP helps to keep the C++ code DRY “Don’t Repeat Yourself“, and makes the code easier to maintain, modify and debug OOP makes it possible to create full...
sublime的一些配置
Updated2022-05-22|Q&A
在cmd窗口中执行 tools->Build System->New Build System 12345678910111213{ "cmd": ["g++", "${file}", "-fexec-charset=gbk", "-o", "${file_path}/${file_base_name}"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c, source.c++", "variants": [ ...
万年历
Updated2022-05-22|java
输入任何一年,2020则输出该年的所有月历表 输入任何年月,2020 11,则输出该月的月历表 输入任何年月日,2020 11 14,则输出该天是星期几 已知年月日,求星期几 int w=(day+2*month+3*(month+1)/5+year+year/4-year/100+year/400+1)%7; 判断是闰年 (year%400 == 0 ) || (year%4==0 && year%100 != 0) 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110import java.util.Scanner;public class Demo...
1…678…16
avatar
FerryChan
Articles
159
Tags
23
Categories
4
Follow Me
Recent Posts
js tutorial2025-07-18
JS逆向2025-07-08
正则表达式2025-07-08
python模拟ajax请求2025-07-02
A Django Project2025-06-16
Tags
JavaScript DS git AI sql c python swing scrapy project csapp vue blog English algorithm fatal Q&A java django cpp linux scrape css
Archives
  • July 2025 4
  • June 2025 1
  • February 2025 9
  • March 2023 3
  • February 2023 3
  • May 2022 1
  • February 2022 4
  • January 2022 10
Website Info
Article Count :
159
Unique Visitors :
Page Views :
Last Update :
Framework Hexo|Theme Butterfly
Search
Loading Database