小编d3v*_*pro的帖子

int的最大值

是否有任何代码可以在C/C++中找到整数的最大值(相应于编译器),如Integer.MaxValuejava中的函数?

c c++ limits stl numeric-limits

167
推荐指数
3
解决办法
26万
查看次数

完美的方形和完美的立方体

在c ++中是否有任何预定义的函数来检查数字是否为任何数字的平方并且对于多维数据集是否相同.

c++ algorithm math integer integer-arithmetic

8
推荐指数
2
解决办法
4万
查看次数

找到素数的最佳方法

什么是找到素数的最佳方法,以便大大减少时间复杂度.

c++

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

pi如何计算到PHP中的一组数字?

如何计算PHP中pi的值,最多X个十进制数.

4个小数点

3.141

64位小数

3.141592653589793238462643383279502884197169399375105820974944592

php math pi

5
推荐指数
1
解决办法
6601
查看次数

永久设置环境路径

我想制作一个永久设置%PATH%环境变量的批处理文件 - 即永久地在路径中添加一个值(在Windows XP中).

windows windows-xp batch-file

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

不使用分号计算表达式

鉴于输入如68 + 32,我们必须在我们的程序中不使用分号进行评估.如果它将在if或for循环中?参考:https://www.spoj.pl/problems/EXPR2/

c++ obfuscation

2
推荐指数
2
解决办法
1542
查看次数

为 ionic 5 代码构建 ios 版本时出现 defaultWebpagePreferences 错误

我正在尝试为 ionic 5 应用程序构建一个 ios 版本,我在构建应用程序时在我的应用程序中收到此错误。我在互联网上寻找解决方案,但似乎没有任何效果

/Users/Prateek/ionicApps/muniFlores/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:141:27: error: property
      'defaultWebpagePreferences' not found on object of type 'WKWebViewConfiguration *'
            configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeMobile;
                          ^
/Users/Prateek/ionicApps/muniFlores/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:141:76: error: use of undeclared
      identifier 'WKContentModeMobile'
            configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeMobile;
                                                                           ^
/Users/Prateek/ionicApps/muniFlores/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:143:27: error: property
      'defaultWebpagePreferences' not found on object of type 'WKWebViewConfiguration *'
            configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeDesktop;
                          ^
/Users/Prateek/ionicApps/muniFlores/platforms/ios/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m:143:76: error: use of undeclared
      identifier 'WKContentModeDesktop'
            configuration.defaultWebpagePreferences.preferredContentMode = WKContentModeDesktop;
Run Code Online (Sandbox Code Playgroud)

cordova ionic-framework cordova-plugins wkwebviewconfiguration ionic5

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

如何在C++中识别新行?

我必须将整数输入取整数数组.我必须在输入中识别换行符.为了更清楚,我有一个例子.我给的输入是: -

2
3
4

45
6
78
45

34
34
Run Code Online (Sandbox Code Playgroud)

我想根据输入中的换行处理输入.

编程语言是C++,编译器是g ++.我不想将换行存储在数组中; 我只想相应地处理.

c++

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

c ++中的空白识别

我的代码必须使用cin识别空白字符,所以当我使用空格作为输入时,它应该识别空间.我该怎么做呢?

c++

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

g ++编译器中包含的g ++幂函数

可以使用幂函数来计算非常大的值的幂,例如pow(200,200)。也可以用于long long int值... pow(long long int,long long int)。

我收到此错误/sources/tested.cpp:在函数'int main()'中:

/sources/tested.cpp:16:错误:重载的“ pow(long long int&,long long int&)”的调用不明确

/usr/include/bits/mathcalls.h:154:注意:候选对象是:double pow(double,double)

/usr/lib/gcc/i486-linux/4.0.1/../../../../include/c++/4.0.1/cmath:360:注意:long double std :: pow(long double ,int)

/usr/lib/gcc/i486-linux/4.0.1/../../../../include/c++/4.0.1/cmath:356:注意:float std :: pow(float,int )

/usr/lib/gcc/i486-linux/4.0.1/../../../../include/c++/4.0.1/cmath:352:注意:double std :: pow(double,int )/usr/lib/gcc/i486-linux/4.0.1/../../../../include/c++/4.0.1/cmath:348:注意:long double std :: pow(long双,长双)

/usr/lib/gcc/i486-linux/4.0.1/../../../../include/c++/4.0.1/cmath:344:注意:float std :: pow(float,float )

c++ g++

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

处理具有大量数字的整数

如何处理在c ++中说25位的整数解决问题..

c++

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

链表中间

当我们没有被告知其大小时,如何找到链表的中间,并且必须仅使用一个循环和仅一个指针来执行.

c++

0
推荐指数
2
解决办法
3436
查看次数