首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
/*
 * Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy)
 * Copyright (c) 2005 - 2006 CACE Technologies, Davis (California)
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
......................
阅读全部 | Administraor 贴于 2019年3月23日 20:25     hide bbsi
/*
 * Copyright (c) 1999 - 2005 NetGroup, Politecnico di Torino (Italy)
 * Copyright (c) 2005 - 2006 CACE Technologies, Davis (California)
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * 1. Redistributions of source code must retain the above copyright
 * notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
......................
阅读全部 | Administraor 贴于 2019年3月23日 19:56     hide bbsi
确定 分数线个的好几天
阅读全部 | 星星归去 贴于 2019年3月19日 23:03     hide bbsi
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
#define MAX 100
typedef char ElemType;
//定义栈结构体
struct stack
{
    ElemType elem[MAX];
    int top;//顶部下标
};
//初始化栈
......................
阅读全部 | 麦子po 贴于 2019年3月19日 19:30     hide bbsi
#include<stdio.h>
int main(){
char a=0;
int b=0;
while(++a>0);
printf("有有符号的char最大整数是%d\n",a-1);//为什么输出谁-129,不是127.
while(++b>0);
printf("有符号的int最大整数是%d\n",b-1);
char d=127;
d=d+1;
printf("%d\n",d);
d=d-1;
......................
阅读全部 | 堕落之地 贴于 2019年3月11日 15:11     hide bbsi
/**
* @Title:getPayparams
* @Description:根据支付方式获取相应的支付参数
* @param orderMain
* @param payType
* @param request
* @return
* @throws Exception Result<Map<String,Object>> 返回类型
*/
public Result<Map<String, Object>> getPayparams(OrderMain orderMain, String payType, HttpServletRequest request) throws Exception{
Result<Map<String, Object>> result = new Result<Map<String, Object>>();
switch (payType) {
......................
阅读全部 | glj188350035 贴于 2019年3月4日 11:44     hide bbsi
#include<math.h>
#include<stdio.h>
main()
{
    int a=1,b=1,c=1;
    float i=0.0,d=0.0001;
    while(fabs(1./a)>=fabs(d))
    {
        i=i+1/a;
        if(b%2!=0)
        c=-1;
        else c=1;
......................
阅读全部 | 单维坤 贴于 2019年2月24日 22:52     hide bbsi
#include<stdio.h>
#include<string.h>
#include<math.h>
#define EPSILON 0.1
int main()
{
    double num1;
    int flag,v,w,x,y,z,len;
    char a[20]= {0};
    double b[20]= {0};
    for(int i=0; i<20; i++)
    {
......................
阅读全部 | 艾莉莎 贴于 2019年2月23日 15:39     hide bbsi
#include <stdio.h>
#include <stdlib.h>
int main() 
{
    FILE * fp ;
    char ch , filename[10] ;
    printf ( "请输入所用的文件名" ) ;
    scanf  ( "%s" , filename ) ;
    if ( ( fp = fopen ( filename , "w" ) ) == NULL )
        {
        printf ( "无法打开此文件\n" ) ;
        exit ( 0 ) ;
......................
阅读全部 | light小七 贴于 2019年1月31日 12:32     hide bbsi
#include<stdio.h>
int main()
{
void bubble_sort(int a[10]);
int s[10],i;
for(i=0;i<=9;i++)
{
scanf("%d",&s[i]);
}
bubble_sort(s);
for(i=0;i<=9;i++)
{
......................
阅读全部 | fuyumeng 贴于 2019年1月30日 18:05     hide bbsi
上一页 55 56 57 58 59 60 61 62 63 64 下一页