首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include"stdio.h"
int main(){
printf("hellow,world.\n");
return 0;
}
阅读全部 | hunterevil 贴于 2016年3月17日 13:05     hide bbsi
y==fabs(pow(x,2)-7*exp(x))+sqrt(3*pow(x,2)+sin(67.0/180*3.1415972));
阅读全部 | fengqixiyang 贴于 2016年3月12日 11:39     hide bbsi
rs[maxAccount].accNumber = accNumber;  
    strcpy(rs[maxAccount].accName, accName);                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          
    strcpy(rs[maxAccount].accPWD, accPWD);  
    rs[maxAccount].balance = cash;  
    strcpy(rs[maxAccount].flag, "0");
阅读全部 | 甜甜的我 贴于 2016年3月9日 14:33     hide bbsi
/**
 ============================================================================
 【问题描述】
 有这么一个速配电视节目。N位男士和N位女士要在摄像机前选出他们合适的伴侣。每位女士按照其对
 每位男士作为配偶的偏爱程度给每位男士排名次,每位男士也按照其对每位女士作为配偶的偏爱程度给每位
 女士排名次。这些名次不允许并列。然后每位男士将向心仪的对象求婚,经过"残酷"的竞争之后各自找到适
 合的伴侣。最开始的时候每位男士都还没有被任何一位女士拒绝。求婚环节会经过很多轮进行,每一轮:
 (1) 每位男士在还没有拒绝过自己的女士中选出自己认为最理想的一个,并向她求婚
 (2) 每位女士在所有这一轮中向她求婚的男士中选出自己认为最理想的一个,并不答应,也不拒绝。
 她把其余向她求婚的男士都婉言拒绝掉。经过了若干轮求婚之后,在某一轮,幸运的事情发生了:所有的女
 士都恰好有一个求婚者,所有的男士都找到一个心仪的对象。主持人将继续指出这个配对方式的神奇之处:
 没有任意的两个配对,比方说男士A和女士a配对,男士B和女士b配对,使得在A心目中b较a更理想,而且在
......................
阅读全部 | azzbcc 贴于 2016年3月5日 01:41     hide bbsi
#include<stdio.h>
void main()
{
int a,i;
int A[10];
printf("please input a nomber:\n");
scanf("%d",&a);
for(i=0;i<10;i++)
{
A[i]=a%2;
a=a/2;
}
......................
阅读全部 | 我不信 贴于 2016年3月3日 19:30     hide bbsi
Option Explicit
Private Const 横 = 78                       '横竖格子数
Private Const 竖 = 45
Private Const 灰 = 8421504                  '线框颜色
Private Const 死 = 16777215                 '死颜色
Private Const 生 = 65280                    '生颜色
Dim z(横 + 1, 竖 + 1) As Byte               '目标数组
Dim l(横 + 1, 竖 + 1) As Byte               '中间数组
Dim hd As Long                              '格子大小,横竖
Dim ld As Long
Dim js As Long                              '演变回合
Private Sub Form_Click()
......................
阅读全部 | zhuxiao6584 贴于 2016年2月15日 23:21     hide bbsi
//2016-2-12
//zhaoyu
//Gmail:zhaoyu1995.com@gmail.com
//Language: C
//Platform:Code::Blocks
#include <stdio.h>
#include <windows.h>
#include <stdlib.h>
#include <time.h>

typedef struct snake
{
......................
阅读全部 | hacker_ZY 贴于 2016年2月14日 23:24     hide bbsi
#include <stdio.h>
int fib(int n)
{
if(n==1 || n==2)
return 1;
else
return fib(n-1)+fib(n-2);

}

int main()
{
......................
阅读全部 | 默儿、、 贴于 2016年2月12日 10:20     hide bbsi
? 剟?   sss                                                                                                             ? 剟?   sss                                                                                                             ? 剟?   sss                                                                                                             ? 剟? 
阅读全部 | verizon 贴于 2016年2月5日 11:05     hide bbsi
int[] num = new int[] { 2, 4, 6, 7, 1, 9, 10, 5, 0, 3 };
            int i;
            for (i = 0; i <10; i++)
            {
                if (num[i] == 10)
                {
                    break;
                }
            }
            if (i == 10)
            {
                Console.WriteLine("没有找到");
......................
阅读全部 | 贾鹏程 贴于 2016年1月28日 22:53     hide bbsi
上一页 94 95 96 97 98 99 100 101 102 103 下一页