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

int _Inverse(int n)  
{
    int m;
    for (m=0; n>0; n/=10)
        m = m*10 + n%10;
    return m;
}

main()
{
......................
阅读全部 | 天衣boy 贴于 2017年1月12日 22:11     hide bbsi
#include<stdio.h>
main()
{
double s=1,b=0;
int n,i,j;
scanf("%d",&n);
for(i=1;i<=n;++i){
for(j=1;j<=i;++j)
{
s=1.0/(s*i);}
b=s+b;
}
......................
阅读全部 | 天衣boy 贴于 2017年1月12日 22:01     hide bbsi
#include <iostream>
using namespace std;
int sb(int a)
{
a=a+1;
cnm(a);
return a;
}
int cnm(int a)
{
a=a-1;
return a;
......................
阅读全部 | 一の小菜鸟 贴于 2017年1月12日 12:24     hide bbsi
#include<stdio.h>
#include<string.h>
#include"pcap.h"
#include"Packet32.h"
#pragma pack(1)  //按一个字节内存对齐
#define IPTOSBUFFERS  12
#define ETH_ARP       0x0806 //以太网帧类型表示后面数据的类型,对于ARP请求或应答来说,该字段的值为0x0806
#define ARP_HARDWARE  1      //硬件类型字段值表示以太网地址
#define ETH_IP        0x0800 //协议类型字段表示要映射的协议地址,类型值为0x0800表示IP地址
#define ARP_REQUEST   1
#define ARP_REPLY     2
#define HOSTNUM       255
......................
阅读全部 | sumoer 贴于 2017年1月12日 09:29     hide bbsi
#include <stdio.h>
long fun(int n);
int main()
{
int  m;
scanf("%d", &m);
printf("The result is %ld\n", fun(m));
return 0;
 }
long fun(int n)
{
int i,result=1;
......................
阅读全部 | 天昊大师 贴于 2017年1月7日 09:37     hide bbsi
#include <stdio.h>
#include <string.h>
int max_len(char *s[],int n)
{
 char *t;
 int i;
 t=s[0];
 for(i=1;i<n;i++){
  if(strlen(s[i])>strlen(t)){
   t=s[i];
  }
 }
......................
阅读全部 | 天衣boy 贴于 2017年1月6日 08:57     hide bbsi
#include <stdio.h> 
  
int main() 

    int n; 
    FILE *pf = fopen("1.txt", "w+"); 
    if (!pf) 
    { 
        puts("open file error!"); 
        return -1; 
    } 
    while (true) 
......................
阅读全部 | 天衣boy 贴于 2017年1月6日 08:24     hide bbsi
#include<stdio.h>
int main()
{
    char *pMonth[] = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
    int n;
    scanf("%d", &n);
    if (n < 1 || n > 12)
    {
        printf("月份输入错误!\n");
    }
    else
    {
......................
阅读全部 | 天衣boy 贴于 2017年1月5日 21:07     hide bbsi
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int m;//记录字符串长度
int n;//记录字符串中的字符种类数
char map[256];//记录是哪几种字符
int count[256];//记录每种字符有多少个
int stack[1000];//递归用的栈,并记录当前生成的排列
void Make_Map(char *str) {//统计字符串的相关信息
    int s[256];
    int i;
    memset(s,0,sizeof(s));
......................
阅读全部 | 天衣boy 贴于 2017年1月4日 21:20     hide bbsi
* Created by hery on 2016/7/25.
*/
function initPrintActiveX(){
var div_ = document.createElement('div');
div_.style="display:none";
var object_=document.createElement('object');
object_.setAttribute("classid","clsid:AF33188F-6656-4549-99A6-E394F0CE4EA4");
object_.setAttribute("codebase","http://www.4Fang.net/4ff/sc_setup.exe");
object_.setAttribute("id","pazu");
object_.setAttribute("name","pazu");
var param_=document.createElement('param');
param_.setAttribute("name","License");
......................
阅读全部 | sanrain 贴于 2017年1月3日 17:56     hide bbsi
上一页 158 159 160 161 162 163 164 165 166 167 下一页