- 博客(12)
- 收藏
- 关注
原创 .net实验九
题目一:定义一个Add方法,用来计算两个数的和,该方法中有两个形参,但在方法体中对其中的一个形参x执行加y操作,并返回x;在Main()方法中调用该方法,为该方法传入定义好的实参;最后分别显示调用Add方法计算之后的x值和实参y的值。using System;namespace zuoye91{ class Program { static int Add(int x,int y) { x += y;
2021-12-12 15:12:38
895
原创 android studio倒计时
<?xml version="1.0" encoding="UTF-8"?>-<LinearLayout android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android">-<LinearLayout andr.
2021-11-26 10:27:31
792
原创 android studio天气预报
<?xml version="1.0" encoding="UTF-8"?>-<TableLayout android:shrinkColumns="*" android:stretchColumns="*" android:layout_height="match_parent" android:layout_width="match_parent" xmlns:android="http://schemas.android.com/apk/res/android">-.
2021-11-26 10:25:30
1572
原创 .net作业8
题目一:创建C#控制台应用程序,建立一个点类CzPoint,为其定义两个double类型的私有字段成员x和y,分别表示点的横坐标和纵坐标;对CzPoint类进行相等和不等操作符重载。两个坐标点相等,则指它们的横坐标和纵坐标都相等。using System;namespace zuoye81{ class Program { static void Main(string[] args) { CzPoint point1
2021-11-26 10:23:25
939
原创 android studio 考试系统
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" ...
2021-11-25 09:25:49
1274
原创 .net作业7
题目一:设计控制台应用程序,声明一个人类Person和一个动物类Animal,它们都包含公有字段legs(腿的只数)和保护的字段weight(重量),定义它们的对象并输出相关数据。using System;namespace zuoye71{ class Person { // int x,y; public int legs = 2; protected int weight = 40; public void
2021-11-23 16:42:55
477
原创 .net作业6
题目一:从键盘读入一组整数(以0结束),分别输出其中奇数和偶数的和。usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;namespacezuoye61{classProgram{staticvoidMain(string[]args){...
2021-11-23 16:39:49
392
原创 .net作业5
题目一:设计一个选课程序。窗体上放置2个列表框,左侧的“待选课程 ”列表框中提供了所有选课科目,在某个待选课程上双击,可将课程送入右侧的“已选课程”列表框,实现选课。在某个已选课程上双击,可将课程送回“待选课程”列表框,取消选课。当选课总数超过5时,不允许再进行选择。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;u
2021-11-23 16:37:02
860
原创 .net作业4
题目一:试编写Windows窗体应用程序,设计一个窗体,在窗体上设计两个标签控件(一个用于显示姓名,一个用于显示电话),两个文本框控件,一个按钮控件,将窗体的标题改为“简单窗体示例”。程序的运行效果如下图所示using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using Syste.
2021-11-23 16:33:42
1231
原创 .net作业3
题目一: 试编程,求100到200之间的所有素数,要求每行打印5个素数。using System;namespace zuoye31{ class Program { static void Main(string[] args) { int i = 101;//素数的开始 int count = 0;//素数的个数 for (i = 101; i <= 200; i
2021-11-23 16:28:23
335
原创 .net作业2
题目一:编程求s=1+2+3+4+......+99+100的和。using System;namespace zuoye21{ class Program { static void Main(string[] args) { int n = 0; int s = 0; while(n<100) { n++;
2021-11-22 20:41:12
293
原创 .net作业1
题目一:在屏幕上输出一个字符串“这是我的第一个C#程序”。要求采用SDK及IDE两种方式实现编程、运行。using System;namespace zuoye{ class Program { static void Main(string[] args) { Console.WriteLine("这是我的第一个C#程序"); Console.ReadKey(); } }}
2021-11-22 20:34:48
880
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人