#include <stdio.h>
#define SX 10
#define SY 10
struct point
{
short x;
short y;
};
int search(const char m[SX][SX + 1], point path[], int count, const point& endPt);
void main()
{
......................
阅读全部
|
gougoudan
贴于 2020年5月25日 16:22
hide
bbsi
namespace oozinoz1
{
/**/
/// <summary>
/// Class5 的摘要说明。
/// </summary>
public class Class5
{
private static void InsertImage(string imagePath, string wordPath)
{
Document document = new Document();
Section s = document.AddSection();
......................
阅读全部
|
lty666
贴于 2020年5月22日 11:47
hide
bbsi
#include <iostream>
using namespace std;
template <class T>
class DynamicVector
{
T* array; // pointer to the items 指向分配空间的指针
unsigned mallocSize; // number of allocated spaces 分配空间的大小
unsigned numofItems; // number of items 向量内已经存储的元素数量
int virtualZero; // virtual zero 数组起始下标,C语言中通常数组下标是从0开始, 这个数据属性可以让数组的下标从-10或2等等整数开始 ,让数组更加灵活。
public:
......................
阅读全部
|
l1l2l3
贴于 2020年5月21日 17:46
hide
bbsi
# 从控制台输入一个三个数,输出较大的值
print("请输入第一个数字")
num1=int(input())
print("请输入第二个数字")
num2=int(input())
print("请输入第三个数字")
num3=int(input())
if num2>num3:
if num1>num2:
print("输出最大值",num1)
else:
print("输出最大值",num2)
......................
阅读全部
|
SolitaryEag
贴于 2020年5月21日 11:38
hide
bbsi
#include <stdio.h>
int main()
{
printf("1");
return 0;
}
阅读全部
|
大内007
贴于 2020年5月21日 10:52
hide
bbsi
# if语句的练习
print("请输入数字")
num=int(input())
if num %2==0:
num=10+20
print("num=",num)
阅读全部
|
SolitaryEag
贴于 2020年5月21日 10:09
hide
bbsi
# 彩票系统
import random
num=int(input("请输入您的号码100以内:"))
res=random.choice(range(100))+1
print("中奖数字是",res)
# 判断是否中奖 num==res
if num==res:
print("恭喜您中了500万")
阅读全部
|
SolitaryEag
贴于 2020年5月21日 09:58
hide
bbsi
#自己练习的玩
num=int(input("请输入你的购车款(万):"))
numl5=int(input("请输入你分期数:"))
# 首付款
numl1=0.3
numl2=(num*numl1)
# 首付款后剩余部分
print("您的首付款是(万)",numl2)
numl3=(num-numl2)
numl4=(numl3/numl5)
print("你每期应还(万):",numl4)
阅读全部
|
SolitaryEag
贴于 2020年5月21日 08:47
hide
bbsi
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<direct.h>
#include <io.h>
int strreplace(char *outstr, const char *str, const char *oldstr, const char *newstr)
{
char bstr[300];
memset(bstr, 0, sizeof(bstr));
int i = 0;
for (i = 0; i < strlen(str); i++) {
......................
阅读全部
|
gougoudan
贴于 2020年5月20日 21:23
hide
bbsi