摘要: 本人是一个电脑技术爱好者,希望分享一些学习经验,我一直认为兴趣很重要,我以前一直化学学不会,后来我看一些电影电视,看到一些化学高手能制药,能自制阿司匹林,我也想成为那样的人,我不再把学习化学看成负担,我把它看成一种能力,一开始我学编程,一直没有头绪,老师教我们c语言,只告诉我们一些最基础的,从来不说 阅读全文
posted @ 2021-03-09 12:32 shenhshihao 阅读(36) 评论(0) 推荐(0) 编辑

2024年7月19日

摘要: double中用 %lf 进行输入 scanf("%lf",&x); .在整型数组中用 %d 进行输入 scanf("%d",&a); 注意:数组名必须带取地址符& 注意:此时&a 传输的是首地址 4.在字符串数组中用 %s 进行输入 scnaf("%s",a); 注意:数组名不能带取地址符& sc 阅读全文
posted @ 2024-07-19 23:11 shenhshihao 阅读(2) 评论(0) 推荐(0) 编辑

2023年5月6日

摘要: 阅读全文
posted @ 2023-05-06 20:47 shenhshihao 阅读(41) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include "unistd.h"#include "stdio.h"#include "stdlib.h"#include "string.h"#include "arpa/inet.h"#include "pcap.h"#include "libnet. 阅读全文
posted @ 2023-05-06 20:46 shenhshihao 阅读(9) 评论(0) 推荐(0) 编辑

2023年5月5日

摘要: 要实现以上的效果 分别绘制和擦除多余边框即可 阅读全文
posted @ 2023-05-05 14:04 shenhshihao 阅读(86) 评论(0) 推荐(0) 编辑

2023年4月28日

摘要: #include <iostream>#include "unistd.h"#include "stdio.h"#include "stdlib.h"#include "string.h"#include "arpa/inet.h"#include "pcap.h"#include "libnet. 阅读全文
posted @ 2023-04-28 23:27 shenhshihao 阅读(21) 评论(0) 推荐(0) 编辑

2023年4月5日

摘要: 打印二进制数 void printBinary(unsigned int n) { int i; for (i = sizeof(n)*8-1; i >= 0; i--) { // 遍历整数的每一位 if ((n >> i) & 1) { // 如果该位为 1,则输出字符 '1' printf("1 阅读全文
posted @ 2023-04-05 10:53 shenhshihao 阅读(16) 评论(0) 推荐(0) 编辑

2023年3月13日

摘要: 1.Why do we need name spaces? We need namespaces to provide a unique identifier for a set of names in the context of a particular application or domai 阅读全文
posted @ 2023-03-13 20:36 shenhshihao 阅读(48) 评论(0) 推荐(0) 编辑

2023年2月20日

摘要: 又比如说char* str = "Hello world";这个也是错的,为了兼容,VC新版本可能会警告,或者报错。因为"Hello world"这个字符串是不能改变的,你不能用str[0]='h'来把它改成"hello world"。所以正确地写,应该是const char s[]="Hello 阅读全文
posted @ 2023-02-20 23:46 shenhshihao 阅读(27) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <fstream>#include <string> //头文件引入#include <stdio.h>#include <conio.h>using namespace std;class Objects //大类{public: //公共权 阅读全文
posted @ 2023-02-20 19:20 shenhshihao 阅读(24) 评论(0) 推荐(0) 编辑

2023年2月19日

摘要: kali始终ping不同虚拟机windows,发现是win防火墙原因,但是win和win之间可以ping。 https://blog.csdn.net/qq_51478862/article/details/116179264 cmake添加pcap: 使用target_link_libraries 阅读全文
posted @ 2023-02-19 15:50 shenhshihao 阅读(11) 评论(0) 推荐(0) 编辑

导航