首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <iostream>
using namespace std;
void meger(int a[],int b[],int m,int n);
int main()
{
 int A[5]={1,5,3,7,9};//定义了第一个数组和值
 int B[5]={2,4,8,6,10};//定义了第二个数组和值
 meger(A,B,5,5);//调用函数
 return 0;
}
void meger(int a[],int b[],int m,int n)
{
......................
阅读全部 | H_Ace_Killer 贴于 2017年6月29日 11:01     hide bbsi
#include<stdio.h>
int main()
{
int t,p;
long long n;
scanf("%d",&t);
while(t--)
{
scanf("%d%lld",&p,&n);
long long  pre1=1,pre2=1,now;
if(n<=2){
printf("1\n");
......................
阅读全部 | mimijilu 贴于 2017年6月28日 21:54     hide bbsi
http://15169.myquick.org/
阅读全部 | wp231957 贴于 2017年6月23日 09:42     hide bbsi
请问一下如何用c++从键盘输入一段话,然后在把这句话输出。
阅读全部 | 夏有乔木 贴于 2017年6月22日 13:05     hide bbsi
private sub commandl_click()
a=0
b=0
for i=1 To5
a=a+1
b=b+2
for j=1 To5
a=a+2
b=b+1
next j
next i
print a;b
......................
阅读全部 | 地井盖 贴于 2017年6月21日 16:17     hide bbsi
#include <Windows.h>
#include <stdio.h>
#include <process.h>
#include <conio.h>
#include <time.h>

#define CHAIRS 3  //椅子的个数
#define BARBERS 1 //理发师的个数
#define CUSTOMESTOCOME 7 //将要来的顾客的数量

typedef HANDLE SEMAPHORE;

......................
阅读全部 | 飞雪都督 贴于 2017年6月21日 00:28     hide bbsi
一 题目:教学管理系统

二 目的:简单模拟学校的教学管理系统,为了简单期间,系统只模拟最简单的功能。

三 简单分析:
人员:
1、学生 2、教师 3、管理人员(以上三种人员都继承自CPerson基类)
功能:
1、设置、修改、显示个人信息
2、发布消息
四 说明:
以命令行程序形式运行
......................
阅读全部 | 夏有乔木 贴于 2017年6月20日 22:44     hide bbsi
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<script language="vbscript">
 sub go()
  location.href = document.f.se.value
 end sub
</script>
<body>
......................
阅读全部 | wl2546 贴于 2017年6月20日 20:24     hide bbsi
// FiveGame.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include<stdlib.h>
#include<stdio.h>
#include<ctype.h>
#include<string.h>
#include<windows.h>
#define SPACE 18
const int MAX = 8;
const char player_c = 'U';  //User
......................
阅读全部 | GBH1 贴于 2017年6月20日 10:42     hide bbsi
#include "winsock2.h" 
#include "ws2tcpip.h" 
#include "iostream"
#include "stdio.h" 
#pragma   comment(lib,"ws2_32.lib")  

/*定义IP头部数据结构*/
typedef struct _IP_HEADER
   {
 
   union
     {
......................
阅读全部 | wp231957 贴于 2017年6月19日 15:25     hide bbsi
上一页 147 148 149 150 151 152 153 154 155 156 下一页