首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include<stdio.h>
int main()
{
FILE *fp;
char ch;
if((fp=fopen("tense","wt"))==NULL)
{
    printf("cannot open file\n");
getch();
exit(1);
}
printf("input sybol:");
......................
阅读全部 | gybj60943878 贴于 2012年3月10日 16:52     hide bbsi
void sort(int array[],int n)
{
   int i,j,k,t;
   for(i=0;i<n-1;i++)
   {
      for(j=i+1;j<n;j++)
          if(array[j]<array[i])
       t=array[i];array[i]=array[j];array[j]=t;   
   }
}
阅读全部 | a646404908 贴于 2012年3月6日 21:37     hide bbsi
#include<stdio.h>
int main()
{
   int i,j,k,n=0;
     for(i=1;i<=9;i++)
        for(j=1;j<=i;j++,n++)
    {    
       printf("%d*%d=%d\t",i,j,i*j);
         
            if(i==j)printf("\n");
     
     }
......................
阅读全部 | 风铃草1 贴于 2012年2月29日 01:54     hide bbsi
#include<stdio.h>
#include<stdlib.h>
 void main()
{
FILE *f_pic,*f_file,*f_finish;
char pic_name[20],file_name[20],finish_name[20],ch;
printf("请输入需要合成的图片和文件的名称:\n");
printf("图片:");
scanf("%s",pic_name);
printf("文件:");
scanf("%s",file_name);
printf("生成为:");
......................
阅读全部 | 玉面狂龙 贴于 2012年2月24日 04:52     hide bbsi
public partial class BusiView_Busi_Query : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Init_Page();
            BindData();
        }
    }

    private void Init_Page()
......................
阅读全部 | yjyuyu96 贴于 2012年2月20日 19:15     hide bbsi
int i=0;                                            
    int lines=0;
    int vertro=4,temp,times=0,times_inner=0;                            
    double coord,coord_x,coord_z;
    char* coord_line;
    FILE *f_mark;
    int wmark[1584]={0};
    int aj=0,cj=0,pj=0;                                            
    bool flag=TRUE;

    f_mark=fopen("mark1.txt","rb");                      
    int wj;                                                
......................
阅读全部 | share_ours 贴于 2012年2月13日 20:43     hide bbsi
#include   <stdio.h>
#include   <stdlib.h>
#include   <math.h>
void main()
{
    float   a[490][1200],b[1200000];  
    int   i=0;
    int   j=0;
    FILE   *fp,*fp1,*fp2;
  //打开原数据文件  写成剔除乱码后文件  数组文件
    if (   (fp=fopen( "f:\\chuli\\0.2 0.2.txt ", "r"))==NULL)
    {
......................
阅读全部 | zhanlantian 贴于 2012年2月10日 21:33     hide bbsi
#include<cstdio>
#include<cstring>
using namespace std;
int *str2int(char *str)
  {
      int i ,len=strlen(str);
      int *a=new int [(len+1)*sizeof(int)];
      for(i=0;i<len;i++)
      a[i]=(int)str[len-i-1]-48;
      return a;
  }
  int check(int *a,int n)
......................
阅读全部 | bofengqiye 贴于 2012年1月8日 07:53     hide bbsi
ASP.net开发的一个wab后台厂商的系统里面有个功能是费用录入模块。
    请问那个用GRIDVIEW怎么才能实现用文本框里的值(一个是交易编号,一个是时间来才查出金额),要用到自己创建的表格,但前提是(一个循环要实现数据库里两个不同表的字段)!!!(交易编号和时间是在文本框里显示的,而金额是再GRIDVIEW里实现的)and(交易编号的值是从另一个页面获取的,应该要做一个点击事件吧??)----------(交易编号和时间在一个表,金额在一个表)


请问谁能给点思路!!!或代码的书写!!谢了
阅读全部 | 谭祖爱 贴于 2012年1月7日 09:16     hide bbsi
#include <stdio.h>
#include <malloc.h>
struct students * create(int n);//链表的建立
void print(struct students *head);//链表的输出
struct students * del(struct students *head,int num);
struct students
{
    char name[20];
    int number;
    int sco;
    struct students *next;
};
......................
阅读全部 | xiaogongwei 贴于 2012年1月6日 05:57     hide bbsi
上一页 163 164 165 166 167 168 169 170 171 172 下一页