摘要:
#数据结构 ##1.字符串###首字母大写方法 name="adb test" print(name.title()) ###全部大写 print(name.upper())###全部小写 print(name.lower())###字符串合并 first="adb" sencond="test"
阅读全文
posted @ 2019-10-28 10:42
步天有术
阅读(154)
推荐(0)
摘要:
引 :https://www.jb51.net/article/37565.htm 问题:在下面的 template declarations(模板声明)中 class 和 typename 有什么不同? 代码如下: template<class T> class Widget; // uses "
阅读全文
posted @ 2019-03-25 14:59
步天有术
阅读(833)
推荐(0)
摘要:
http://www.jb51.net/article/44271.htm // VerticalPointFromCircletoLine.cpp : Defines the entry point for the console application.// #include "stdafx.h
阅读全文
posted @ 2016-06-16 01:16
步天有术
阅读(415)
推荐(0)
摘要:
// 内存对齐.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include <iostream>using namespace std; #pragma pack(8) //指定对齐
阅读全文
posted @ 2016-03-30 15:22
步天有术
阅读(256)
推荐(0)
摘要:
互斥量和信号量的区别 1. 互斥量用于线程的互斥,信号量用于线程的同步。 这是互斥量和信号量的根本区别,也就是互斥和同步之间的区别。 互斥:是指某一资源同时只允许一个访问者对其进行访问,具有唯一性和排它性。但互斥无法限制访问者对资源的访问顺序,即访问是无序的。 同步:是指在互斥的基础上(大多数情况)
阅读全文
posted @ 2016-03-30 09:55
步天有术
阅读(1015)
推荐(0)
摘要:
[转载]关闭虚拟机(VMware)主板报警声-出错bell嘀嘀声音原文地址:关闭虚拟机(VMware)主板报警声-出错bell嘀嘀声音作者:gust90安装了虚拟机VMware后,不管是windows xp、windows 2003还是linux系统,都会有烦人的嘀嘀声响,特别是linux系统,即使...
阅读全文
posted @ 2015-06-16 14:38
步天有术
阅读(1504)
推荐(0)
posted @ 2015-02-15 10:41
步天有术
阅读(4)
推荐(0)
摘要:
yum 安装软件时提示warning ,导致安装失败。如下图:据网上资料说这是由于yum安装了旧版本的GPG keys造成的。解决办法就是rpm --import /etc/pki/rpm-gpg/RPM*
阅读全文
posted @ 2014-10-09 21:32
步天有术
阅读(175)
推荐(0)
摘要:
char *path = getenv("HOME");printf("path = %s\n",path);getenv是标准库函数,包含stdlib.h头文件就可.
阅读全文
posted @ 2014-07-21 17:03
步天有术
阅读(986)
推荐(0)
摘要:
linuxC之access函数access():判断是否具有存取文件的权限相关函数stat,open,chmod,chown,setuid,setgid表头文件#include定义函数int access(const char * pathname, int mode);函数说明access()会检...
阅读全文
posted @ 2014-07-21 17:02
步天有术
阅读(1540)
推荐(0)