代码搜索:float
找到约 10,000 项符合「float」的源代码
代码结果 10,000
www.eeworm.com/read/380937/9122044
c isogroup.c
#include
#include
#include
#include
float * datafield;
int vectornum;
int vectorsize;
struct GROUP
{
float * center;
float D;
float va
www.eeworm.com/read/184067/9123899
c jm98b.c
/*
98年全国大学生数学建模竞赛B题"水灾巡视问题"模拟退火算法。
这是一个推销员问题,本题有53个点,所有可能性大约为exp(53),目前没有好方法求出精确解,既然求不出精确解,我们使用模拟退火法求出一个较优解,将所有结点编号为1到53,1到53的排列就是系统的结构,结构的变化规则是:从1到53的排列中随机选取一个子排列,将其反转或将其移至另一处,能量E自然是路径总长度。具体算法描述如下: ...
www.eeworm.com/read/380765/9128870
cpp a.cpp
// a.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
#include
#ifndef M_PI
#define M_P
www.eeworm.com/read/380756/9129315
h learnoptionsdlg.h
/*
*
* Copyright 2004-2006 Ghassan OREIBY
*
* This file is part of Neurality.
*
* Neurality is free software; you can redistribute it and/or modify
* it under the terms of the
www.eeworm.com/read/183906/9130658
txt xianglun.txt
#include
#include
#include
char B[6][10];
char C[6]={'a','b','c','d','e','f'};
void codeing(float x, float y,int m)
{
float v=1.0/x; int j=1;
while
www.eeworm.com/read/380643/9136109
txt c++.txt
标准答案习题1
1.1 简述C++语言程序的结构特点。
答:
(1)C++程序由一个或多个函数组成,其中至少有一个主函数main(),程序从主函数开始执行,由主函数来调用其他函数。
(2)C++函数由说明部分与函数体组成,函数体由变量定义和执行语句两部分组成。其中函数体中语句和变量说明以分号结束。一般函数结构如下:
# 编译预处理命令
函数类型 (形式参数)
{ /* 注 ...
www.eeworm.com/read/380642/9136124
h ga.h
#include
#include
#include
#include
using namespace std;
#define N 30 //种群数目
#define NUM 120 //城市数目
#define CRS 0.898
#define CHG 0.9
#define RE 0.9
typ
www.eeworm.com/read/380642/9136130
h ga2.h
#include
#include
#include
#include
using namespace std;
#define N 10 //种群数目
#define NUM 50 //城市数目
#define CRS 0.898
#define CHG 0.9
#define RE 0.9
type
www.eeworm.com/read/380642/9136142
h ga.h
#include
#include
#include
#include
using namespace std;
#define N 30 //种群数目
#define NUM 100 //城市数目
#define CRS 0.898
#define CHG 0.9
#define RE 0.9
typ
www.eeworm.com/read/183806/9137321
c 99.c
main()
#include "stdio.h"
main()
{
float peven(),podd(),dcall();
float sum;
int n;
while (1)
{
scanf("%d",&n);
if(n>1)
break;
}
if(n%2==0)
{printf("Even=");
sum=dcall(peven,n);
}
else