首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <time.h>
#include <math.h>
#include <stdio.h>

int a[240] = {0};
int ss[1230] = {2, 3, 5, 7, 11, 13, 17, 19};

void Init()
{    //10000以内质数表,1229个
    int i, j, k = 8, temp;
    for (i = 23;k != 1230;i += 2)
    {
......................
阅读全部 | wp231957 贴于 2013年3月21日 10:03     hide bbsi
/*程序名称:学生成绩管理系统*/
/*程序设计者:致远          */
/*设计时间:2013-3-15       */


/**************************************************************************************************/
#include <stdio.h>
#include <string.h>
#define N  150
int temp;
struct student
{
......................
阅读全部 | 致远 贴于 2013年3月20日 19:10     hide bbsi
#include<stdio.h>
#include<string.h>
#include <stdlib.h>

int max_len(char *s[],int n);
int main (void)
{
int n , i;
char *s[10], str[10];
int count;
printf("n=");
scanf("%d",&n);
......................
阅读全部 | vip168 贴于 2013年3月17日 14:45     hide bbsi
#include<stdio.h>
#include<string.h>
#include <stdlib.h>

int max_len(char *s[],int n);
int main (void)
{
int n , i;
char *s[10], str[10];
int count;
printf("n=");
scanf("%d",&n);
......................
阅读全部 | 心寒 贴于 2013年3月16日 14:50     hide bbsi
#include<stdio.h>
#include<string.h>
#include <stdlib.h>

int max_len(char *s[],int n);
int main (void)
{
int n , i;
char *s[10];
int count;
printf("n=");
scanf("%d",&n);
......................
阅读全部 | 心寒 贴于 2013年3月16日 14:49     hide bbsi
int index=0;
void dec2yyy(int yyy,int source,char* bin)
{
    if(source==0) return;
    dec2yyy(yyy,source/yyy,bin);
    if((source%yyy)<10) bin[index]=(char)(source%yyy+0x30);
    else bin[index]=(char)(source%yyy+0x37);
    index++;
}
阅读全部 | wp231957 贴于 2013年3月15日 09:07     hide bbsi
#include <stdio.h>
void hanoi(int n, char A, char B, char C) {
if(n == 1) {
printf("Move sheet %d from %c to %c\n", n, A, C);
}
else {
hanoi(n-1, A, C, B);
printf("Move sheet %d from %c to %c\n", n, A, C);
hanoi(n-1, B, A, C);
}
}
int main() {
......................
阅读全部 | 忧伤的小王子 贴于 2013年3月14日 01:29     hide bbsi
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])

    while(1){
    int y,m,d;
    int mon[12]={31,28,31,30,31,30,31,31,30,31,30,31};
    int n,N;
    cin>>y>>m>>d;
......................
阅读全部 | woaihe2728 贴于 2013年3月14日 00:29     hide bbsi
double price, totalPrice, discount, discountedPrice;
            int quantity;
            const double d = 0.85f;
            price = double.Parse(textBox2.Text);
            quantity = int.Parse(textBox3.Text);
            totalPrice = price * quantity;
            textBox4.Text = totalPrice.ToString();
阅读全部 | 小小袁 贴于 2013年3月13日 14:39     hide bbsi
一.
#include<stdio.h>
main()
{
int a=5,c=4,b=5;
a||(b=a+c)&&c;
printf("%d\n",a||(b=a+c)&&c);
printf("%d %d %d\n",a,b,c);
a&&(b=b+1)||(c=b+1);
printf("%d\n",a&&(b=b+1)||(c=b+1));
printf("%d %d %d",a,b,c);
}
......................
阅读全部 | 魔道无敌 贴于 2013年3月12日 16:14     hide bbsi
上一页 265 266 267 268 269 270 271 272 273 274 下一页