class Stud
{
char *no;
char *name;
double deg;
static double sum;
static int num;
public:
void setdata(char *,char *,double );
void disp();
static double avg();
~Stud();
......................
阅读全部
|
keep_on
贴于 2012年11月17日 12:03
hide
bbsi
#include <stdio.h>
#include <string.h>
struct books{ /* 构造结构体 */
char name; /* 名称 */
int price; /* 定价 */
}b,book[10];
int search_book(struct books *p);
int main()
{
int i;
for(i=0;i<10;i++) /*键盘输入是本书的名称和价格*/
{
......................
阅读全部
|
Berrysun
贴于 2012年11月17日 11:15
hide
bbsi
#coding: utf-8
require "./config/environment"
conn = Mysql2::Client.new(:host=>'localhost', :username=>'root', :password=>'111111', :database=>'sns')
conn2 = Mysql2::Client.new(:host=>'localhost', :username=>'root', :password=>'111111', :database=>'blog')
namespace :blog do
desc "从旧有的博客迁移进来数据"
task :convert do
#导入用户数据
members = conn.query("select * from uchome_member order by uid asc")
members.each do |member|
......................
阅读全部
|
静夜思
贴于 2012年11月16日 03:05
hide
bbsi
#define OK 1
#define ERROR 2
typedef int ElemType;
typedef int Status;
typedef struct LNode
{
ElemType data;
struct LNode *next;
}LNode,*LinkList;
#include"stdio.h"
#include"stdlib.h"
Status InitList(LinkList *M)//初始化,给头指针分配空间,并将头指针的指针域置为NULL(头指针也相当于一个结点,只是没有数据域)
......................
阅读全部
|
莹色暮雨
贴于 2012年11月15日 21:45
hide
bbsi
Ipp32f* image = new Ipp32f[height*width];
IppiSize bigRoi = {width, height}; // the order!
ippiConvert_16u32f_C1R(norg1, sizeof(WORDTYPE)*width, image, sizeof(Ipp32f)*width, bigRoi );
//image.=image.*k+db;
ippiMulC_32f_C1IR(k, image, sizeof(Ipp32f)*width, bigRoi );
ippiSubC_32f_C1IR(db, image, sizeof(Ipp32f)*width, bigRoi );
ippiConvert_32f16u_C1R( image, sizeof(Ipp32f)*width, processed.ptr, sizeof(unsigned short)*width, bigRoi, ippRndNear );
阅读全部
|
yap077
贴于 2012年11月15日 15:20
hide
bbsi
HTML如何把<h>在<ul>左边显示?即把下面的“网址”显示在“MAP、知道、微博”的左边。默认“网址”这两个字是在“MAP、知道、微博”的上边。
<ul>
<li><h3>网址</h3>
<span><a href="http://map.google.cn/" target="_blank" >MAP</a></span>
<span><a href="http://zhidao.baidu.com/" target="_blank" >知道</a></span>
<span><a href="http://weibo.com/" target="_blank" >微博</a></span>
</ul>
阅读全部
|
szchina
贴于 2012年11月15日 13:29
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#define maxsize 20
static ssize_t mygetline(char **lineptr, size_t *n, FILE *stream)
{
ssize_t count=0;
int buf;
if(*lineptr == NULL)
// free(*lineptr);
{
......................
阅读全部
|
sosoplayer
贴于 2012年11月14日 21:45
hide
bbsi
class Object
def in?(*args)
if args.length > 1
args.include? self
else
another_object = args.first
if another_object.respond_to? :include?
another_object.include? self
else
raise ArgumentError.new("The single parameter passed to #in? must respond to #include?")
end
end
......................
阅读全部
|
静夜思
贴于 2012年11月14日 01:48
hide
bbsi
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>伊清科技网络有限公司</title>
<style type="text/css">
body {
background-color: #0787ac;
}
</style>
</head>
......................
阅读全部
|
kalvinyu
贴于 2012年11月13日 17:28
hide
bbsi