#include<stdio.h>
#include<malloc.h>
#include<stdlib.h>
#include<string.h>
typedef struct student
{
int num;
int age;
char pc[20];
char name[20];
struct student *link;
}stud;
......................
阅读全部
|
zyx1989
贴于 2011年11月6日 02:39
hide
bbsi
#include<stdio.h>
#include<malloc.h>
#include<stdlib.h>
#include<string.h>
typedef struct student
{
int num;
int age;
char pc[20];
char name[20];
struct student *link;
}stud;
......................
阅读全部
|
zyx1989
贴于 2011年11月6日 02:38
hide
bbsi
//程序3:函数fun(a,n)是用来求:s=a+aa+aaa+aaaa+aa...a(最后一个加数的位数为n)
//的值。请在横线上填写若干表达式,将函数补充完整。
#include <stdio.h>
#include <math.h>
long int fun(int a,int n)
{int count=1;
long int sn=0;
while (count<=n)
{sn=sn+a;
a=a*10+a;
count++;
}
......................
阅读全部
|
suimengerfei
贴于 2011年11月6日 00:15
hide
bbsi
# include <stdio.h>
# define no 0
# define yes 1
int main(void)
{
long num; //要检查的数
long div; //潜在的除数
long lim; //限制的值
int prime; //质数 素数
printf("Please enter limit to values to be checked:");
printf("Enter q t quit.\n");
......................
阅读全部
|
ad456aaa
贴于 2011年11月3日 23:17
hide
bbsi
#include <stdio.h>
int main(int argc, char* argv[])
{
const int N=10;
const int M=3;
const int S=1;
int array[N];
for(int i=0;i<N;++i)
array[i]=i+1;
printf("%d个人围成一圈\n",N);
printf("从1开始,逢%d退出(模拟置0标示退出),剩余%d人时退出。\n\n模拟源数组:\n",M,S);
for(int i=0;i<N;++i)
......................
阅读全部
|
longlong89
贴于 2011年11月3日 21:26
hide
bbsi
#define H 40
#define W 80
#define S .1
#define A(x) ((x)*3.1416/180)
#include<iostream>
#include<cstdlib>
#include<cmath>
int main() {
double a=-72,x=0,y=0;
char b[H][W];
int i,j;
......................
阅读全部
|
blue176
贴于 2011年11月3日 17:32
hide
bbsi
//#ifndef STACK_H
#define STACK_H
#include<iostream>
using namespace std;
template<typename T> class stack;
template <class T>
class stacknode
{
friend class stack<T>;
T data;
stacknode *next;
stacknode(const T& t)
......................
阅读全部
|
潇洒刘家郎
贴于 2011年11月2日 04:47
hide
bbsi
/* just a test */
#include <stdio.h>
int main(int argc, char *argv[]){
printf("Hello world");
return 0;
}
阅读全部
|
yl291145401
贴于 2011年11月1日 02:36
hide
bbsi
<html>
<head>
<title>Mandango - The Macho Movie Ticket Finder </title>
<script type="text/javascript">
var seats = [ false,true,false,true,true,true,false,true,false ];
......................
阅读全部
|
维基解密
贴于 2011年11月1日 00:37
hide
bbsi