首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include<stdio.h>
int main()
{
int i,n;
float sum=0;

printf("请输入所需要前n项和: ");
scanf("%d",&n);
n=2*n;
for(i=2;i<=n;i+=2)
{
sum=sum+1.0/i;
......................
阅读全部 | 跆拳勇士 贴于 2017年7月21日 23:38     hide bbsi
#include<stdio.h>
/*in 2 out,countinue space 2 single space*/
main()
{
int c, np;
// c=getchar();
np = 0;
while ((c = getchar()) != EOF)
{

while (c == ' ')/*filter ' '*/
{
......................
阅读全部 | 巡山王 贴于 2017年7月19日 21:20     hide bbsi
#include<stdio.h>
/*count space,\t,\n*/
main()
 {
  int c,nb,nt,nl;
  nb=nt=nl=0;
  while((c=getchar())!=EOF){
  if(c==' ')
  ++nb;
  else if(c=='\t')
  ++nt;
  else if(c=='\n')
......................
阅读全部 | 巡山王 贴于 2017年7月19日 00:46     hide bbsi
//自学中...无授课老师,拜托大神帮忙看看~
#include<stdio.h>
#include<time.h>
#include<math.h>
clock_t start,stop;
double duration;
#define MAXN 10
/*多项式最大相熟,即多项式阶乘+1*/
double f1(int n,double a[],double x);
double f2(int n,double a[],double x);
int main()
{
......................
阅读全部 | senstitive 贴于 2017年7月17日 09:00     hide bbsi
/************2017.7.5上午***********/
/*制作简单的英汉电子词典*/
#include <stdio.h> 
#include <string.h>
#include <stdlib.h> 
char A[100][20];
char E[100][20];//英文 
char C[100][20];//中文 
int count;
int display();
void search();
void modify();
......................
阅读全部 | bobotu 贴于 2017年7月7日 14:59     hide bbsi
#include<stdio.h>
void main()
{
printf("hello world");
}
阅读全部 | youngblood 贴于 2017年7月5日 20:30     hide bbsi
#include<lcd.h>运行时打不开,如何添加?和 keil 版本有关吗?
阅读全部 | wangke68 贴于 2017年7月4日 08:41     hide bbsi
求大神帮忙啊 愁死啦
#include<iostream>
using namespace std;
#include<stdlib.h>
#include <time.h>
#include<string.h>
#define SIZE 4
typedef struct Car1
{
    char number[15];
    int artime;    
    int letime;
......................
阅读全部 | 卡萨丁1234 贴于 2017年7月3日 22:00     hide bbsi
求大神帮忙啊 愁死啦
#include<iostream>
using namespace std;
#include<stdlib.h>
#include <time.h>
#include<string.h>
#define SIZE 4
typedef struct Car1
{
    char number[15];
    int artime;    
    int letime;
......................
阅读全部 | 卡萨丁1234 贴于 2017年7月3日 22:00     hide bbsi
#include<stdio.h> /*引用库函数*/
#include<stdlib.h>
#include<ctype.h>
#include<string.h>
typedef struct /*定义结构体数组*/
{
char num[20]; /*学号*/
char name[10]; 
int Cnum;
int Enum;
int Mnum;}Student;
Student stu[80]; /*结构体数组变量*/
......................
阅读全部 | DTIX 贴于 2017年7月2日 23:06     hide bbsi
上一页 71 72 73 74 75 76 77 78 79 80 下一页