Location:
Search - stdlib.c
Search list
Description: vxworks libc库源代码,标准C代码库实现
assert
ctype
locale
math
setjmp
stdarg
stdio
stdlib
string
time
-vxworks libc the source code, standard C code library to assert ctype locale math setjmp stdar g stdio stdlib string time
Platform: |
Size: 318081 |
Author: 王七 |
Hits:
Description: 简单最短寻道跟电梯算法,用C++编译 #include \"stdio.h\"
#include \"stdlib.h\"
#include <iostream.h>
Platform: |
Size: 7911 |
Author: 屈辰子 |
Hits:
Description: BP算法最新C源程序,
#include"stdarg.h"
#include"stdio.h"
#include"stdlib.h"
#include"math.h"
#include"graphics.h"
#include"conio.h"
#define IN 4 /*输入层的神经元个数*/
#define HID 13 /*隐含层的神经元个数*/
#define MOD 594 /*学习样本个数*/
#define OUT 1 /*输出层的神经元个数*/-BP algorithm latest C source,# include "stdarg.h"# include "stdio.h"# include "stdlib.h"# include "math.h"# include "graphics.h"# include "conio.h"# define IN 4/* input layer neurons number* /# define HID 13/* hidden layer neuron number* /# define MOD 594/* Number of samples* /# define OUT 1/* output layer neurons number* /
Platform: |
Size: 3072 |
Author: 陈光华 |
Hits:
Description: 小波变换的C源代码
#define N0 128
#include "stdio.h"
#include "stdlib.h"
#include "math.h"
#include "string.-wavelet transform C source code# define N0 128# include "stdio. h "# include" stdlib.h "# include" math.h "# inc lude "string.
Platform: |
Size: 3072 |
Author: 郑超 |
Hits:
Description: 简单最短寻道跟电梯算法,用C++编译 #include "stdio.h"
#include "stdlib.h"
#include <iostream.h>
-Shortest seek escalator with a simple algorithm, using C++ Compiler# Include
Platform: |
Size: 249856 |
Author: 屈辰子 |
Hits:
Description: #include <stdio.h>
#include <stdlib.h>
enum x {A,B,C,D,E}
int main(void)
{
int a=73,b=85,c=66
{
if (a>=90)
printf("a=A等級!!\n")
else if (a>=80)
printf("73分=B等級!!\n")
else if (a>=70)
printf("73分=C等級!!\n")
else if (a>=60)
printf("73分=D等級!!\n")
else if (a<60)
printf("73分=E等級!!\n")
}
{
if (b>=90)
printf("b=A等級!!\n")
else if (b>=80)
printf("85分=B等級!!\n")
else if (b>=70)
printf("85分=C等級!!\n")
else if (b>=60)
printf("85分=D等級!!\n")
else if (b<60)
printf("85分=E等級!!\n")
}
{
if (c>=90)
printf("c=A等級!!\n")
else if (c>=80)
printf("66分=B等級!!\n")
else if (c>=70)
printf("66分=C等級!!\n")
else if (c>=60)
printf("66分=D等級!!\n")
else if (c<60)
printf("66分=E等級!!\n")
}
system("pause")
return 0
}-# Include <stdio.h># Include <stdlib.h> enum x (A, B, C, D, E) int main (void) (int a = 73, b = 85, c = 66 (if ( a> = 90) printf ( a = A grades!! ) else if (a> = 80) printf ( 73 points = B grade!! ) else if (a> = 70) printf ( 73 points = C grade!! ) else if (a> = 60) printf ( 73 points = D grade!! ) else if (a <60) printf ( 73 points = E grades!! )) (if (b > = 90) printf ( b = A grades!! ) else if (b> = 80) printf ( 85 points = B grade!! ) else if (b> = 70) printf ( 85 points = C grade!! ) else if (b> = 60) printf ( 85 points = D grade!! ) else if (b <60) printf ( 85 points = E grades!! )) (if (c> = 90) printf ( c = A grades!! ) else if (c> = 80) printf ( 66 points = B grade!! ) else if (c> = 70) printf ( 66 points = C grades !! ) else if (c> = 60) printf ( 66 points = D grade!! ) else if (c <60) printf ( 66 points = E grades!! )) system ( pause ) return 0)
Platform: |
Size: 31744 |
Author: 林小世 |
Hits:
Description: 溫度華氏轉變攝氏
#include <stdio.h>
#include <stdlib.h>
enum x {A,B,C,D,E}
int main(void)
{
int a=73,b=85,c=66
{
if (a>=90)
printf("a=A等級!!\n")
else if (a>=80)
printf("73分=B等級!!\n")
else if (a>=70)
printf("73分=C等級!!\n")
else if (a>=60)
printf("73分=D等級!!\n")
else if (a<60)
printf("73分=E等級!!\n")
}
{
if (b>=90)
printf("b=A等級!!\n")
else if (b>=80)
printf("85分=B等級!!\n")
else if (b>=70)
printf("85分=C等級!!\n")
else if (b>=60)
printf("85分=D等級!!\n")
else if (b<60)
printf("85分=E等級!!\n")
}
{
if (c>=90)
printf("c=A等級!!\n")
else if (c>=80)
printf("66分=B等級!!\n")
else if (c>=70)
printf("66分=C等級!!\n")
else if (c>=60)
printf("66分=D等級!!\n")
else if (c<60)
printf("66分=E等級!!\n")
}
system("pause")
return 0
}-Fahrenheit Celsius temperature change in# Include <stdio.h># Include <stdlib.h> enum x (A, B, C, D, E) int main (void) (int a = 73, b = 85, c = 66 (if (a> = 90) printf ( a = A grades!! ) else if (a> = 80) printf ( 73 points = B grade!! ) else if (a> = 70) printf ( 73 points = C grades!! ) else if (a> = 60) printf ( 73 points = D grade!! ) else if (a <60) printf ( 73 points = E grades!! )) (if (b> = 90) printf ( b = A grades!! ) else if (b> = 80) printf ( 85 points = B grade!! ) else if (b> = 70) printf ( 85 points = C grades!! ) else if (b> = 60) printf ( 85 points = D grade!! ) else if (b <60) printf ( 85 points = E grades!! )) ( if (c> = 90) printf ( c = A grades!! ) else if (c> = 80) printf ( 66 points = B grade!! ) else if (c> = 70) printf ( 66 points = C grades!! ) else if (c> = 60) printf ( 66 points = D grade!! ) else if (c <60) printf ( 66 points = E grades!! )) system ( pause ) return 0)
Platform: |
Size: 31744 |
Author: 林小世 |
Hits:
Description: 溫度華氏轉變攝氏
#include <stdio.h>
#include <stdlib.h>
enum x {A,B,C,D,E}
int main(void)
{
int a=73,b=85,c=66
{
if (a>=90)
printf("a=A等級!!\n")
else if (a>=80)
printf("73分=B等級!!\n")
else if (a>=70)
printf("73分=C等級!!\n")
else if (a>=60)
printf("73分=D等級!!\n")
else if (a<60)
printf("73分=E等級!!\n")
}
{
if (b>=90)
printf("b=A等級!!\n")
else if (b>=80)
printf("85分=B等級!!\n")
else if (b>=70)
printf("85分=C等級!!\n")
else if (b>=60)
printf("85分=D等級!!\n")
else if (b<60)
printf("85分=E等級!!\n")
}
{
if (c>=90)
printf("c=A等級!!\n")
else if (c>=80)
printf("66分=B等級!!\n")
else if (c>=70)
printf("66分=C等級!!\n")
else if (c>=60)
printf("66分=D等級!!\n")
else if (c<60)
printf("66分=E等級!!\n")
}
system("pause")
return 0
}-Fahrenheit Celsius temperature change in# Include <stdio.h># Include <stdlib.h> enum x (A, B, C, D, E) int main (void) (int a = 73, b = 85, c = 66 (if (a> = 90) printf ( a = A grades!! ) else if (a> = 80) printf ( 73 points = B grade!! ) else if (a> = 70) printf ( 73 points = C grades!! ) else if (a> = 60) printf ( 73 points = D grade!! ) else if (a <60) printf ( 73 points = E grades!! )) (if (b> = 90) printf ( b = A grades!! ) else if (b> = 80) printf ( 85 points = B grade!! ) else if (b> = 70) printf ( 85 points = C grades!! ) else if (b> = 60) printf ( 85 points = D grade!! ) else if (b <60) printf ( 85 points = E grades!! )) ( if (c> = 90) printf ( c = A grades!! ) else if (c> = 80) printf ( 66 points = B grade!! ) else if (c> = 70) printf ( 66 points = C grades!! ) else if (c> = 60) printf ( 66 points = D grade!! ) else if (c <60) printf ( 66 points = E grades!! )) system ( pause ) return 0)
Platform: |
Size: 6144 |
Author: 林小世 |
Hits:
Description: 成績顯示三個部份abc
#include<stdio.h>
#include<stdlib.h>
int main(void)
{
float gread
printf("請輸入分數\n")
scanf("%f",&gread)
if(gread>=80&&gread<=100)
printf("成績為A\n")
else if(gread>=60&&gread<=79)
{
printf("成績為B\n")
}
else if(gread>=0&&gread<60)
{
printf("成績為C\n")
}
else
{
printf("分數輸入錯誤\n")
}
system("pause")
return 0
}
-Results demonstrate that the three parts of abc# Include <stdio.h># Include <stdlib.h> int main (void) (float gread printf ( Please enter the Score ) scanf ( f ,
Platform: |
Size: 6144 |
Author: 林小世 |
Hits:
Description: #include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <fstream>
#include <iostream>
using namespace std
struct Code
{
float a
char s
}
Code cc[8]={{0.25, a },{0.3, b },{0.1, c },{0.05, d },{0.05, e },{0.05, . },{0.05, , },{0.15, 8 }}
int main()
{
srand((unsigned)time(NULL))
int x
int n
ofstream outobj("plpl.txt")
cout<<"inpute the number(要产生的字符数):"
cin>>n
for(int i=0 i<n i++)
{
x=rand()%1000+1
int low =1
for(int j=0 j<8 j++)
{
int high=cc[j].a*1000+low-1
if(x>=low&&x<=high)
{
outobj<<cc[j].s
break
}
low = high+1
}
}
outobj.flush()
outobj.close()
} 存到.dat文件里面-# Include <stdlib.h># Include <stdio.h># Include <time.h># Include <fstream># Include <iostream> using namespace std struct Code (float a char s) Code cc [ 8] = ((0.25, a), (0.3, b), (0.1, c), (0.05, d), (0.05, e), (0.05,.), (0.05,,), (0.15, 8 )) int main () (srand ((unsigned) time (NULL)) int x int n ofstream outobj ( plpl.txt ) cout << inpute the number (to generate the number of characters): cin>> n for (int i = 0 i <n i++) (x = rand () 1000+ 1 int low = 1 for (int j = 0 j <8 j++) (int high = cc [j] . a* 1000+ low-1 if (x> = low
Platform: |
Size: 1024 |
Author: 糊涂 |
Hits:
Description: 二叉树算法集
文章整理: www.diybl.com 文章来源: 网络 去论坛 建我的blog
#include<stdlib.h>
#include<stdio.h>
#define MAX 50
#define MAS 20
#define CHAR 1
#if CHAR
typedef char TElemType
TElemType Nil=
#define form " c"
#else
typedef int TElemType -SCACASCCCCCCCCCCCCCCCCCCCCCAscasc
Platform: |
Size: 59392 |
Author: fwef |
Hits:
Description: S60 SDL is a Simple DirectMedia Layer adaptation for S60. SDL is a cross-platform multimedia library: Applications and libraries built on SDL can easily be ported to other operating systems. But S60 SDL does more than makes porting easy: S60 multimedia applications can be implemented without any knowledge of Symbian C++ native API and a developer can use SDL and standard C, C++ interfaces. The SDL development supports both Nokia OpenC and Symbian stdlib (ESTLIB) C implementations.
Platform: |
Size: 798720 |
Author: modoko |
Hits:
Description: BP神经网络程序,C语言源代码
如下:
#include "iostream.h"
#include "iomanip.h"
#include "stdlib.h"
#include "math.h"
#include "stdio.h"
#include "time.h"
#include "fstream.h"
#define N 120 //学习样本个数
#define IN 3 //输入层神经元数目
#define HN 2 //隐层神经元数目
#define ON 2 //输出层神经元数目
#define Z 20000 //旧权值保存-》每次study的权值都保存下来
double P[IN] //单个样本输入数据
double T[ON] //单个样本教师数据
double U11[IN][HN] //输入层至第一隐层权值
double V[HN][ON] //隐层至输出层权值
double X1[HN] //第一隐层的输入
double Y[ON] //输出层的输入
double H1[HN] //第一隐层的输出
double O[ON] //输出层的输出
double YU_HN1[HN] //第一隐层的阈值
double YU_ON[ON] //输出层的阈值
double err_m[N] //第m个样本的总误差
double a //学习效率
double alpha //动量因子-BP net
Platform: |
Size: 3072 |
Author: 梅汉文 |
Hits:
Description: TI公司的CCS一些常用的函数库 ,比较好的资料,里面有一些程序比较基本,对于初学者规范程序编写,理论用于实践,有一定参考价值-TI' s CCS library of some commonly used, relatively good information, there are some basic procedures, procedures for the preparation of norms for the beginners, theory for practice, a certain reference value
Platform: |
Size: 294912 |
Author: 冯晓东 |
Hits:
Description: c所有函数速查日记,对于新手来说是一份很好的学习资料-#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("Calling abort()\n")
abort()
return 0 /* This is never reached*/
}
Platform: |
Size: 91136 |
Author: 李智军 |
Hits:
Description: c语言编写的俄罗斯方块程序,c语言环境编写,供大家娱乐一下:)-/********************************/
/* Desc: 俄罗斯方块游戏 */
/* Date: 2008.03.12 22:30 */
/********************************/
#include <stdio.h>
#include <bios.h>
#include <dos.h>
#include <graphics.h>
#include <string.h>
#include <stdlib.h>
#define true 1
#define false 0
#define BoardWidth 12
#define BoardHeight 23
#define _INNER_HELPER /*inner helper method*/
Platform: |
Size: 4096 |
Author: 孙艳 |
Hits:
Description: module dwin.lab.BigInt
/+
version(Tango)
{
import tango.stdc.math
import tango.stdc.stdlib
import tango.stdc.string
import tango.stdc.stdio
}
else
{
import std.c.math
import std.c.stdlib
import std.c.string
import std.c.stdio
}
-module dwin.lab.BigInt
/+
version(Tango)
{
import tango.stdc.math
import tango.stdc.stdlib
import tango.stdc.string
import tango.stdc.stdio
}
else
{
import std.c.math
import std.c.stdlib
import std.c.string
import std.c.stdio
}
。。。。。。。。
Platform: |
Size: 6144 |
Author: 123456 |
Hits:
Description: opt c++ algorithm
2006 November 12
Added includes of <stdio.h> and <stdlib.h> to random.c to avoid
a GCC -Wall natter about exit() not being defined.
Modified all of the function names in random.c and references
to them in otp.c to prefix the names with "o_". This -opt c++ algorithm
2006 November 12
Added includes of <stdio.h> and <stdlib.h> to random.c to avoid
a GCC -Wall natter about exit() not being defined.
Modified all of the function names in random.c and references
to them in otp.c to prefix the names with "o_". This
Platform: |
Size: 47104 |
Author: mahdi pakzad |
Hits:
Description: /* binarysearch() - A binary search implementation which takes the same
* arguments as the C library function bsearch() provided by stdlib.h. It
* searches the sorted array at address base, which has nmemb elements, each of
* which is size bytes long. compar is a pointer to a comparison function.
* The function compares two array elements, and returns a negative, zero, or
* positive integer depending on whether the first array element is less than,
* equal to, or greater than the second.
*/-/* binarysearch() - A binary search implementation which takes the same
* arguments as the C library function bsearch() provided by stdlib.h. It
* searches the sorted array at address base, which has nmemb elements, each of
* which is size bytes long. compar is a pointer to a comparison function.
* The function compares two array elements, and returns a negative, zero, or
* positive integer depending on whether the first array element is less than,
* equal to, or greater than the second.
*/
Platform: |
Size: 3072 |
Author: Mohammad |
Hits:
Description: BSTR2, Bubble Sort2, Character to integer, CString s into char s. I am posting
, Letter count with linked list, MasterString - over 3,000 lines of hardcore string manipluation (classes, structs, functions ) etc,
string functions using both user defined & stdlib,
Writing to a file, A Simple Count String.cpp, ACCI 2 Decimal,Hex,octal.cpp,
ACCURATE and MODERN conversion .cpp, Ascii to Unicode and vice-versa.cpp,
Converts a numeric string to integer .cpp, Finds and replaces a string with a given string.cpp, GotoXY.cpp, how variables can exist in different scopes.cpp,
input and revers string.cpp, revers string 2.cpp, Searches if a textfile contains a string .cpp, simplest logic and most simplest password program .cpp, strcat,strcmp,strcpy(VB).cpp, string compare.cpp, string manip tutorial.cpp,
StriStr--This function is an ANSI version of strstr() with case insensitivity.cpp,
strrtrim.cpp, UPPER.C, VB string function.cpp
Platform: |
Size: 21504 |
Author: Ahmad |
Hits: