首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
void main()
{
    int i;
    struct student
   {
       int num;
       char name[4];
       int  tel;
       char add[10];
   }stu[3];
   for(i=0;i<3;i++)
......................
阅读全部 | 爱追求 贴于 2013年11月2日 16:47     hide bbsi
#include <stdio.h>
#include <time.h>
void main()
{
int a, b;
struct tm *tmptr;
time_t secnow;
time(&secnow);
tmptr = localtime(&secnow);
int hour1, min1;
hour1 = tmptr->tm_hour;
min1 = tmptr->tm_min;
......................
阅读全部 | LQASD 贴于 2013年10月31日 23:05     hide bbsi
#include <stdio.h>
#include <time.h>
void main()
{
int a, b;
struct tm *tmptr;
time_t secnow;
time(&secnow);
tmptr = localtime(&secnow);
int hour1, min1;
hour1 = tmptr->tm_hour;
min1 = tmptr->tm_min;
......................
阅读全部 | LQASD 贴于 2013年10月31日 23:04     hide bbsi
main()
{    
     float x,y;
     printf("x=");
     scanf("%f",&x);
     if(x<0)  y=0;
     else
         if(x<10)  y=x;
         else
             if(x<20) y=10;
             else y=-0.5*x+20;
       printf("y=%f,",y);
......................
阅读全部 | 仌深蓝 贴于 2013年10月30日 17:50     hide bbsi
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

......................
阅读全部 | yuzhen_12551 贴于 2013年10月28日 15:56     hide bbsi
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;

......................
阅读全部 | yuzhen_12551 贴于 2013年10月28日 15:55     hide bbsi
#include<iostream>
using namespace std;
                                                                               
int main() 
{       
int i;
const double pi=3.1415926;
cout<<"请输入以下计算编号:1,长方形面积 。2,圆的面积。3,正方形的面积。\n";
cin>>i;
if (i>=3&&i<=0)
cout<<"你TM在玩我?!只能输入1到3的任一整数"<<endl;
switch(i)
......................
阅读全部 | 我辈年轻 贴于 2013年10月25日 21:58     hide bbsi
headScale
upScale
waistScale
armWidth
legWidth
breastScale
阅读全部 | q108208 贴于 2013年10月24日 21:37     hide bbsi
#include "stdio.h"
#include "malloc.h"
#define MaxSize 100
typedef char ElemType;

typedef struct node
{
ElemType data;
struct node *lchild;
struct node *rchild;
}BTNode;
void CreateBTNode(BTNode * &b,char *str)
......................
阅读全部 | linlin0987 贴于 2013年10月24日 20:31     hide bbsi
求翻译以下c#代码,谢谢!
string hdcontrolurl = "http://tc.hd.xiaomi.com/hdget?callback=hdcontrol";
         request = WebRequest.Create(hdcontrolurl) as HttpWebRequest;
         request.CookieContainer = cookieContainer;
         request.Method = "GET";
         request.Host = "tc.hd.xiaomi.com";
         request.UserAgent = "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.62 Safari/537.36";
         response = (HttpWebResponse)request.GetResponse();
         Stream instream = response.GetResponseStream();
         sr = new StreamReader(instream, encoding);
         content = sr.ReadToEnd();

......................
阅读全部 | LGPLGP 贴于 2013年10月18日 23:00     hide bbsi
上一页 236 237 238 239 240 241 242 243 244 245 下一页