小编Shi*_*Jha的帖子

"Jenkins URL"在配置设置中意味着什么?

在Jenkins配置页面的"Jenkins URL"部分,我将此选项设置为" http://name_of_my_machine.jenkins:8080 / "通常我打开jenkins:" http:// localhost:8080 / "但这个新选项没有不适合我 - 詹金斯不开放.那是什么意思呢?

jenkins

21
推荐指数
2
解决办法
5万
查看次数

ImageView 中不需要的填充或边距

我对 android 到 android 开发是全新的,只是使用 xml 来构建布局。我编写了以下代码来打印 hello ubuntu 并在其中插入图像。但图像似乎有不需要的上下填充或边距(不确定它叫什么),看起来很奇怪。请任何人帮我删除它。这是我的代码:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_height="match_parent"
    android:layout_width="match_parent"
    android:background="@color/colorAccent"
    android:orientation="vertical"
    android:padding="10dp">

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:padding="8dp"
        android:layout_margin="8dp"
        android:text="Hello Ubuntu (16.06LTS)"
        android:background="@color/colorPrimary"/>

    <ImageView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:padding="0dp"
        android:src="@mipmap/Ubuntu"
        android:layout_margin="0dp"/>

</LinearLayout>
Run Code Online (Sandbox Code Playgroud)

截图如下(见右侧预览):

1

android android-layout android-studio

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

我正在使用c ++制作计算器,但编译器发出错误

我是c ++的新手.最近我完成了所有循环(在我的在线教程中给出).

我决定创建一个计算器,它首先从用户那里获取一个函数

  1. A(总和)
  2. S(减法)
  3. M(用于乘法)

我相信你会帮助我.但编译器给出了一些错误.(DEV-C++).我遇到了很大麻烦.

//The program begins here
#include <iostream>

#include <define.h>    //This is my own header file
#include <string>
using namespace std;

int main(){


int x;


int y;


char z;


char a,s,m,d,c;
    do 
    {cout<<"Enter the function below :"<<NEWLINE;
    cout<<"Following are the possible functions:  "<<"1."<<"a-add"<<NEWLINE<<"2."<<"s-subtract"<<NEWLINE<<"3. "<<"m-multiply"<<NEWLINE<<"4. "<<"d-divide"<<NEWLINE;
cin>>z;
while (z!=c);   
    }
    if (z=a){    /*here is the error place. it tells to give a "while" `before '(' token. (but I dont know why)...`*/
      cout<<"Please enter your first digit …
Run Code Online (Sandbox Code Playgroud)

c++

-8
推荐指数
1
解决办法
101
查看次数

标签 统计

android ×1

android-layout ×1

android-studio ×1

c++ ×1

jenkins ×1