首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
int main()
{
int a,b,c,max;
printf("Please input a,b,c:\n");
scanf("%d,%d,%d",&a,&b,&c);   //输入时以逗号为分隔符
max=a;
if (max<b) max=b;
if (max<c) max=c;
printf("The largest number is:%d\n",max);
return 0;
}
......................
阅读全部 | tigerball 贴于 2013年6月10日 20:34     hide bbsi
#include<stdio.h>
int main()
{
printf("******************************\n\n");
printf("V e r y   g o o d !\n\n");
printf("******************************\n\n");
return 0;
}
阅读全部 | tigerball 贴于 2013年6月10日 19:58     hide bbsi
#include <stdio.h>
//主函数
int main()
{
int max(int x,int y);
int a,b,c;
scanf("%d,%d",&a,&b);   //输入变量 a和 b的值 ,"&a"是 a的地址 
c=max(a,b);
printf("max=%d\n",c);
return 0;

//求两个整数中的较大者的 max函数
......................
阅读全部 | tigerball 贴于 2013年6月10日 19:47     hide bbsi
#include<stdio.h>
int main()
{
  printf("This is a C program.\n");
  return 0;
}

// 另外两个例子

#include<stdio.h>
int main()
{
......................
阅读全部 | tigerball 贴于 2013年6月10日 18:18     hide bbsi
#include<stdio.h>
int main()
{
int a,b,sum;
a=123;
b=456;
sum=a+b;
printf("sum is %d\n",sum);    // "%d"是指定的输出格式,d表示用“十进制整数”形式输出
return 0;
}
阅读全部 | tigerball 贴于 2013年6月10日 18:16     hide bbsi
/*
程序功能:构造一个合格的密码串
条件一、长度在8-16位(含8、16)
条件二、密码至少应该由以下4部分中的3部分组成
1、A-Z
2、a-z
3、0-9
4、!@#¥%^&
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
......................
阅读全部 | wp231957 贴于 2013年6月7日 12:28     hide bbsi
#include <pic.h>
#include "LCD1602.h"
#include "DS18B20.h"
 __CONFIG(0X1832);
#define uchar  unsigned char 
#define  uint unsigned int
#define KEY1     RC4
#define KEY2     RC5  
#define KEY3     RC6 
#define KEY4     RC7
#define led     RD1
#define BEE     RD2
......................
阅读全部 | Libur 贴于 2013年6月7日 00:29     hide bbsi
#include<stdio.h>
void main()
{
printf("HELLO! WORLD!!\n");

}
阅读全部 | iloveyoub 贴于 2013年6月6日 00:54     hide bbsi
#include <graphics.h>
#include <conio.h>
#include<mmsystem.h>
#pragma comment(lib,"winmm.lib")
void ShowPlate();
void PlayGame();
bool flag=true;
int arr[16][16];
void main()
{
    mciSendString("play 高山流水.mp3",0,0,0);
initgraph(680,680);     //划定屏幕大小为680  680
......................
阅读全部 | 单纯的小孩 贴于 2013年6月3日 16:45     hide bbsi
'近日有本论坛网友问:DataGridView如何实现列标头带数据筛选功能,就象Excel高级筛选功能一样
'今晚正好闲着没事,加之以前也没用到过这个需求,所以就写了个模拟功能,供各位坛友酌情参考。
'VB.NET 2008 环境
'新建一个项目后,只需在Form1中拉一个DataGridView,一个ComboBox,然后将下面代码复制粘贴即可,其它什么也不用做

Public Class Form1
    Dim SelectedCol As Integer = 0, IsFindit As Boolean = True
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        DataGridView1.ColumnCount = 6
        DataGridView1.Rows.Add(10)
        DataGridView1.AllowUserToAddRows = False
        For i As Integer = 0 To Me.DataGridView1.Columns.Count - 1
......................
阅读全部 | 不说也罢 贴于 2013年5月31日 20:02     hide bbsi
上一页 252 253 254 255 256 257 258 259 260 261 下一页