我试图了解受保护和包装的想法,我已经在编译器上尝试了它们,但它一直告诉我有问题
public class example{
int s = example2.v;
public static void main(String args[]){
}
}
public class example2 {
int v = 0 ;
}
Run Code Online (Sandbox Code Playgroud)
谁能帮我这个?为什么它说:
无法从静态上下文引用非静态变量v.
变量''不是静态的!
现在苦苦挣扎了一个多小时......为什么不编译呢?
身体编译好:
create or replace package body "PKG_CUSTOMER" is
PROCEDURE Create_Customer
( pr_customer_id customer.Customer_id%type,
pr_country customer.country%type,
pr_first_name customer.first_name%type,
pr_last_name customer.last_name%type,
pr_birth_date customer.birth_date%type,
pr_customer_type customer.customer_type%type,
pr_address customer.address%type)
IS
BEGIN
INSERT INTO customer (Customer_ID,Country,First_Name,Last_Name,Birth_Date,Customer_Type,Address)
VALUES(pr_customer_id, pr_country, pr_first_name, pr_last_name, pr_birth_date, pr_customer_type, pr_address);
END Create_Customer;
PROCEDURE Delete_Customer(pr_customer_id customer.customer_id%type) IS
BEGIN
DELETE FROM order_line WHERE fk1_order_id IN (SELECT order_id FROM placed_order WHERE fk1_customer_id = pr_customer_id);
DELETE FROM placed_order WHERE fk1_customer_id = pr_customer_id;
DELETE FROM customer WHERE customer_id = pr_customer_id;
END Delete_Customer;
end "PKG_CUSTOMER";?
Run Code Online (Sandbox Code Playgroud)
但规范不会编译:
create …Run Code Online (Sandbox Code Playgroud) 我有以下目录结构:
A.java
a
??? A.java
Run Code Online (Sandbox Code Playgroud)
A.java:
import a.*;
class A {
public static void main(String[] args) {
System.out.println("Hello Human");
}
}
Run Code Online (Sandbox Code Playgroud)
A/A.java:
package a;
public class A {}
Run Code Online (Sandbox Code Playgroud)
它编译并运行:
$ javac A.java && java A
Hello Human
Run Code Online (Sandbox Code Playgroud)
但是当我删除a/A.java(但保留文件夹a)时,我无法再编译它:
$ rm a/A.java
$ javac A.java && java A
A.java:1: package a does not exist
import a.*;
^
1 error
Run Code Online (Sandbox Code Playgroud)
为什么?
我一直在制作:*[internal-package]在尝试构建调试时遇到错误2.我以前从来没有遇到过这个问题,而且没有说明什么是错的.这是它说的:
Ethans-Mac-mini:alienblue ethanarbuckle$ sudo make package
/Users/ethanarbuckle/Desktop/alienblue/theos/makefiles/targets/Darwin/iphone.mk:46: Deploying to iOS 3.0 while building for 6.0 will generate armv7-only binaries.
Making all for tweak AlienBlue...
make[2]: Nothing to be done for `internal-library-compile'.
Making stage for tweak AlienBlue...
dpkg-deb: building package `com.ethanarbuckle.alienblue++' in `./com.ethanarbuckle.alienblue++_0.0.1-9_iphoneos-arm.deb'.
make: *** [internal-package] Error 2
Run Code Online (Sandbox Code Playgroud)
任何人都可以了解发生的事情吗?
我是在服务器上安装软件包的新手.在php.net上,它说你如何手动安装rar包(http://www.php.net/manual/en/rar.installation.php):
gunzip rar-xxx.tgz
tar -xvf rar-xxx.tar
cd rar-xxx
phpize
./configure && make && make install
Run Code Online (Sandbox Code Playgroud)
我已经下载了包并将其上传到服务器.我的问题是,我需要在哪里编写安装命令?我已经尝试过CMD但是,当然,它不起作用.救命?:)
我是Go的新手,我正在制作一个小型抽认卡应用程序.我的包结构是这样的
VocabHelper
|
-|src
--|com
---|wks
----|card
------Card.go
------Deck.go
----|main
------main.go
Run Code Online (Sandbox Code Playgroud)
甲板和卡是两个单独的类,但它们在同一个包中:
Card.go
package card
type Card struct{
Question string
Answer string
}
Run Code Online (Sandbox Code Playgroud)
Deck.go
package card
import (
"math/rand"
)
type Deck struct{
Cards []card.Card
}
Run Code Online (Sandbox Code Playgroud)
当我尝试编译项目时,编译器说undefined:card即使卡与卡片在同一个包中.我怎样才能在甲板课上使用卡类?
我有一些debian软件包,它们需要在构建时访问网络 - 一个用maven构建,需要访问存储库 - 另一个尝试绑定到127.0.0.1作为一些单元测试的一部分
我会使用启动板,但启动板buildd不支持任何这些类型的网络操作.我也用travis构建软件包,所以我只将二进制包上传到启动板,但它也不受支持.
我正在寻找具有网络访问权限的基于云的debian软件包构建器,或者基于云的debian软件包存储库,我可以上传我的二进制和源代码软件包.
有没有?
我在R中使用了包"tm","lda"和"topicmodels".
是否有这些软件包的开源代码(用其他语言),以便我可以修改核心?
帮助approx并approxfun包括以下警告:
警告
由roxfun返回的值包含对当前R版本中代码的引用:不应将其保存并加载到其他R会话中。对于R> = 3.0.0,这更安全。
我不确定这意味着什么,尤其是关于“对于R> = 3.0.0更安全”的最后一部分。我已经编写了一些代码,其中包含使用创建的函数approxfun。现在将该代码放入包中是否安全?我已经对其进行了测试,并且似乎可以运行,但是我不知道我是否可以依靠它。
这是Windows 7 64位上的R 3.1.1。
确切的代码是这样的。我有一些关于函数值的数据,并且我想近似底层函数(我没有源代码)。
.table <- read.table(text="x y
10.0 150
37.8 147
65.6 145
93.3 142", header=TRUE) # plus several more lines in the original
# this function is to be exported in the package
f <- with(.table, approxfun(x, y))
Run Code Online (Sandbox Code Playgroud)
.approxfun是stats包中的未导出函数。因此,R的未来版本可能会忽略此功能,尽管至少在短期内这不太可能。但是还有另一个问题。我仔细查看了的来源approxfun,并以以下几行结尾:
....
x <- as.double(x)
y <- as.double(y)
.Call(C_ApproxTest, x, y, method, f)
function(v) .approxfun(x, y, v, method, yleft, yright, f) …Run Code Online (Sandbox Code Playgroud) 我是python的新手,我在python 3.4上运行一些脚本.我收到以下错误:
ImportError:没有名为'lasagne'的模块.有人知道如何在Python上安装这个软件包吗?
package ×10
java ×2
r ×2
building ×1
cloud ×1
compilation ×1
debian ×1
go ×1
install ×1
objective-c ×1
open-source ×1
oracle ×1
oracle-apex ×1
php ×1
procedure ×1
python ×1
rar ×1
sql ×1
theos ×1