按类别查询搜索结果
关于关键词 的检测结果,共 5850
【C/C++】 算器:栈
shenya0203 | 2014-12-19 17:16:53 | 阅读(0) | 评论(0)
点击(此处)折叠或打开//stack.cpp#include <stdlib.h>#include <malloc.h>#include <memory.h>#include <assert.h>#include "stack.h"const int STACK_INIT_SIZE = 100;   &nbs...【阅读全文】
shenya0203 | 2014-12-19 17:15:15 | 阅读(0) | 评论(0)
点击(此处)折叠或打开//func.h#ifndef _H_FUNC_H_extern int sum(void *parm1, void *parm2, void *out);extern int sub(void *parm1, void *parm2, void *out);extern int mul(v...【阅读全文】
【C/C++】 算器:函数
shenya0203 | 2014-12-19 17:09:53 | 阅读(0) | 评论(0)
点击(此处)折叠或打开//func.cpp#include <stdio.h>#include "calc.h"int sum(void *parm1, void *parm2, void *out){    if (g_calc_type) {    &nb...【阅读全文】
shenya0203 | 2014-12-19 17:08:52 | 阅读(0) | 评论(0)
点击(此处)折叠或打开//custom.h#ifndef _H_CUSTOM_H_/*定制的参数列表*/struct custom_param_node {    char name[16];          ...【阅读全文】
shenya0203 | 2014-12-19 17:07:11 | 阅读(0) | 评论(0)
点击(此处)折叠或打开//custom.cpp#include <stdlib.h>#include <string.h>#include "calc.h"#include "calc_interface.h"#include "custom.h"#include "syntax_parse.h"#ifdef _WIN32...【阅读全文】
shenya0203 | 2014-12-19 17:04:53 | 阅读(0) | 评论(0)
点击(此处)折叠或打开//calc_interface.h#ifndef _H_CALC_INTERFACE_H_enum array_type_t{    ARRAY_TYPE_BOOL = 0,    ARRAY_TYPE_INT,  ...【阅读全文】
shenya0203 | 2014-12-19 17:03:27 | 阅读(0) | 评论(0)
//calc.h#ifndef _H_CALC_H_#define Bool int#ifndef TRUE#define TRUE 1#define FALSE 0#endifenum optr_type {    OPERATOR_NULL = 0,    OPERATOR...【阅读全文】
shenya0203 | 2014-12-19 17:00:56 | 阅读(0) | 评论(0)
点击(此处)折叠或打开// calc.cpp : Defines the entry point for the console application.///*******************************************************************************************  *实现功能 :一个输入一个方程式 给定其参数 可...【阅读全文】
Riane188 | 2014-12-19 09:53:04 | 阅读(770) | 评论(0)
shenya0203 | 2014-12-17 18:08:50 | 阅读(0) | 评论(0)
点击(此处)折叠或打开#ifndef _H_SYNTAX_PARSE_H_extern int syntax_check(char *equation);extern void syntax_err_string_ch(void);#endif//_H_SYNTAX_PARSE_H_【阅读全文】
shenya0203 | 2014-12-17 18:07:53 | 阅读(0) | 评论(0)
点击(此处)折叠或打开#ifndef STACK_H#define STACK_H#define FALSE 0#define TRUE 1/* * 栈结构定义 *//* *操作数栈&nb...【阅读全文】
shenya0203 | 2014-12-17 18:06:52 | 阅读(0) | 评论(0)
点击(此处)折叠或打开#ifndef _H_FUNC_H_extern void sum(void *parm1, void *parm2, void *out);extern void sub(void *parm1, void *parm2, void *out);extern void mul(void *parm1, void *...【阅读全文】
shenya0203 | 2014-12-17 18:05:58 | 阅读(0) | 评论(0)
calc.h点击(此处)折叠或打开#ifndef _H_CALC_H_#define Bool int#ifndef TRUE#define TRUE 1#define FALSE 0#endifenum optr_type {    OPERAT...【阅读全文】
shenya0203 | 2014-12-17 18:04:26 | 阅读(0) | 评论(0)
点击(此处)折叠或打开#include <stdlib.h>#include <malloc.h>#include <memory.h>#include <assert.h>#include "stack.h"const int STACK_INIT_SIZE = 100;    // 初始分配的长度...【阅读全文】
shenya0203 | 2014-12-17 18:03:06 | 阅读(0) | 评论(0)
点击(此处)折叠或打开#include "calc.h"void sum(void *parm1, void *parm2, void *out){    if (g_calc_type) {        *(unsigned long *)out = *(unsign...【阅读全文】
shenya0203 | 2014-12-17 18:02:20 | 阅读(0) | 评论(0)
点击(此处)折叠或打开// calc.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <stdio.h> #include <stdlib.h>#include <math.h>#include "stack.h...【阅读全文】
shenya0203 | 2014-12-17 18:00:58 | 阅读(0) | 评论(0)
点击(此处)折叠或打开#include <stdio.h>#include <stdlib.h>#include <string.h>#include "calc.h"//输入公式的语法检查void equation_end(void){  &nbs...【阅读全文】
小霸王88 | 2014-12-17 11:41:57 | 阅读(1540) | 评论(0)
前言:    在阅读国外源码的时候,发现很多宏定义中 #define 中有空格(# define),特别是在 #if , #else , #endif 中。一,测试点击(此处)折叠或打开#include <stdio.h>#define f_str "#define"# define s_str ...【阅读全文】
shenya0203 | 2014-12-16 23:35:39 | 阅读(0) | 评论(0)
点击(此处)折叠或打开inline static int syntax_comma_optr_check(int *last_exp, char *optr){    int rc = -1;    if (!g_optr_func_exist) {     &...【阅读全文】
shenya0203 | 2014-12-16 18:02:31 | 阅读(0) | 评论(0)
只支持科学型计算(即十进制的浮点数计算),目前还不支持函数运算 【阅读全文】