//=======================
// main.cpp
// 添加一个随机函数,使得游戏中随机出现三个设定好的角色
//=======================
// main function for the RPG style game
//主要功能为RPG游戏风格
#include <iostream>
#include <string>
......................
阅读全部
|
内谁别跑
贴于 2015年6月24日 22:24
hide
bbsi
#include<stdio.h>
#include<stdlib.h>
#define LEN sizeof(struct stu)
struct stu
{
int sno;
char name[10];
float score[3];
struct stu *next;
};
int main()
{
......................
阅读全部
|
thankyou1
贴于 2015年6月24日 18:14
hide
bbsi
简述以下算法的功能:
status A(LinkList L){//L是无表头结点的单链表
if(L&&L->next){
Q=L;L=L->next;p=L;
while(p->next)p=p->next;
p->next=Q;Q->next=NULL;
}
return OK;
}
阅读全部
|
执扬
贴于 2015年6月23日 20:31
hide
bbsi
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<time.h>
#define szSTR 240
/*考题数据库,以链表表示*/
struct Question{
char titleszSTR [];/*题目*/
char answer;/*正确答案*/
char mark;/*防止重复出题的标志位*/
char structQuestion*next;
......................
阅读全部
|
敬爱的汪老师
贴于 2015年6月22日 20:32
hide
bbsi
#include<stdio.h>
#define ROW 3
#define COL 4
void main()
{
int array[ROW][COL];
int temp;
printf("请输入%d个整数:\n",ROW*COL);
for(i=0;i<ROW;i++)
{
......................
阅读全部
|
大河马
贴于 2015年6月22日 09:19
hide
bbsi
Dim i As Long
Dim temp As String
i = 0
Open App.Path & "test.txt" For Input As #1 '读取txt文件中的内容
Do While Not EOF(1)
Line Input #1, temp
i = i + 1
For j = 1 To Len(temp) '测试一行内所有数据
......................
阅读全部
|
chen123free
贴于 2015年6月17日 10:18
hide
bbsi
#include <iostream.h>
class Human
{
private:
//***1***
int stature,avoirdupois;
char blood_type;
public:
//***2***
Human()
{
......................
阅读全部
|
离铭
贴于 2015年6月16日 19:52
hide
bbsi
int menu(LinkList*temp)
{
int t;
do
{
headword();
printf(" 主 菜 单 \n");
printf(" 1.请输入文章内容 \n");
printf(" 2.显示当前文章内容 \n");
printf(" 3.进入文本内容统计菜单 \n");
printf(" 4.查找文章中的字符或字符串 \n");
......................
阅读全部
|
不布鲁
贴于 2015年6月16日 15:14
hide
bbsi
Private Sub Command1_Click()
Form1.Caption = "大小写字母转换"
Label1.Caption = "输入字符串:"
Label2.Caption = "转换:"
Command1.Caption = "清屏"
Command2.Caption = "结束"
Text1.Text = ""
Text2.Text = ""
End Sub
Private Sub Command2_Click()
End
......................
阅读全部
|
chen123free
贴于 2015年6月16日 13:44
hide
bbsi
Private Sub Command1_Click()
Form1.Caption = "欢迎界面"
Label1.Caption = "欢迎使用本程序!"
Label2.Caption = "请输入用户名!"
Text1.Text = ""
End Sub
Private Sub Command2_Click()
End
End Sub
阅读全部
|
chen123free
贴于 2015年6月16日 13:25
hide
bbsi