#include<stdlib.h>
#include<stdio.h>
#define Maxsize 20
void menu(){
printf("------------------------\n");
printf("输入0初始化线性表:\n");
printf("输入1给线性表赋值:\n");
printf("输入2输出线性表元素:\n");
printf("输入3查询线性表某一元素:\n");
printf("输入4插入元素至线性表:\n");
printf("输入5删除线性表中某一元素:\n");
printf("输入6清空线性表:\n");
......................
阅读全部
|
biutt
贴于 2019年4月17日 14:10
hide
bbsi
Private Sub Command_Click()
End Sub
Dim x As Lnteger, y As Integer, z As Integer
Dim x_max As Integer, y_max As Integer, z_max As Integer
Dim f(4, 3, 8) As Single '?????????f??x,y,z)???????f
Dim f_max As Single
'??????????? ??1??1????x,y,z????f(1,1)??x,y,z????f(x,y,z)=4x+3y+2z?????
For x = 0 To 4
For y = 0 To 3
For z = 0 To 8
If (2 * x + 2 * y + z <= 12) And (x + 2 * y + z <= 8) Then
......................
阅读全部
|
x211504874
贴于 2019年3月23日 21:16
hide
bbsi
/*
* Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy)
* Copyright (c) 2005 - 2006 CACE Technologies, Davis (California)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
......................
阅读全部
|
Administraor
贴于 2019年3月23日 20:25
hide
bbsi
/*
* Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy)
* Copyright (c) 2005 - 2006 CACE Technologies, Davis (California)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
......................
阅读全部
|
Administraor
贴于 2019年3月23日 19:56
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#define MAX 100
typedef char ElemType;
//定义栈结构体
struct stack
{
ElemType elem[MAX];
int top;//顶部下标
};
//初始化栈
......................
阅读全部
|
麦子po
贴于 2019年3月19日 19:30
hide
bbsi
#include<stdio.h>
int main(){
char a=0;
int b=0;
while(++a>0);
printf("有有符号的char最大整数是%d\n",a-1);//为什么输出谁-129,不是127.
while(++b>0);
printf("有符号的int最大整数是%d\n",b-1);
char d=127;
d=d+1;
printf("%d\n",d);
d=d-1;
......................
阅读全部
|
堕落之地
贴于 2019年3月11日 15:11
hide
bbsi
/**
* @Title:getPayparams
* @Description:根据支付方式获取相应的支付参数
* @param orderMain
* @param payType
* @param request
* @return
* @throws Exception Result<Map<String,Object>> 返回类型
*/
public Result<Map<String, Object>> getPayparams(OrderMain orderMain, String payType, HttpServletRequest request) throws Exception{
Result<Map<String, Object>> result = new Result<Map<String, Object>>();
switch (payType) {
......................
阅读全部
|
glj188350035
贴于 2019年3月4日 11:44
hide
bbsi
#include<math.h>
#include<stdio.h>
main()
{
int a=1,b=1,c=1;
float i=0.0,d=0.0001;
while(fabs(1./a)>=fabs(d))
{
i=i+1/a;
if(b%2!=0)
c=-1;
else c=1;
......................
阅读全部
|
单维坤
贴于 2019年2月24日 22:52
hide
bbsi
#include<stdio.h>
#include<string.h>
#include<math.h>
#define EPSILON 0.1
int main()
{
double num1;
int flag,v,w,x,y,z,len;
char a[20]= {0};
double b[20]= {0};
for(int i=0; i<20; i++)
{
......................
阅读全部
|
艾莉莎
贴于 2019年2月23日 15:39
hide
bbsi