软件设计师-第三章数据运算(排序)

  • Post author:
  • Post category:其他

一、冒泡排序 O ( n 2 ) O(n^2) O ( n 2 ) #include<iostream> using namespace std; const int N = 100010; int n; int nums[N]; int main(){ cin >> n; for(int i = 0; i < n; i++) cin >> nums[i]…

继续阅读 软件设计师-第三章数据运算(排序)

微信小程序设置预览页面的三种方式

  • Post author:
  • Post category:小程序

在开发微信小程序的过程中,我们需要实时预览代码呈现的效果。在默认的情况下,每次保存编译之后,展现的都是 /pages/index/index 页面,而不是我们期望预览的页面,需要手动进行点击跳转,影响开发效率。那么有没有方法可以将我们当前开发的页面设置为自动预览页呢?有多少种方法? 微信开发者工具设置预览页面的三种方式 (不推荐) 在 app.json 中设置 pages 属性数组的顺序,将需要预…

继续阅读 微信小程序设置预览页面的三种方式

Android中的WebView的form表单提交(post)

  • Post author:
  • Post category:其他

1.布局 <WebView android:id="@+id/webview" android:layout_width="match_parent" android:layout_height="match_parent"> </WebView> 2.代码 private void initWebView() { WebView webview = findViewByI…

继续阅读 Android中的WebView的form表单提交(post)

蠢哭了,debug版本可用release版本出错

  • Post author:
  • Post category:其他

记录一下本人遇到的问题,可能不适用于各位。 win10 vs2015  MFC编写的一个动态库dll工程,debug版本release版本编译都通过。但是运行时debug版本可用 release版本出错。 具体现象为中文乱码,且点击其他操作后就退出了。 问题原因 debug版生成的dll库目录和release版本生成的路径不同导致release版exe程序调用的是我之前修改的旧版本的dll文件。 …

继续阅读 蠢哭了,debug版本可用release版本出错

*p++是什么意思?

  • Post author:
  • Post category:其他

利用指针引用数组元素,比较方便灵活,有不少技巧。在专业人员中常喜欢用一些技巧,以使程序简洁。在看别人写的程序时可能会遇到一些令人混淆的情况,要仔细的分析。 请分析下面几种情况(设p开始时指向数组a的首元素(即p=a)。 ①    分析: p++; * pi; p++使p指向下一元素a[1]。然后若再执行* p,则得到下一个元素 a[1]的值 ②   *p++; 由于++和*同优先级,结合方向为自右…

继续阅读 *p++是什么意思?

Prometheus简单安装及问题记录

  • Post author:
  • Post category:其他

一、Prometheus安装 1、服务器准备: (1)关闭防火墙 # systemctl stop firewalld # systemctl disable firewalld # iptables -F (2)时间同步 yum install -y  ntpdate && ntpdate time.windows.com 2、安装Prometheus(官网提供的是二进制版,解压…

继续阅读 Prometheus简单安装及问题记录

C++ 编译错误 will be initialized after [-Werror=reorder]

  • Post author:
  • Post category:其他

error: 根据提示找到VINSLoop::Vocabulary::Vocabulary() 2.进入Vocabulary()构造函数 其在构造是按照nNodes(0), nodes(nullptr), nWords(0), words(nullptr)顺序赋值的 3.原声明是按照nNodes, nWords, nodes, words;顺序,如下图1,将声明顺序换位2步骤中的初始化顺序,如下图…

继续阅读 C++ 编译错误 will be initialized after [-Werror=reorder]

apache伪静态怎么配置?

  • Post author:
  • Post category:其他

Apache的伪静态配置 1、网站根目录下需要有 .htaccess 文件,没有则自己创建一个,内容如下: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 如果你的apache是fas…

继续阅读 apache伪静态怎么配置?

C语言实现输出1000以内所有的完数

  • Post author:
  • Post category:其他

#include"stdio.h" main() { inta,b,c; printf("一千以内的完数有:\n"); for(a=1;a<1000;a++) { b=0; for(c=1;c<a;c++) if(a%c==0) b+=c; if(b==a) printf("%d ",a); } } 版权声明:本文为kingoflongevity原创文章,遵循 CC 4.0 BY-SA…

继续阅读 C语言实现输出1000以内所有的完数

【解决方法】SpringBoot删除表单报错:Request method ‘POST’ not supported

  • Post author:
  • Post category:其他

目录 现象 原因 解决方法 现象 按照 尚硅谷的Spring教程 写表单删除 报错如下: 2020-04-21 08:32:59.502 WARN 8972 --- [nio-8080-exec-6] .w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpRequestMethodNotSu…

继续阅读 【解决方法】SpringBoot删除表单报错:Request method ‘POST’ not supported