我是编程新手,对不起,如果我的问题很愚蠢。我正在尝试使用Firebase构建iOS应用。
更新到Xcode 9.3后,将显示很多警告,如下图所示:

我想这来自Firebase窗格,也许Firebase尚未更新该窗格。我对吗?
那我该怎么办?我必须手动修复警告还是只需要等待Firebase的更新?并且如果我仍然像这样运行时仍然发出很多警告,程序是否可以正常运行?
这是我用的豆荚
pod 'SwiftyJSON'
pod 'Firebase/Core'
pod 'Firebase/Firestore'
pod 'Firebase/Storage'
pod 'Firebase/Auth'
pod 'SVProgressHUD', :git => 'https://github.com/SVProgressHUD/SVProgressHUD.git'
pod 'GoogleSignIn'
Run Code Online (Sandbox Code Playgroud) 我开始开发Android应用程序,所以我下载了android studio所以,当我从android的源代码导入ActionBarActivity类时,它给我这样的错误: -
请在这里检查错误:

我尝试了很多东西,比如改变路径和所有东西,但是这里没有任何工作是我在android studio中安装的SDK的图像: -
请在此处查看SDK工具:

如果有人知道如何处理这个错误,请帮助我
今天,我发现了一些我不知道的奇怪计算(在SO中也没有发现任何关于此的问题)关于C.的pow()功能math.h.
我正在试验的代码是:
#include <stdio.h>
#include <math.h>
int main(){
//1st case
long long result = pow(2, 63);
printf("1st case: %lld\n", result);
//2nd case
result = pow(2, 64);
printf("2nd case: %lld\n", result);
//3rd case
printf("3rd case: %lld\n", (long long) (pow(2, 64)/12000));
//4th case
result = pow(2, 64);
result = result/12000;
printf("4th case: %lld\n", result);
//5th case
result = pow(2, 64) / 12000;
printf("5th case: %lld\n", result);
return 0;
}
Run Code Online (Sandbox Code Playgroud)
输出是:
1st case: 9223372036854775807
2nd case: 9223372036854775807
3rd case: …Run Code Online (Sandbox Code Playgroud) 我有下表,我试图将文本放在中心位置th.
<table id="tblProgressSUmmary" class="table table-hover table-striped table-bordered table-condensed responsive dataTable no-footer dtr-inline collapsed" role="grid" aria-describedby="tblProgressSUmmary_info" style="width: 2082px;">
<thead>
<tr role="row">
<th class="sorting_asc" tabindex="0" aria-controls="tblProgressSUmmary" rowspan="1" colspan="1" style="width: 52px;" aria-sort="ascending" aria-label="Running Track: activate to sort column descending">Running Track</th>
<th class="sorting" tabindex="0" aria-controls="tblProgressSUmmary" rowspan="1" colspan="1" style="width: 66px;" aria-label="Exc Type: activate to sort column ascending">Exc Type</th><th class="sorting" tabindex="0" aria-controls="tblProgressSUmmary" rowspan="1" colspan="1" style="width: 88px;" aria-label="Progress Quantity: activate to sort column ascending">Progress Quantity</th>
<th class="sorting" tabindex="0" aria-controls="tblProgressSUmmary" rowspan="1" colspan="1" style="width: 88px;" aria-label="Avg Duration: …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 arrayList,因为它在许多编码比赛中被要求。我想熟悉数组列表,就像我熟悉普通的 int 数组一样。它需要 2 个不同的 arrayList,然后首先我们将元素添加到一个用于行元素的数组列表中,另一个用于列元素。
List<List<Integer>> arr = new ArrayList<List<Integer>>();
List<Integer> arrCol = new ArrayList<Integer>();
Scanner scn = new Scanner(System.in);
for (int i = 0; i < arr.size(); i++) {
for(int j = 0; j < arrCol.size(); j++) {
int x = scn.nextInt();
arrCol.add(j, x);
}
arr.add(i, arrCol);
}
Run Code Online (Sandbox Code Playgroud) 这可能是一个非常基本的问题,但在它进入我的脑海之后,我用谷歌搜索它,显然主要是搜索SO.不幸的是,他们都没有帮助我很多.实际上,在C中使用指针的想法似乎让我很困惑,或者可能是我不知道确切的目的.
不要与SO问题混淆: C++中指针变量和引用变量之间有什么区别?和我一起
我将提供一些示例来证明我的担忧:
第一点:
定义说的是这样的:
指针是包含另一个变量地址的变量.
所以,如果一个程序是这样的:
int i = 23;
printf("%d", i);
printf("%d", &i);
Run Code Online (Sandbox Code Playgroud)
而且,另一个程序是这样的:
int i = 23;
int *ptr;
ptr = &i;
printf("%d", *ptr);
printf("%d", ptr);
Run Code Online (Sandbox Code Playgroud)
上述两个程序都可以输出相同的内容.
如果指针也保留变量的地址,同时我们可以使用&符号获取变量的地址,我们不能通过导出任何变量的地址来执行相同的任务指针吗?我的意思是如果我没有将它声明为指针并将其用作int ptr = &i;第二代码片段并将其用作普通变量,那么会有什么区别?
第二点:
我在这里找到了:
C没有数组变量....但这实际上只是使用带有替代语法的指针.
这句话是否正确?由于我还是初学者,我无法验证任何有关此问题的陈述.但这对我来说有点混乱.如果该陈述也正确,那么这方面的实际解决方法是什么?它实际上是在后端工作的指针,只是编译器/ ide通过使用数组来愚弄我们(显然是为了保持简单性)?
所以,
最后,我可以看到,没有内存管理,没有其他特殊目的使用指针或有其他方法来做这些(可能我对这个问题有一些误解).另外,我还有另外一个问题,我们不能使用我们可以在&不使用指针的情况下使用符号获取的地址来执行内存管理任务吗?
我仍然是初学者,并且有一些关于C的基本知识(不完全),我缺乏关于指针的任何高级知识.所以,这些问题让我变得更糟.我几乎没有在SO中找到任何描述指针和正常变量的基本差异的帖子.因此,如果任何专家可以提供有关此的一些知识,将非常感谢.
我已经运行了客户端-服务器交互的代码。忽略线程部分,我知道那行不通。
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.*;
public class Client {
public static void main(final String[] args) throws Exception {
Socket socket = null;
while (true) {
try {
socket = new Socket("localhost", 3456);
System.out.println("Connect Ho gaya");
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final PrintWriter pw = new PrintWriter(socket.getOutputStream(), true);
final BufferedReader sr_receive = new BufferedReader(new InputStreamReader(socket.getInputStream()));
Thread sendMes = new Thread(new Runnable() {
public void run() {
while (true) {
try {
String send = br.readLine(); …Run Code Online (Sandbox Code Playgroud) 我scanf在C中遇到问题.请不要将这个问题标记为重复,因为我在这里搜索了很多这个问题并发现了许多相似的问题,但他们并没有完全回答我.
当我运行这个:
char c;
int a, b;
scanf("%d", &a);
scanf("%c", &c);
scanf("%d", &b);
Run Code Online (Sandbox Code Playgroud)
然后前两个scanf工作正常,但第三个完全跳过.我在这个论坛上搜索了关于这个问题的不同帖子,发现了很多信息,但想知道其他的东西.
我已经发现最简单的解决方案是:
scanf("%d %c %d", &a, &c, &b);
Run Code Online (Sandbox Code Playgroud)
另一个解决方案可能是使用:
getchar();
Run Code Online (Sandbox Code Playgroud)
而且我还发现我的问题背后的原因是它\n向缓冲区写了一个额外的新行字符,这就是跳过第3个字符的原因.但进一步研究,我发现,当我使用其他scanf的char类型的第二后scanf,然后它工作.这意味着,在我的情况下,如果我在integer类型后接受任何类型的输入,则会出现问题char.具有相对的情况下,他们无法采取再次输入我看到很多其他人的问题char后integer.现在我想澄清C中支持的确切方案scanf,因为我将遇到类似的问题,为什么char可以扫描char但integer不能扫描.谢谢大家.
我的 while 循环在 10_000 上工作正常,但在 100_000 上加载需要时间,并且在 10_000_000 上不起作用。
我不明白为什么,它是一台机器,无论数字多少,它都应该很快。所以我认为我的代码中有一个错误,但对我来说,一切看起来都很好。
Console.WriteLine(SumSequenceElements(10_000_000));
static double SumSequenceElements(int n)
{
int i = 1;
double sum = 0;
while (i <= n)
{
int j = 0;
double power = 1;
while (j < i + 1)
{
power *= -1;
j++;
}
sum += power / (i * (i + 1));
i++;
}
return sum;
}
Run Code Online (Sandbox Code Playgroud) 据我所知,静态网站只是在客户端运行的网站,这意味着只有html和javascript就可以了.但动态网站也是那些在服务器端执行的网站,这意味着使用php,jsp或类似的工具.
为什么名字是这样的?- Static和Dynamic.
我的问题的主要思想是,我们仍在javascript使用静态网页作为客户端语言使用.但是现在,这个概念日渐消失,我想.因为当Ajax,node.js或类似的框架在网站中使用,那么我的感觉认为,这些网站应该有被称为动态站点尽可能多的动态内容可以使用它们来生产.这就是我困惑的地方.
那么,静态和动态网站的概念是否会在不久的将来过时,或者在静态网站中不再考虑使用javascript?或者,我可能缺乏理解将网站称为静态和动态的主要观点.
我想放置<div>了一个<img>.
HTML看起来像这样.
body {
background-color: #cCa;
}
.image {
position: relative;
background-repeat: no-repeat;
}
.content {
background-color: lightGrey;
position: absolute;
overflow: none;
left: 40px;
top: 40px;
}Run Code Online (Sandbox Code Playgroud)
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap-responsive.min.css" rel="stylesheet"/>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class="image"> <img src="css_js/img/image.jpg"> </div>
<div class="content img-circle">[content]</div>
</div>
</div>
</div>Run Code Online (Sandbox Code Playgroud)
更多信息与图片:
当浏览器大小很大时

当浏览器尺寸很小时.
