小编Edm*_*jas的帖子

android编辑文本使文本更大

当用户输入我的edittext时,文本有点小,我喜欢这个更大可能是20-25 sp这样做的最佳方式是什么?

android android-edittext android-textattributes

0
推荐指数
1
解决办法
1万
查看次数

通过java中的索引对arraylist的arraylist进行排序

我有一个arraylist的arraylist,每个内部arraylist包含2个值,第一个是整数,第二个是字符串,所以基本上它看起来像:{5,some text},{12,some more},{3,甚至更多的文本}等,我想做的是把它排序,使它按最大整数到最小的降序排序,所以前面的例子看起来像:{12,更多文字},{5,一些text},{3,甚至更多文字},任何帮助都会提前感谢

java android arraylist

0
推荐指数
1
解决办法
2002
查看次数

使用C++中的指针通过引用传递数组

在使用指针和引用的一些新领域中,我试图通过引用将数组传递给使用指针的函数,但无论我尝试什么,我都会遇到错误,我确信问题很容易解决,但我只是似乎无法绕过它,任何人都可以看到我犯的错误?任何帮助都会有很长的路要走

#include<iostream>
#include<cmath>
#include <iomanip>
#include <cstdio>   
#include <cstdlib>
#include <new>

using namespace std;

//Inline function 
inline double getFahrenheit(double theCelsius)
{ 
//Convert the celcius to farenheit   
return (theCelsius + 32) * 5 / 9;  
}

void outputWeather(double *temperaturesArray, const string WEEK_DAY_NAMES[], const     double MAX_NUMBER)
{
     //this is a counter that will increment through the days and various 
     int counter;
     //reset the counter to 0 so we can use it again       
     counter = 0;
     //print a header       
     cout << "THIS WEEKS …
Run Code Online (Sandbox Code Playgroud)

c++ pointers reference pass-by-reference

0
推荐指数
1
解决办法
5561
查看次数

java如何解释像000这样的数字?

在java中如果一个程序看到像000这样的数字,java会将其解释为0还是将其解释为000?我注意到我的计算器甚至不让我输入000,所以它让我想知道java是否也以这种方式计算数字

java integer

-1
推荐指数
2
解决办法
3361
查看次数