- 博客(8)
- 资源 (1)
- 收藏
- 关注
转载 (转载博客园~雨落忧伤~)iis 设置了主机名 就不能访问
主机名就是域名,设置这个主要用来防止别人通过IP访问,对于服务器来说多少会更安全点,不过如果没有域名,则设置后无法访问IP访问,对于服务器来说多少会更安全点,不过如果没有域名,则设置后无法访问 追答如果想要测试域名,则可以修改hosts文件实现,这样就可以设置主机名,不过每台要访问这个服务器的电脑都需要修改主机名就是网站的域名,通俗说就是网站地址(如:www.baidu....
2018-11-06 18:01:16
349
转载 Qt入门之常用qt控件认知之布局控件(QFormLayout,QBoxLayout,QGridLayout,QStackLayout)转帖比较好懂而且全面
上一个主题中我们讨论学习了Qt布局的概念及Qt基类QLayout的认识。为了更好的进行布局控制,Qt实现了常见的布局有QFormLayout,QBoxLayout,QGridLayout,QStackLayout,每个布局都有着各自的特点,在此逐个理解学习 1、QFormLayout:表单布局,顾名思义就是实现表单模式的布局。表单就是提示用户进行交互的一种模式,其主要有两个列组成,第一个列用于...
2018-06-23 17:52:01
3034
原创 typedef使用示例
#include<stdio.h>#define NAME_LEN 64typedef struct student{ char name[NAME_LEN]; int height; float weight; long schols;}Student;void hiroko(Student *std){ if (std ->height <180)...
2018-03-15 22:00:02
300
原创 返回结构体的函数示例
#include<stdio.h>struct xyz{ int x; long y; double z;};struct xyz xyz_of(int x, long y, double z){ struct xyz temp; temp.x = x; temp.y = y; temp.z = z; return temp;}int main(void...
2018-03-15 21:59:17
14092
原创 结构体和指针的用法例子
#include<stdio.h>#define NAME_LEN 64struct student{ char name[NAME_LEN]; int height; float weight; long schols;};void hiroko(struct student *std){ if ((*std).height < 180) (*st...
2018-03-15 18:04:18
487
原创 不加下标运算符查找字符串中的字符出现数
#include<stdio.h>int str_chnum(const char *str, char c){ int n = 0; while(*str){ if (c == *str++) /*这一句代码是关键*/ n++; } return n;}int main(void){ char str[100]; char c; printf(...
2018-03-15 11:13:39
229
原创 错误的方法指针复制字符串
#include<stdio.h>char* str_copy(char *d, const char *s){ char *t = d; while (*d++ = *s++) /*另一种解法*/ ; /*while(d[i] = s[i])*/ return t; /* i++; */}int main(void){ cha...
2018-03-15 09:54:42
167
原创 指针复制字符串
#include<stdio.h>char* str_copy(char *d, const char *s){ char *t = d; while (*d++ = *s++) /*另一种解法*/ ; /*while(d[i] = s[i])*/ return t; /* i++; */}int main(void){ char s...
2018-03-15 09:53:11
1393
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人