网上很多设置~/.bashrc或者/etc/profile的帖子,但是当我们使用ENTRYPOINT会失效,使用CMD格式的话有导致丢失启动参数。 这里"Using an entrypoint script"来实现该功能。 实现alias ll='ls -al' 编写ll命令文件: ll #!/bi ...
分类:
其他好文 时间:
2021-06-02 11:58:17
阅读次数:
0
此篇主要内容:1、代码逻辑(流程图呈现) 2、具体实现语句 3、脚本(脚本为完善后的) 一、分页逻辑图 2、语句分析与记录 3、脚本 using System; using System.Collections; using System.Collections.Generic; using Uni ...
分类:
其他好文 时间:
2021-06-02 10:37:57
阅读次数:
0
异常 try { 被检查的语句 } catch(异常信息类型[变量名]) { 进行异常处理的语句 } #include <math.h> #include <iostream> using namespace std; double triangle(double a, double b, doub ...
分类:
其他好文 时间:
2021-05-25 18:14:25
阅读次数:
0
C# 获取GUID using System; namespace GUID测试 { class Program { static void Main(string[] args) { //产生一个新的GUID并输出 Console.WriteLine(System.Guid.NewGuid()); ...
#include<bits/stdc++.h> using namespace std; typedef long long ll; namespace MCMF { const int MAXN = 10000, MAXM = 10000, INF = 0x7fffffff; int head[M ...
分类:
其他好文 时间:
2021-05-25 17:42:56
阅读次数:
0
O(logn)最长上升子序列并输出 +++ pre数组记录转移。 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 1e6 ...
分类:
其他好文 时间:
2021-05-25 17:36:48
阅读次数:
0
#include<cstdio> #include<iostream> #include<cstring> #include<cmath> #include<algorithm> using namespace std; const int N=505; int s,p,tot,cnt; struc ...
分类:
其他好文 时间:
2021-05-24 16:03:43
阅读次数:
0
using System; using System.Windows.Forms; using System.Drawing; namespace PickBoxTest { /// <summary> /// 这个类实现了窗体控件的 大小和移动函数 /// 用户运行时编辑 /// </summar ...
分类:
其他好文 时间:
2021-05-24 15:55:35
阅读次数:
0
大乱炖之字符串 1.字符串: 字符串最后一位 ‘\0’结束 1.cin>> 接受一个字符串,遇“空格”、“Tab”、“回车”都结束 #include <iostream> using namespace std; int main() { char c[10]; cin>>c; cout<<c; r ...
分类:
其他好文 时间:
2021-05-24 15:51:08
阅读次数:
0
在项目中常常常使用到DataTable,假设DataTable使用得当,不仅能使程序简洁有用,并且可以提高性能,达到事半功倍的效果,现对DataTable的使用技巧进行一下总结。 1、添加引用 1 using System.Data; 2、创建表 1 2 3 4 //创建一个空表 DataTable ...