首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
/* Program 1.1 Your Very First C Program - Displaying Hello World */
#include <stdio.h>

int main(void)
{
   printf("Hello world! ");
   return 0;
}
阅读全部 | 新绿清风 贴于 2013年5月17日 14:03     hide bbsi
#incude <stdio.h>
int FindMaxNumber(int x,int y);
void main()
{
   int x = 0,y =0 ;
scanf("%d %d",&x,&y);
    printf("%d\n",FindMaxNumber(x,y));


}
int FindMaxNumber(int x,int y)
{
......................
阅读全部 | 一介白书生 贴于 2013年5月16日 21:57     hide bbsi
求帮忙求一下x1和h的幅频特性曲线,初始值随便取,谢谢啊...
ms=200; 
ks=30000;
mu=40;
Fm=200;
kt=181000;
c0=1000;
B=100;
h=1;
%FM=(Fm*(1-exp(-B*(x(2)-x(4))))/(1+exp(-B*(x(2)-x(4)))));
xr=0.01*sin(2*pi*h*t);

......................
阅读全部 | matlab777 贴于 2013年5月16日 17:15     hide bbsi
(七) package test1;
public class syuct1 {
public static void main(String[]args){
int i;
for(i=1;i<=1;++i){
System.out.println("   *");
System.out.println("  * *");
System.out.println(" *   *");
System.out.println("*     *");
System.out.println(" *   *");
System.out.println("  * *");
System.out.println("   *");
......................
阅读全部 | lxyhcm 贴于 2013年5月15日 22:24     hide bbsi
#include <stdio.h>
void main()
{
    int max(int x,int y);
int a,b,c;
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("max=%d\n",c);
}
int max(int x,int y)
{
int z;
......................
阅读全部 | 小百科 贴于 2013年5月13日 09:27     hide bbsi
#include "iostream"
#include "string.h"
using namespace std;
#define N1 10
#define N2 10
#define N 20
void str_cat(char s1[],char s2[],char s[])
{
int i=0,j=0;
while(s1[i])
{
s[i]=s1[i];
......................
阅读全部 | singleton 贴于 2013年5月11日 21:15     hide bbsi
#include <stdio.h>
int fact(int n);
int multi(int n);
int main(void)
{
    int i; 
    double sum, item, eps;

    eps=1E-6;
    sum=1;
    item=1;
    for(i=1;item>=eps; i++){
......................
阅读全部 | shenwenbin 贴于 2013年5月11日 13:50     hide bbsi
#include <iostream>
using namespace std;
template<class Type>
void Swap(Type *array,Type a,Type b)
{ Type temp;
temp=array[a];
array[a]=array[b];
array[b]=temp;
}
template<class Type>
void FastSort(Type *array,Type n)
{ for(int i=0;i<n;i++)
......................
阅读全部 | 不玩虚的 贴于 2013年5月11日 06:16     hide bbsi
//1.添加功能找到并删除一个学生数据,
//2.有序的维护链表 
#include<iostream>
#include<cstring>
using namespace std;
class CPerson
{
friend class CNode;
public:
CPerson(){}
CPerson(char*name,int age,char*str=0,char sex='M')
{
......................
阅读全部 | G梦 贴于 2013年5月9日 20:26     hide bbsi
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#define MIN 1 //宏定义房间序号的最小值
#define MAX 30 //宏定义房间序号的最大值
#define LEN sizeof(struct Hotel) //用LEN代替结构体的"长度"

char menu_select(); //函数声明 
struct Hotel * regeist();
void in_information();
void out_information();
......................
阅读全部 | C残血流 贴于 2013年5月9日 19:46     hide bbsi
上一页 250 251 252 253 254 255 256 257 258 259 下一页