摘要:
1、输入球的中心点和球上某一点的坐标,计算球的半径和体积。 1 #include<iostream> 2 #include<math.h> 3 using namespace std; 4 #define Pi 3.1415926 5 6 int main(){ 7 double x,y,z; 8 阅读全文
摘要:
1、打印所有不超过n(n<256)的,其平方。如11*11=121。 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 int main(){ 6 int n=0; 7 string s=""; 8 for(int 阅读全文
摘要:
1、 某人有8角的邮票5张,1元的邮票4张,1元8角的邮票6张,用这些邮票中的一张或若干张可以得到多少中不同的邮资? 1 #include<iostream> 2 using namespace std; 3 4 int found(double x,double p[]){ 5 for(int i 阅读全文
摘要:
1、编写程序,计算下列分段函数y=f(x)的值。 y= -x+2.5 0<= x <2 y=2-1.5(x-3)(x-3) 2<= x <4 y=x/2-1.5 4<= x <6 1 #include<iostream> 2 using namespace std; 3 4 int main(){ 阅读全文
摘要:
1、 请输入高度h,输入一个高为h,上底边长为h的等腰梯形(例如h=4,图形如下)。 **** ****** ******** ********** 1 #include<iostream> 2 using namespace std; 3 4 int main(){ 5 int h; 6 cout 阅读全文
摘要:
1、 输入任意4个字符(如:abcd),并按反序输出(如:dcba) 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 int main(){ 6 7 string str; 8 cout<<"please inpu 阅读全文
摘要:
一。 1. Android 四大組件 Activity , Service , BroadcastReceiver ,ContentProvider 2. 多個Activity組成棧,當前Activity处于最顶层 3. setTheme(int resid)可以用来设置窗口风格 二。 1. Ser 阅读全文
摘要:
最近突然想往算法方向走走,做了做航电acm的几道题 二话不说,开始 航电acm 1002 题主要是处理长数据的问题,算法原理比较简单,就是用字符数组代替int,因为int太短需要处理的数据较长 下面是问题描述: Problem Description I have a very simple pro 阅读全文
摘要:
主要完成的是在网页上 上传一张图片到服务器 我搜出来的上传文件代码都特别复杂,对于初学者来说,先解决能上传的问题才最重要,并不需要特别多的功能,仅适合不会上传的初学者,大神请绕路,错误请指出,谢谢 view内容(由于是从项目中直接拷贝出来的,需要整理才可使用,看关键的就好了): 图片: 代码: 项目 阅读全文