#include <math.h> #include <stdio.h> int main() { float a, b, c, x1, x2; float delta, real, imag; printf("Enter a, b, c: "); while(scanf("%f%f%f", &a, ...
分类:
其他好文 时间:
2020-11-24 12:14:01
阅读次数:
6
一边写草稿一边做题吧。要看题解的往下翻,或者是旁边的导航跳一下。 草稿 因为可以开展贸易活动的条件是存在一种通用语 \(L\) 满足 \(u_i\) 到 \(v_i\) 的最短路径上都会 \(L\) 。所以我们考虑能够带来贡献的,只有同一次传教。 但是很有可能在进行当前这一次传教过程中,中间的两座城 ...
分类:
编程语言 时间:
2020-11-23 12:39:51
阅读次数:
19
昨天做了一个udhcpd与udhcpc的守护,目前只会用shell模仿编写,还有什么方法可以做守护呢? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 #! /bin/sh #进程名字可 ...
分类:
系统相关 时间:
2020-11-23 12:39:19
阅读次数:
22
双击该vbs脚本,得到点前目录 msgbox "当前文件路径是 " & wscript.ScriptFullName set ws=CreateObject("WScript.Shell") MsgBox "当前文件夹是 " & ws.CurrentDirectory ...
分类:
其他好文 时间:
2020-11-23 12:34:46
阅读次数:
6
交换值#include<stdio.h>intmain(){inta=1;intb=2;intc=0;printf("交换前a=%db=%d\n",a,b);c=a;a=b;b=c;printf("交换后a=%db=%d\n",a,b);return0;}
分类:
其他好文 时间:
2020-11-23 12:28:40
阅读次数:
4
什么是内存对齐还是用一个例子带出这个问题,看下面的小程序,理论上,32位系统下,int占4byte,char占一个byte,那么将它们放到一个结构体中应该占4+1=5byte;但是实际上,通过运行程序得到的结果是8byte,这就是内存对齐所导致的。//32位系统#include<stdio.h>struct{intx;chary;}s;intmain(){printf("%d\n",s
分类:
编程语言 时间:
2020-11-23 12:26:53
阅读次数:
7
实验任务4#include<stdio.h> #include<math.h> int main() { int n,a,b,i,s; printf("Enter a number:"); scanf("%d",&n); while(n){ i=0; s=0; while(n!=0){ a=n%10 ...
分类:
其他好文 时间:
2020-11-23 12:22:09
阅读次数:
3
WindowsRegistryEditorVersion5.00[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]@="在此处打开命令窗口""Icon"="cmd.exe"[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]@="cmd.exe/s/kpushd\"%V\""[HKEY_CLASS
分类:
其他好文 时间:
2020-11-23 12:05:57
阅读次数:
4
/**********************************搭建*******************************************/ linux版本:CentOS Linux release 7.8.2003 (Core) mysql版本:Ver 8.0.18 for ...
分类:
系统相关 时间:
2020-11-23 12:01:07
阅读次数:
5
#include <math.h> #include <stdio.h> int main() { float a,b,c,x1,x2; float delta,real,imag; printf("Enter a,b,c"); while(scanf("%f%f%f",&a,&b,&c) !=EO ...
分类:
其他好文 时间:
2020-11-23 11:57:34
阅读次数:
4