首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
/*
    This program shows the 3 dimensional model of the finite
    element mesh for brick elements.
  
                  Last Update 12/4/06

    SLFFEA source file
    Version:  1.5
    Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006  San Le

    The source code contained in this file is released under the
    terms of the GNU Library General Public License.
......................
阅读全部 | 小强VS小明 贴于 2017年1月2日 15:00     hide bbsi
#include <stdio.h>
#include <windows.h>
#include <string.h>

int main()
{
    int i,j,len,k,m;
    printf("\n\n");
    char* test="Now it will copping completed: ";
    len=(int)strlen(test);
    for (i=0;i<=100;i++)
    {
......................
阅读全部 | wp231957 贴于 2016年12月29日 21:28     hide bbsi
#include<stdio.h>
int c(int n)
{
int i;
if(n<0){
n=-n;
for(i=2;i<n/2;++i)
{if(n=i*i*i)
return 1;
}return 0;
}
else{
......................
阅读全部 | 天衣boy 贴于 2016年12月29日 20:34     hide bbsi
#include<stdio.h>
#include<math.h>
int main()
{
int count=0,i;
long last=0;//用来记录这个数的最后n位//
long num;
for(i=0;i<2000000;++i)
{
last=i;num=i;
while(num)
{
......................
阅读全部 | 天衣boy 贴于 2016年12月29日 15:15     hide bbsi
#include<stdio.h>
#include<math.h>
int main()
{
int count=0,i;
long last=0;//用来记录这个数的最后n位//
long num;
for(i=0;i<2000000;++i)
{
last=i;num=i;
while(num)
{
......................
阅读全部 | 天衣boy 贴于 2016年12月29日 15:15     hide bbsi
#include<stdio.h>
int n,m,a[999],b[999],c,c1;
int main(){
    scanf("%d%d",&n,&m);
    c=0;c1=0;
    for(int i=1;i<=n;i++){
        a[i]=i;
    }
    for(int i=1;i<=n;i++){
        if(a[i]!=0) c++;
        if(c==m){
            c1++;
......................
阅读全部 | 天衣boy 贴于 2016年12月28日 23:46     hide bbsi
#include<stdio.h>
int main()
{
    int n;
    int max;
    while(scanf("%d",&max)!=EOF)
    {
        while(scanf("%d",&n)!=EOF&&n)
            {
                if(n>max) max=n;
                else max=max;
            }
......................
阅读全部 | 天衣boy 贴于 2016年12月28日 22:35     hide bbsi
#include <math.h>
#include <stdio.h>

int p(int s)
{
    if ((int) sqrt((double) s) * (int) sqrt((double) s) == s) return 1;
    else return 0;
}

int main()
{
int i=0,j=0;
......................
阅读全部 | 天衣boy 贴于 2016年12月28日 21:47     hide bbsi
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

//-----------------------------
typedef struct __tag_data
{
    int x, y;
    int step;
} ElemType;

......................
阅读全部 | azzbcc 贴于 2016年12月26日 18:26     hide bbsi
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>

//-----------------------------
typedef struct __tag_data
{
    int x, y;
} ElemType;

ElemType elem_next(ElemType *data, int direction)
......................
阅读全部 | azzbcc 贴于 2016年12月26日 17:14     hide bbsi
上一页 80 81 82 83 84 85 86 87 88 89 下一页