#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
import urllib2
f=urllib2.urlopen(raw_input("Please enter the URL:"))
ff=open(raw_input("Please enter the filename:"),"w+")
for x in range(1,1000):
s=f.read()
ff.write(s)
ff.close()
阅读全部
|
cstdio
贴于 2019年4月4日 17:59
hide
bbsi
class zpd{
public static void main(String []args){
system.out.println("Hello world");
}
阅读全部
|
张攀登
贴于 2019年3月24日 13:36
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
x=76543
y=0
do while x>0
y=x%10+y*10
x=int(x/10)
enddo
阅读全部
|
最后的八月
贴于 2019年3月19日 22:23
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