
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
c++多线程同步使用的对象
转自:http://anwj336.blog.163.com/blog/static/89415209201010173049365/线程的同步Critical section(临界区)用来实现“排他性占有”。适用范围是单一进程的各线程之间。它是:·
c++中try catch的用法
在c++中,可以直接抛出异常之后自己进行捕捉处理,如:(这样就可以在任何自己得到不想要的结果的时候进行中断,比如在进行数据库事务操作的时候,如果某一个语句返回SQL_ERROR则直接抛出异常,在catch块中进行事务回滚)#include#includeusing namespace std;int main () {try{throw 1;thro
Python DocString特性
#!/usr/bin/python#Filename:func_doc.pydef printMax(x,y):'''Prints the maximum of two numbersthe two valuse must be integers'''x = int(x)y = int(y)if(x > y):print x,'is maximum'els
到底了







