笔记
鹿向深林
清醒是细小而有耐性的英雄主义。
展开
-
C#定义基类、派生类,通过成员函数进行字符串的合并及输出
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace pkq{ public class CStrOne { protected string word = string.Empty; public CStrOne(string word)//父类构造函数,.原创 2021-06-13 23:17:18 · 635 阅读 · 1 评论 -
C语言 送祝福
#include<cstdio>#include<cstdlib>#include<windows.h>void color(short x){ SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),x);}int main(){ int a,b; a=0; printf("/n"); while(a<=80) { system("cls"); b=1; while(b.原创 2021-06-06 12:47:47 · 2572 阅读 · 5 评论 -
C#找出数组a中最大值下标,输出下标及最大值.
C#找出数组a中最大值下标,输出下标及最大值.using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Arr{class Program{static void Main(string[] args){int max = 0;string Array = Console.ReadLine();//把原创 2021-06-06 12:16:52 · 4591 阅读 · 0 评论