首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
void prtStarLine(int n)
{int  i=0;
 for(i=0;i<n;i++)  printf("*");
return 0;
}

int main(void)
{int n;
double x,y,z,w;

scanf("%d",n);
......................
阅读全部 | 小小白菜 贴于 2017年12月14日 19:41     hide bbsi
输入两个正整数m和n,求最大公约数和最小公倍数
阅读全部 | 不哈体 贴于 2017年12月11日 13:55     hide bbsi
#include<stdio.h>
int main()
{
double x,s;

printf("hewllo\n");


}
阅读全部 | 盘子里的午餐 贴于 2017年12月11日 11:55     hide bbsi
#include <stdio.h>

void main()
{
int a,b=322;
float x,y=8.88;
char cl='k',c2;
a=y;
x=b;
a=cl;
c2=b;
printf("%d,%f,%d,%c",a,x,a,c2);
......................
阅读全部 | 大大西瓜 贴于 2017年12月7日 15:04     hide bbsi
#include<stdio.h>
#include<string.h>
int main()
{
char str1[20],str2[20];
int num;
printf("num=1是小写换大写,num=2是大写换小写,num=0是推出\n\n");
while(1)
{

printf("num=");
scanf("%d",&num);
......................
阅读全部 | icl菜鸟 贴于 2017年12月5日 23:01     hide bbsi
# -*- coding: UTF-8 -*-

__author__ = 'sail'
a=20
i=0
while i<5:

    c=input("输入1-50其中一个数:")
    c=int(c)
    if a>c:
        print"输入数据过小"
    elif a<c:
......................
阅读全部 | sailstar 贴于 2017年11月18日 21:49     hide bbsi
#一个简单猜数字游戏

# -*- coding: UTF-8 -*-

__author__ = 'sail'
a=20
i=0
while i<5:

    c=input("输入1-50其中一个数:")
    c=int(c)#這个地方应该抛出异常
    if a>c:
......................
阅读全部 | sailstar 贴于 2017年11月18日 21:43     hide bbsi
<script type="application/ld+json"> 
"@context": {
"name" : "temperature",
"@type": "number",
"minimum":  0,
"maximum":  80,
"description" :  "a physical quantity that expresses the subjective perceptions of hot and cold",
"url" : "https://en.wikipedia.org/wiki/Temperature",
"unit":  "Celsius",
"number": 24
}
</script>
阅读全部 | jiki0011 贴于 2017年11月18日 19:56     hide bbsi
出现了error C2143: syntax error : missing ')' before 'constant'
error C2143: syntax error : missing ';' before 'constant'
fatal error C1004: unexpected end of file found错误 有那个大神帮忙处理下呗,以下是代码:
#include <stdio.h>
#include <string.h>
#define n 100

del(char n[100],int b,int k){
int i;
for(i=b;i<=strlen(n)-k;i++)
n[i]=n[i+k];
printf("删除%s位后最小的整数为:\n",n);
......................
阅读全部 | Haru, 贴于 2017年11月16日 21:00     hide bbsi
Dim i As Integer
Dim proc As Process()
 
'判断excel进程是否存在
If System.Diagnostics.Process.GetProcessesByName("excel").Length > 0 Then
    proc = Process.GetProcessesByName("excel")
    '取得名为excel进程个数,全部关闭
    For i=0 to proc.Length -1
        proc(i).Kill()
    Next
End If
proc = Nothing
阅读全部 | 无情浪子哥 贴于 2017年11月16日 16:34     hide bbsi
上一页 138 139 140 141 142 143 144 145 146 147 下一页