启用-Wall
帮忙解决太多bug.
1 |
alias g++='g++ -Wall' |
写入配置文件
1 |
echo "alias g++='g++ -Wall'" >> ~/.bashrc && source ~/.bashrc |
以下代码皆为错误代码
括号,万恶的括号!
accept 返回值是0
1 2 |
if ((fd = accept(Sockfd, Addr, (socklen_t*) AddrLen) < 0)) { } |
函数没有返回值!
string产生的Segmentation fault
1 2 3 |
string testString(string &a){ a = "I'm string"; } |
循环
栈溢出
1 2 3 4 5 6 |
char *lists[maxToken]; lists[0] = strtok(buffer, white); int i = 1; while ((lists[i] = strtok(NULL, white)) != NULL && i < maxToken) { i++; } |
最新评论
昨天发现的,然后在application.yml中配置“hibernate.dialect.storage_engine=innodb”。但是自动生成的表还是不会设置为innoDB,看了底层源码。这个配置也是没有加载到的 原来是要在hibernate.properties中加这个配置。感谢
将virtualbox虚拟网卡驱动卸载了,然后就会好了,但是这个时候virtualbox虚拟网络就无法使用了,重新安装一下virtualbox就好了
我也发现了这个注释:注释“Use "hibernate.dialect.storage_engine=innodb" environment variable or JVM system property instead.” ----- 坑啊。。。。。。。
卸载蓝牙驱动·在设备里面找,一般在网卡那里 卸载重启就行了
高