我在 github 上有一个 nodejs 存储库,我使用 auto dpeloy 选项将它与 Heroku 连接起来。然后当我推送到 master 时,它也会被部署到 Heroku 服务器。我的问题是如何查看我的应用程序的日志?我只能找到构建日志。
如果它是一个 Heroku 存储库,那么我可以做一个,Heroku logs但现在我只有我的 git 存储库。
谢谢!
我试图通过变量a对结构节点进行排序,但结果证明是错误的.
我的结果:
{5, 4}, {6, 2}, {7, 3}, {4, 1}, {3, 7}, {1, 3}, {0, 0},
Run Code Online (Sandbox Code Playgroud)
我的代码:
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int x;
int y;
} n;
int num = 7;
int compare(const void *ele1, const void *ele2) {
n *px, *py;
px = (n *) ele1;
py = (n *) ele2;
return px->x < py->x;
}
int main() {
n node[7] = {
{4, 1},
{6, 2},
{1, 3},
{5, 4},
{7, 3},
{3, 7} …Run Code Online (Sandbox Code Playgroud)