码迷,mamicode.com
首页 >  
搜索关键字:float    ( 12549个结果)
【ThinkingInC++】7、空指针
/** * 功能:空指针各种 * 时间:2014年8月10日11:00:40 * 作者:cutter_point */ #include using namespace std; int main() { void* vp; char c='c'; int i=1; float f=2.0; double d=9.7; vp=&c; ...
分类:编程语言   时间:2014-08-10 13:05:20    阅读次数:231
rwkj 1309
#include int main(){ float a,b,c,d,x,y,max,min; max=10; min=-10; scanf("%f%f%f%f",&a,&b,&c,&d); { x=(max+min)/2; y=a*...
分类:其他好文   时间:2014-08-10 12:48:50    阅读次数:297
rwkj 1308
#includemain(){ float x=2.5,y,x1=2.5,a,b,c,d,max,min; scanf("%f%f%f%f",&a,&b,&c,&d); do { y=x-(a*x*x*x+b*x*x+c*x+d)/(3*a*x*x+2*b*x+...
分类:其他好文   时间:2014-08-10 12:47:30    阅读次数:186
java 中值传递和引用传递(转)
java中给函数传递参数的方式有两种:值传递和引用传递。一般而言,基本类型是值传递;引用类型是引用传递。但传值时到达发生了什么?1.基本类型8个基本类型(byte,short,int,long,float,double,char,boolean)是值传递. 1 public class ValueT...
分类:编程语言   时间:2014-08-10 10:20:30    阅读次数:361
值传递和引用传递
java中给函数传递参数的方式有两种:值传递和引用传递。一般而言,基本类型是值传递;引用类型是引用传递。但传值时到达发生了什么?1.基本类型8个基本类型(byte,short,int,long,float,double,char,boolean)是值传递. 1 public class ValueT...
分类:其他好文   时间:2014-08-10 01:45:20    阅读次数:176
rwkj 1284 ------nyist 101 两点距离
101两点距离时间限制:3000 ms | 内存限制:65535 KB 难度:1描述 输入两点坐标(X1,Y1),(X2,Y2)(0#include main(){ int N ; float a,b,c,d; double s; scanf("%d\n",&N);...
分类:其他好文   时间:2014-08-09 21:12:59    阅读次数:460
【android】模拟点击某个指定坐标作用在View上
/** * 模拟点击某个指定坐标作用在View上 * @param view * @param x * @param y */ public void clickView(View view,float x,float y) { long downTime = SystemClock.uptimeMillis(); final MotionEvent downE...
分类:移动开发   时间:2014-08-09 18:49:28    阅读次数:276
52.从键盘上输入若干学生成绩(成绩在0~100之间),计算平均成绩,并输出低于平均分的学生成绩,用输入负数结束输入
//1、建立一个for循环用于输入数据,设置退出条件//2、算出平均成绩#includeusing namespace std;int main(){ int Score,sum=0,k=0; int a[100]; float Average; cout>Score; ...
分类:其他好文   时间:2014-08-09 18:13:39    阅读次数:549
P162
#include #include main() { struct objects{ char name[20]; int size; char color[10]; float weight; float height; }; struct objects obj1; struct objects *p; p=&obj1; strcpy(obj1.nam...
分类:其他好文   时间:2014-08-09 11:49:17    阅读次数:277
jQuery Vlidate 示例
* {  font-family: Verdana;font-size: 96%; } label {width: 10em;float: left;}    label.error {float: none;color: red; padding-left: .5em;vertical-align: top;}    p{clear: both;}.submit {margin-left:...
分类:Web程序   时间:2014-08-09 11:38:37    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!