首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include "stdio.h"
#include<math.h>
main()
{
    double y;
    int x,m;
    for(y=1;y>=-1;y-=0.1)
    {
        m=acos(y)*10;
        for(x=1;x<m;x++)
        printf(" ");
        printf("%d",x);
......................
阅读全部 | 淮海浪滔滔 贴于 2011年11月10日 07:34     hide bbsi
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

'''
检测XP系统进程和系统服务
把可疑的进程和服务列出来(以我自己的电脑为参考)
启动项检测挺麻烦的,我的电脑上只有3个(只有一个ctfmon.exe是必需的,另两个是google相关的update程序),到“CCleaner-工具-启动”查看和设置可以了
使用本脚本可以一定程度上检测恶意程序,追求更高的安全还得靠杀毒软件
2011.11.07 BCCN.静夜思
'''

import os
......................
阅读全部 | 静夜思 贴于 2011年11月7日 12:35     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: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
SetSel功能?
阅读全部 | ky2406100230 贴于 2011年11月3日 06:26     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
上一页 307 308 309 310 311 312 313 314 315 316 下一页