首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include <stdio.h>
#include <math.h>
void main()
{
int a,b,sum;
sum=a+b;
scanf("请输入两个整数a和b,%d,%d\n",a,b);
printf("sum is %d",sum);
}
 为什么运行通过结果却是错误的??、
阅读全部 | xuexue1280 贴于 2013年3月24日 20:00     hide bbsi
#include<stdio.h>
void main()
{
printf("hello world");
}
阅读全部 | guoq416 贴于 2013年3月24日 00:32     hide bbsi
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient; 

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
......................
阅读全部 | gbeixin 贴于 2013年3月22日 20:15     hide bbsi
#include<stdio.h>
#define LEN 100                     
int main()
{
char str[LEN];
fgets(stdin, LEN, stdin);
puts(str);
}
阅读全部 | 北辰风 贴于 2013年3月21日 17:49     hide bbsi
#include <stdio.h>

//获取公历年初至某整月的天数
int year_sumday(int year,int month)
{
    int sum=0;
    int rui[12]={31,29,31,30,31,30,31,31,30,31,30,31};
    int ping[12]={31,28,31,30,31,30,31,31,30,31,30,31};
    int ruiflag=0;
    if((year%4==0 &&year%100!=0) || year%400==0) ruiflag=1;
    for(int index=0;index<month-1;index++)
    {
......................
阅读全部 | wp231957 贴于 2013年3月21日 11:01     hide bbsi
#include <time.h>
#include <math.h>
#include <stdio.h>

int a[240] = {0};
int ss[1230] = {2, 3, 5, 7, 11, 13, 17, 19};

void Init()
{    //10000以内质数表,1229个
    int i, j, k = 8, temp;
    for (i = 23;k != 1230;i += 2)
    {
......................
阅读全部 | wp231957 贴于 2013年3月21日 10:03     hide bbsi
/*程序名称:学生成绩管理系统*/
/*程序设计者:致远          */
/*设计时间:2013-3-15       */


/**************************************************************************************************/
#include <stdio.h>
#include <string.h>
#define N  150
int temp;
struct student
{
......................
阅读全部 | 致远 贴于 2013年3月20日 19:10     hide bbsi
#include<stdio.h>
#include<string.h>
#include <stdlib.h>

int max_len(char *s[],int n);
int main (void)
{
int n , i;
char *s[10], str[10];
int count;
printf("n=");
scanf("%d",&n);
......................
阅读全部 | vip168 贴于 2013年3月17日 14:45     hide bbsi
#include<stdio.h>
#include<string.h>
#include <stdlib.h>

int max_len(char *s[],int n);
int main (void)
{
int n , i;
char *s[10], str[10];
int count;
printf("n=");
scanf("%d",&n);
......................
阅读全部 | 心寒 贴于 2013年3月16日 14:50     hide bbsi
#include<stdio.h>
#include<string.h>
#include <stdlib.h>

int max_len(char *s[],int n);
int main (void)
{
int n , i;
char *s[10];
int count;
printf("n=");
scanf("%d",&n);
......................
阅读全部 | 心寒 贴于 2013年3月16日 14:49     hide bbsi
上一页 260 261 262 263 264 265 266 267 268 269 下一页