#include <stdio.h>
#include <math.h>
int main(void)
{
float x0, x1, x2, y0, y1, y2;
do
{
printf("Please input x1, x2: ");
scanf("%f,%f", &x1, &x2);
y1 = x1 * x1 * x1 - 3 * x1 * x1 + x1 + 1 = 0;
......................
阅读全部
|
LovelyFellas
贴于 2018年3月20日 09:59
hide
bbsi
#include<stdio.h>
#define maxsize 100
typedef struct{
int num;
float score;
}stu;
typedef stu datatype;
typedef struct{
datatype data[maxsize];
int length;
}seqlist;
void creatlist(seqlist *l)
......................
阅读全部
|
艺雯
贴于 2018年3月18日 11:33
hide
bbsi
# include <stdio.h>
void main()
{
int x,y,m;
printf("input two integers:");
scanf_s("%d%d",&x,&y);
m=(x>y)?x:y;
printf("max=%d\n",m);
}
阅读全部
|
亚立山大西洋
贴于 2018年3月9日 21:32
hide
bbsi
//#include "header.h"?? //Anycodes includes the head file by default, needn't cancle the notation.
#include <stdio.h>
#include <stdlib.h>
int main()
{
int max(int x,int y);
int a,b,c,e,f;
scanf("%d,%d,%d",&a,&b,&c);
e=max(a,b);
f=max(e,c);
printf("max=%d\n",f);
return 0;
......................
阅读全部
|
Ruiniou
贴于 2018年3月9日 21:32
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 10
int main()
{
char str[MAX];
int i=0;
int count=6;
int strIndxe=-1; //记录要删除该数字的下标
char Seachstr[MAX];
printf("请输入6个字符:");
......................
阅读全部
|
CAT119
贴于 2018年2月21日 00:45
hide
bbsi
# include <stdio.h>
# include <math.h>
int main (void)
{
int a =1;
int b =5;
int c =6;
double delta;
double x1;
double x2;
......................
阅读全部
|
william2011
贴于 2018年2月1日 13:05
hide
bbsi
# include <stdio.h>
# include <math.h>
int main (void)
{
int a =1;
int b =5;
int c =6;
double delta;
double x1;
double x2;
......................
阅读全部
|
诗情
贴于 2018年1月28日 21:56
hide
bbsi
#include<stdio.h>
int main()
{
int n,m,i,j,count,flag,count1;
double sum,avg,sum1,avg1,b[100];
int a[100][100];//i&m j&n
while(scanf("%d%d",&n,&m)!=EOF)
{
sum=0;
avg=0;
flag=0;
count1=0;
......................
阅读全部
|
洛秋
贴于 2018年1月27日 13:22
hide
bbsi
此代码会有不足之处或者需要改进的地方!请各位不了手下留情!多多提醒我改进的地方。那么有劳各位费一点时间运行一下我的代码!想交流想法的大神或者尬聊的各位多多欢迎评论。
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include <windows.h>
#include <conio.h>
//建立结构体
struct Student_n //学生的自然信息
{
int iNumber;
char cName[20];
......................
阅读全部
|
icl菜鸟
贴于 2018年1月23日 14:33
hide
bbsi