① 為什麼使用gcc hello.c -fpie -pie -shared -o hello 編譯出來
pie 選項用於編譯可執行程序,而非lib
② 關於JFreeChart的幾點問題
1.jfreechart-1.0.11-demo.jar只是實例,裡面都是class文件,我當初是全部反編譯之後再看這些例子的,例子很多;
2.真正需要添加的jar包是jfreechart-1.0.10.jar和jcommon-1.0.13.jar,抱歉我用的是10的,所以名稱與你的11不一樣
3.餅圖例子
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartFrame;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PiePlot3D;
import org.jfree.data.general.DefaultPieDataset;
import org.jfree.ui.RectangleInsets;
public class FirstTest{
public static void main(String[] args){
// 第一步創建數據集
DefaultPieDataset dataset = new DefaultPieDataset();
dataset.setValue("類別1", 125.3);
dataset.setValue("類別2", 52.7);
dataset.setValue("類別3", 10.6);
dataset.setValue("類別4", 85.96);
dataset.setValue("類別5", 43.2);
// 第二步創建一個JFreeChart對象
JFreeChart chart1 = ChartFactory.createPieChart(
"第一個餅圖",
dataset, true, // 是否有圖注
true, // 是否有提示
false // 是否有URLS
);
// 第三步讓它顯示
ChartFrame frame = new ChartFrame("test", chart1);
frame.setBounds(500, 200, 200, 200);
frame.pack();
frame.setVisible(true);
PiePlot3D plot =new PiePlot3D(dataset);
plot.setDepthFactor(0.10);
plot.setShadowPaint(null);
plot.setInsets(new RectangleInsets(100, 150, 100, 150));
// 設置餅圖的起始角度
plot.setStartAngle(45);
plot.setForegroundAlpha(0.8f);
plot.setBackgroundAlpha(0.9f);
JFreeChart chart = new JFreeChart("hffirst", JFreeChart.DEFAULT_TITLE_FONT, plot, true);
chart.setBackgroundPaint(java.awt.Color.white);
ChartFrame frame1 = new ChartFrame("test1", chart);
frame1.setBounds(0, 0, 300, 300);
frame1.pack();
frame1.setVisible(true);
}
}
這個實際上會生成兩個餅圖,一個是二維的,一個三維的,有注釋,可以參考
再說一下,demo包裡面的東西真的很多,你可以反編譯看源代碼
③ 華為p30pro是安卓系統嗎
華為P30手機採用EMUI 9.1.0(基於Android 9)操作系統,搭載麒麟980+8核處理器,多應用同時運行無壓力,游戲運行更流暢。
④ 如何查看Apache的configure編譯參數
`configure』 configures this package to adapt to many kinds of systems.
`configure』 配置這個包來適合多數系統.
Usage: ./configure [OPTION]… [VAR=VALUE]…
語法: ./configure [選項]… [變數=值]…
To assign environment variables (e.g., CC, CFLAGS…), specify them as VAR=VALUE. See below for descriptions of some of the useful variables.
配置環境變數(例如,CC,CFLAGS),格式為VAR=VALUE. 看下面對這些可用變數的說明.
Defaults for the options are specified in brackets.
選項的默認值括在方括弧之中.
Configuration:
配置:
-h, –help display this help and exit 顯示這個幫助並退出
–help=short display options specific to this package 顯示這個包的詳細選項
–help=recursive display the short help of all the included packages 顯示所有包括的包的幫助信息
-V, –version display version information and exit 顯示版本信息並退出
-q, –quiet, –silent do not print `checking…』 messages 不列印』檢查』信息
–cache-file=FILE cache test results in FILE [disabled] 存儲測試信息到文件中 [disabled]
-C, –config-cache alias for `–cache-file=config.cache』 `–cache-file=config.cache』的別名
-n, –no-create do not create output files 不生成輸出文件
–srcdir=DIR find the sources in DIR [configure dir or `..'] 在DIR查找代碼
Installation directories:
安裝目錄:
–prefix=PREFIX install architecture-independent files in PREFIX 安裝路徑
[/usr/local/apache2]
–exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 執行文件安裝路徑
[PREFIX]
By default, `make install』 will install all the files in `/usr/local/apache2/bin』, `/usr/local/apache2/lib』 etc. You can specify an installation prefix other than `/usr/local/apache2′ using `–prefix』,for instance `–prefix=$HOME』.
默認情況下,』make install』安裝所有的文件在 `/usr/local/apache2/bin』, `/usr/local/apache2/lib』 等等.你可以指定一個安裝前綴 『–prefix』選項來改變安裝位置,例如 `–prefix=$HOME』.
For better control, use the options below.
更詳細的配置,使用下面的選項.
Fine tuning of the installation directories:
調整安裝目錄的選項:
–bindir=DIR user executables [EPREFIX/bin]
–sbindir=DIR system admin executables [EPREFIX/sbin]
–libexecdir=DIR program executables [EPREFIX/libexec]
–sysconfdir=DIR read-only single-machine data [PREFIX/etc]
–sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
–localstatedir=DIR modifiable single-machine data [PREFIX/var]
–libdir=DIR object code libraries [EPREFIX/lib]
–includedir=DIR C header files [PREFIX/include]
–oldincludedir=DIR C header files for non-gcc [/usr/include]
–datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
–datadir=DIR read-only architecture-independent data [DATAROOTDIR]
–infodir=DIR info documentation [DATAROOTDIR/info]
–localedir=DIR locale-dependent data [DATAROOTDIR/locale]
–mandir=DIR man documentation [DATAROOTDIR/man]
–docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
–htmldir=DIR html documentation [DOCDIR]
–dvidir=DIR dvi documentation [DOCDIR]
–pdfdir=DIR pdf documentation [DOCDIR]
–psdir=DIR ps documentation [DOCDIR]
System types:
系統類型:
–build=BUILD configure for building on BUILD [guessed]
–host=HOST cross-compile to build programs to run on HOST [BUILD]
–target=TARGET configure for building compilers for TARGET [HOST]
Optional Features:
可選的功能:
–disable-FEATURE do not include FEATURE (same as –enable-FEATURE=no)
–enable-FEATURE[=ARG] include FEATURE [ARG=yes]
–enable-layout=LAYOUT
–enable-v4-mapped Allow IPv6 sockets to handle IPv4 connections
–enable-exception-hook Enable fatal exception hook
–enable-maintainer-mode
Turn on debugging and compile time warnings
–enable-pie Build httpd as a Position Independent Executable
–enable-moles=MODULE-LIST
Space-separated list of moles to enable | 「all」 |
「most」
–enable-mods-shared=MODULE-LIST
Space-separated list of shared moles to enable |
「all」 | 「most」
–disable-authn-file file-based authentication control
–enable-authn-dbm DBM-based authentication control
–enable-authn-anon anonymous user authentication control
–enable-authn-dbd SQL-based authentication control
–disable-authn-default authentication backstopper
–enable-authn-alias auth provider alias
–disable-authz-host host-based authorization control
–disable-authz-groupfile
『require group』 authorization control
–disable-authz-user 『require user』 authorization control
–enable-authz-dbm DBM-based authorization control
–enable-authz-owner 『require file-owner』 authorization control
–enable-authnz-ldap LDAP based authentication
–disable-authz-default authorization control backstopper
–disable-auth-basic basic authentication
–enable-auth-digest RFC2617 Digest authentication
–enable-isapi isapi extension support
–enable-file-cache File cache
–enable-cache dynamic file caching
–enable-disk-cache disk caching mole
–enable-mem-cache memory caching mole
–enable-dbd Apache DBD Framework
–enable-bucketeer buckets manipulation filter
–enable-mpio I/O mp filter
–enable-echo ECHO server
–enable-example example and demo mole
–enable-case-filter example uppercase conversion filter
–enable-case-filter-in example uppercase conversion input filter
–enable-ext-filter external filter mole
–disable-include Server Side Includes
–disable-filter Smart Filtering
–disable-charset-lite character set translation
–enable-charset-lite character set translation
–enable-deflate Deflate transfer encoding support
–enable-ldap LDAP caching and connection pooling services
–disable-log-config logging configuration
–enable-log-forensic forensic logging
–enable-logio input and output logging
–disable-env clearing/setting of ENV vars
–enable-mime-magic automagically determining MIME type
–enable-cern-meta CERN-type meta files
–enable-expires Expires header control
–enable-headers HTTP header control
–enable-ident RFC 1413 identity check
–enable-usertrack user-session tracking
–enable-unique-id per-request unique ids
–disable-setenvif basing ENV vars on headers
–enable-version determining httpd version in config files
–enable-proxy Apache proxy mole
–enable-proxy-connect Apache proxy CONNECT mole
–enable-proxy-ftp Apache proxy FTP mole
–enable-proxy-http Apache proxy HTTP mole
–enable-proxy-ajp Apache proxy AJP mole
–enable-proxy-balancer Apache proxy BALANCER mole
–enable-ssl SSL/TLS support (mod_ssl)
–enable-distcache Select distcache support in mod_ssl
–enable-optional-hook-export
example optional hook exporter
–enable-optional-hook-import
example optional hook importer
–enable-optional-fn-import
example optional function importer
–enable-optional-fn-export
example optional function exporter
–enable-static-support Build a statically linked version of the support
binaries
–enable-static-htpasswd
Build a statically linked version of htpasswd
–enable-static-htdigest
Build a statically linked version of htdigest
–enable-static-rotatelogs
Build a statically linked version of rotatelogs
–enable-static-logresolve
Build a statically linked version of logresolve
–enable-static-htdbm Build a statically linked version of htdbm
–enable-static-ab Build a statically linked version of ab
–enable-static-checkgid
Build a statically linked version of checkgid
–enable-static-htcacheclean
Build a statically linked version of htcacheclean
–enable-static-httxt2dbm
Build a statically linked version of httxt2dbm
–enable-http HTTP protocol handling
–disable-mime mapping of file-extension to MIME
–enable-dav WebDAV protocol handling
–disable-status process/thread monitoring
–disable-autoindex directory listing
–disable-asis as-is filetypes
–enable-info server information
–enable-suexec set uid and gid for spawned processes
–disable-cgid CGI scripts
–enable-cgi CGI scripts
–disable-cgi CGI scripts
–enable-cgid CGI scripts
–enable-dav-fs DAV provider for the filesystem
–enable-dav-lock DAV provider for generic locking
–enable-vhost-alias mass virtual hosting mole
–disable-negotiation content negotiation
–disable-dir directory request handling
–enable-imagemap server-side imagemaps
–disable-actions Action triggering on requests
–enable-speling correct common URL misspellings
–disable-userdir mapping of requests to user-specific directories
–disable-alias mapping of requests to different filesystem parts
–enable-rewrite rule based URL manipulation
–enable-so DSO capability
Some influential environment variables:
一些有影響的環境變數:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
⑤ 這個C語言的圖形程序為什麼編譯時會提示所調用的函數沒有定義呢
是在鏈接的時候提示的錯誤吧?
解決方法看這里:http://tieba..com/p/910010397
2樓就是你需要做的設置。
主要就是因為你沒有鏈接圖形庫。
⑥ 怎麼樣在udk下面編寫應用程序,包括編譯
你寫的腳本UC文件要明確保存在development/src/...文件下,然後要建一個文件夾,打個比方,文件夾命名為UDNGame.然後再這個文件夾里邊再建一個文件夾,必須命名為classes,然後再classes文件夾里邊,放入你寫入的uc腳本文件。一定記住,要有一個GameInfo類型的文件,主要是說明這個包里所用的腳本包含哪些。
然後進入UDK 在菜單欄里邊找View -- World Properties -- Game Type -- Game Type for PIE 把游戲類型改成你的UDNGame就可以了
⑦ 在Linux下進行mpi程序的編譯時,出現錯誤提示關於鏈接的
缺少了庫文件。
在鏈接選項中增加mpi相對應的庫文件,或者在代碼中增加
#pragma comment (lib, "yourmpi.lib")
就可以了。
⑧ 榮耀V20與榮耀20有什麼區別
兩款手機對比參數如下:
1.屏幕:榮耀20屏幕尺寸6.26英寸,解析度:FHD+ 2340×1080像素。前置鏡頭潛隱於屏幕下方,每次點亮屏幕,帶來滿屏視野,沉浸全視界。榮耀 V20屏幕尺寸6.4英寸,解析度:FHD+ 2310×1080像素,屏佔比為91.82%,高清大屏,魅眼全視屏,沉浸全視界,令你沉浸於精彩紛呈的顯示畫面中。屏幕色彩同為1670萬色。
2.拍照:榮耀20後置攝像頭:4800萬像素(f/1.8光圈 AF)+1600萬像素(f/2.2光圈 FF)+200萬像素(f/2.4光圈 FF)+200萬像素(f/2.4光圈 FF),支持自動對焦(相位對焦/反差對焦)。日夜拍都清晰,時刻精彩。前置單攝:3200萬像素,f/2.0光圈,支持固定焦距。榮耀 V20後置攝像頭:4800萬像素(f/1.8光圈)+TOF立體深感鏡頭,支持自動對焦,前置攝像頭:2500萬像素,f/2.0光圈,支持固定焦距,4800萬像素攝像頭搭配AI超清演算法,照片細節放大後依然清晰。
3.性能:二者都採用HUAWEI Kirin 980 (麒麟980)八核處理器,可以輕松駕馭重載大型游戲,帶來滿幀暢爽的卓越游戲體驗和續航體驗。
4.電池:榮耀20電池容量:3750mAh(典型值),標配充電器支持 5V/4.5A或5V/2A輸出,支持5V/4.5A超級快充,兼容10V/2A快充,高密度大電池,強勁續航。榮耀 V20電池容量:4000mAh(典型值),標配充電器支持4.5V/5A或5V/4.5A或5V/2A輸出,充電時間快,續航時間長。兩款手機理論充電時間約1.5小時。
您可以登錄華為商城官網了解更多參數,進行選擇。