首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
int main()
{
char c1, c2;
scanf("%c", &c1);
c2 = c1 + 32;
printf("%c\n", c2);
printf("%d\n", c2);
return 0;
}
阅读全部 | fuyumeng 贴于 2019年1月30日 17:58     hide bbsi
#include<string.h>
#include<stdio.h>
int main()
{
char string[100];
int i,length,letter=0,number=0,space=0,others=0;
gets(string);
length = strlen(string);
for (i = 0; i < length; i++)
{
if (string[i] >= 'A'&&string[i] <= 'Z' || string[i] >= 'a'&&string[i] <= 'z')
letter += 1;
......................
阅读全部 | fuyumeng 贴于 2019年1月30日 17:55     hide bbsi
#include<stdio.h>
#include<windows.h>
#include<conio.h>
#define border 20
int X = 1, Y = 1, end_x = 1, end_y = 1, food_x = border*3, food_y = border*3;
int start=0, end=0; 
int score = 0;
struct snake{   
int x;
};
struct snake_body{    //用来记录整个蛇身体的 
int x;
......................
阅读全部 | youxiaoxing 贴于 2019年1月27日 18:13     hide bbsi
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int get()
{
      int i=getchar();
      return i;
}//get
void bye()
{
      printf("bye");
      exit(0);
......................
阅读全部 | cstdio 贴于 2019年1月27日 18:06     hide bbsi
html代码:
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CSS Form Interactions</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<section>
  <h1>CSS表单交互</h1>
......................
阅读全部 | gedage 贴于 2019年1月25日 18:07     hide bbsi
#include<stdio.h>
int main()
{
int a;
int b;
int max;
scanf("%d%d",&a,&b);
max=(a>b)?a:b;
printf("max=%d\n",max);
return 0;


......................
阅读全部 | 影子—— 贴于 2019年1月16日 17:44     hide bbsi
#include<math.h>
#include<stdio.h>
main()
{
int a=1,b=1,c=1;
float i=0.0,d=0.0001;
while(fabs(1./a)>=fabs(d))
{
i=i+1/a;
if(b%2!=0)
c=-1;
else c=1;
......................
阅读全部 | zzz 贴于 2019年1月12日 22:08     hide bbsi
/*本程序统计输入的字符串取最长的一组并统计数字、字母、符号等的个数,版本v2019.01.10*/
/*本程序在windows系统,通过c-free 3.5.2程序编译*/
#include <stdio.h>
#define MAXLINE 1000

int get_line(char line[],int maxline);
void copy_line(char to[],char from[]);

int main()
{
    int len;
    int max;
......................
阅读全部 | 陈xx 贴于 2019年1月10日 18:38     hide bbsi
python中有没有方法实现下面的代码?
就是用变量代替函数名,使用变量名也能实现函数的功能。


def test1():
    print("----1----")

local_name = test1

local_name()
阅读全部 | eakit67 贴于 2019年1月7日 22:04     hide bbsi
<div class="container" id="app">
        <h1>复制图片</h1>
        <div class="input-group ma-b-10">
            <span class="input-group-addon" id="basic-addon3">粘贴</span>
            <input ref="input" type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
        </div>
        <div class="card ma-b-10">
            <div class="card-body">
                <h4 class="card-title">
                    获得base64数据
                </h4>
                 
......................
阅读全部 | gedage 贴于 2019年1月7日 11:40     hide bbsi
上一页 121 122 123 124 125 126 127 128 129 130 下一页