上一页 1 2 3 4 5 6 7 ··· 13 下一页

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 阅读(52) 评论(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 阅读(91) 评论(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 阅读(52) 评论(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 阅读(79) 评论(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 阅读(36) 评论(0) 推荐(0)

2023年2月17日

摘要: apt-get install tcl-dev apt install lib 阅读全文
posted @ 2023-02-17 22:38 shenhshihao 阅读(28) 评论(0) 推荐(0)
摘要: 即使类没有带参初始化函数依然可以给对象数组赋值,而且有多个成员时是每个对象每个成员逐个赋值的。 也可以这样两层赋值。 要想实现跳跃赋值可以这样。… 仅限于public成员 不是数组,单个对象也是可以的,但是必须带花括号 去掉等号也是可以的 前提是不能有任何构造函数,即使手动恢复了默认构造函数也不行; 阅读全文
posted @ 2023-02-17 19:58 shenhshihao 阅读(18) 评论(0) 推荐(0)

2023年2月16日

摘要: 恢复内容开始 群联、慧荣、闪迪、铠侠、联芸 恢复内容结束 阅读全文
posted @ 2023-02-16 21:26 shenhshihao 阅读(103) 评论(0) 推荐(0)

2023年2月11日

摘要: // ConsoleApplication26.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。////#define _CRT_SECURE_NO_WARNINGS #define _CRT_NONSTDC_NO_DEPRECATE #include <iostream># 阅读全文
posted @ 2023-02-11 15:34 shenhshihao 阅读(701) 评论(0) 推荐(0)

2023年1月17日

摘要: 用不到的话,看着很不爽,隐藏起来比较美观,解决办法 ui->mainToolBar->setVisible (false); 隐藏工具栏 阅读全文
posted @ 2023-01-17 14:19 shenhshihao 阅读(46) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 13 下一页

导航