上一页 1 ··· 354 355 356 357 358 359 360 361 362 ··· 455 下一页
Get SharePoint 2010 version with PowerShellAs part of the summary script I use the following code to get the SharePoint 2010 build version. This identifies which CU or Service Pack has been installed.There are a couple of ways for getting the build version:1. Using Central AdministrationIt is of cou Read More
posted @ 2013-04-03 15:52 javawebsoa Views(211) Comments(0) Diggs(0)
// BSearch.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <iostream>using namespace std;template <class T>void PrintfNum(T a[],const int& n);/*** search n in a[], return the index, if not find, return -1.*/template <class T>int Read More
posted @ 2013-04-03 15:48 javawebsoa Views(183) Comments(0) Diggs(0)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=u Read More
posted @ 2013-04-02 14:46 javawebsoa Views(159) Comments(0) Diggs(0)
这个题不难但是里面有很多东西需要注意,尤其是Ties are broken in such a way that an earlier time precedes a later time.这就是说当夹角一样时,事件小的放在前面。比较麻烦啊。#include<iostream>#include<string>#include<math.h>#include<algorithm>using namespace std;struct node{ string ko; int shi; int fen; double angle;};bool cmp( Read More
posted @ 2013-04-02 14:44 javawebsoa Views(155) Comments(0) Diggs(0)
一、Javabeans原题:DescriptionJavabeans are delicious. Javaman likes to eat javabeans very much.Javaman has n boxes of javabeans. There are exactly i javabeans in the i-th box (i = 1, 2, 3,...n). Everyday Javaman chooses an integer x. He also chooses several boxes where the numbers of javabeans are all a Read More
posted @ 2013-04-02 14:42 javawebsoa Views(208) Comments(0) Diggs(0)
通常用QLabel显示图像,QLabel类有setPixmap()函数,可以用来显示图像。也可以直接用QPainter画出图像。如果图像过大,直接用QLabel显示,将会出现有部分图像显示不出来,这时可以用Scroll Area部件。方法:将QLabel部件放到Scroll Area部件里面,将两个采用栅格布局,当图像超出了QLabel部件大小时,就会产生滑动杆,这样图像就可以都看到了。具体方法如下:1. 在ui界面中放置Scroll Area控件2. 将一个Label控件放在Scroll Area控件中3. 点击以下图标,实现二者栅格布局4. 在槽函数中写如下代码QString filena Read More
posted @ 2013-04-02 14:40 javawebsoa Views(1078) Comments(0) Diggs(0)
文字旁边搭配图片时,发现图片比文字靠上,原来默认的情况是图片顶对齐而文字底对齐,通过设置css属性可以使得图片与文字对齐。 设置各对象的vertical-align属性,属性说明: baseline-将支持valign特性的对象的内容与基线对齐 sub-垂直对齐文本的下标 super-垂直对齐文本的上标 top-将支持valign特性的对象的内容与对象顶端对齐 text-top-将支持valign特性的对象的文本与对象顶端对齐 middle-将支持valign特性的对象的内容与对象中部对齐 bottom-将支持valign特性的对象的文本与对象底端对齐 text-bottom-将支持valig Read More
posted @ 2013-04-02 14:38 javawebsoa Views(466) Comments(0) Diggs(0)
3.一个有窗口和窗口过程函数但没有消息循环的程序一个程序,如果我们创建了窗口,也定义了窗口过程函数,但是没有建立消息循环会怎样呢?我们在win32控制台项目下编写如下代码:#include <windows.h>#define WM_TEST 10000LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); void main(){ static TCHAR szAppName[]=TEXT("Test!"); HWND hwnd; WNDCLASS wndclass = {NULL}; wndclass.lp Read More
posted @ 2013-04-02 14:36 javawebsoa Views(242) Comments(0) Diggs(0)
Problem Description A weird clock marked from 0 to 59 has only a minute hand. It won't move until a special coin is thrown into its box. There are different kinds of coins as your options. However once you make your choice, you cannot use any other kind. There are infinite number of coins of eac Read More
posted @ 2013-04-02 14:34 javawebsoa Views(191) Comments(0) Diggs(0)
1、打印liunx和windows下nsfocus进程信息linux下:ps -l | grep nsfocuswindows下:tasklist | find“nsfocus”2、TCP和UDP区别TCP:传输控制协议,提供的是面向连接、可靠的字节流服务。当要交换数据时需要建立TCP连接,之后才能传输数据。TCP提供超时重发,丢弃重复数据,检验数据,流量控制等功能,保证数据能从一端传到另一端。UDP:用户数据报协议,简单的面向数据报的运输层协议。UDP不提供可靠性,不需要建立一个连接,且没有超时重发等机制,故而传输速度很快UDP发送数据的时候是不管数据是否到达,所以传输速度比较快。但是同时也 Read More
posted @ 2013-04-02 14:32 javawebsoa Views(346) Comments(0) Diggs(1)
上一页 1 ··· 354 355 356 357 358 359 360 361 362 ··· 455 下一页