首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
我写的这个代码有点问题,求大神指教啊,编译能通过,但是结果不对。。
#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>



typedef struct LNode
{
    char data;
    struct LNode *next;
}LNode,*Linklist;
......................
阅读全部 | cl875821804 贴于 2012年11月24日 12:03     hide bbsi
#include <iostream>
using namespace std;
float max=0, min=0;
float average(float array[],int n)
{
    int i;
    float aver, sum=array[0];
    max=min=array[0];
    for (i=1; i<n; i++)
        {
        if(array[i]>max)max=array[i];
        else if(array[i]<min)min=array[i];
......................
阅读全部 | 火星星 贴于 2012年11月23日 22:51     hide bbsi
#include <iostream>
using namespace std;
float max=0, min=0;
float average(float array[],int n)
{
    int i;
    float aver, sum=array[0];
    max=min=array[0];
    for (i=1; i<n; i++)
        {
        if(array[i]>max)max=array[i];
        else if(array[i]<min)min=array[i];
......................
阅读全部 | 记忆空白 贴于 2012年11月21日 22:28     hide bbsi
#include <stdio.h>

int main()
{
    printf("hello vim!");
    return 0;
}
阅读全部 | gamcat 贴于 2012年11月20日 22:59     hide bbsi
#include "stdafx.h"


#include <stdio.h>
#include <stdlib.h>
#define maxsize 100


typedef struct
{
    char data[maxsize];
    int len;
......................
阅读全部 | 不要抢我名字 贴于 2012年11月18日 21:40     hide bbsi
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
上一页 278 279 280 281 282 283 284 285 286 287 下一页