主頁 > 後端開發 > XE8正式版,開來了——

XE8正式版,開來了——

2020-09-22 07:36:14 後端開發

XE8似乎很特殊,是不是不趕圣誕節了?這很難說——究竟怎么樣?只能拭目以待——

uj5u.com熱心網友回復:

Contents
1 FireMonkey Changes for XE8 
1.1 Native Presentation of TListView, TSwitch, and TMemo on iOS 
1.2 Desktop Web Browsers 
1.3 Standard Actions for TMediaPlayer 
1.4 New and Changed FireMonkey API 
1.4.1 New OnFilter Event 
1.4.2 FMX Field Variables Now Start with F 
2 Run-Time Library (RTL) Changes for XE8 
2.1 Changes in LongInt and LongWord Size for 64-bit iOS Platforms 
2.2 New Delphi Data Types FixedInt and FixedUInt 
2.3 Beacon Support 
3 VCL Changes for XE8 
4 Delphi Changes for XE8 
5 C++ Changes for XE8 
6 IDE Changes for XE8 
6.1 Multi-Device Preview 
6.2 Run Your Apps on Any iOS Simulator 
6.3 Add Featured Files Opens Automatically When Necessary 
6.4 Disabling Built-in RAD Studio Java Libraries for Android Using the Project Manager 
6.5 Mercurial Version Control System Integrated in the IDE 
6.6 Settings Migration Tool 
7 Database and Connectivity Changes for XE8 
7.1 FireDAC Changes 
8 Debugger Changes for XE8 
9 Platform Assistant Changes for XE8 
10 Command-Line Utility Changes for XE8 
11 Application Samples Changes for XE8 
11.1 Older Samples Removed at XE7 are Available on SourceForge and XE6 Docwiki 
12 Changes in the Help 
12.1 New Offline Help System 
13 Topics 

FireMonkey Changes for XE8 FireMonkey is our proprietary library of object-oriented programming (classes, methods, properties and so forth). 

Native Presentation of TListView, TSwitch, and TMemo on iOS On the iOS target platform, FireMonkey now supports both styled and native presentations for the TListView, TSwitch, and TMemo controls. 

By default, when you add any of these components to the Form Designer, RAD Studio uses the styled presentation. 
To use the native presentation on the iOS target platform, set the new ControlType property to Platform. 
For more information, see TPresentedControl.ControlType and FireMonkey Native iOS Controls. 

Desktop Web BrowsersOn desktop platforms (Windows and Mac OS X), FireMonkey now supports the use of the TWebBrowser component. All basic functions of the Web browser are available (such as navigate to URL, go back, go forward, and so on). 

Standard Actions for TMediaPlayer FireMonkey now provides the following standard actions that you can use to control any instance of TMediaPlayer: 

TMediaPlayerStart 
TMediaPlayerStop 
TMediaPlayerPlayPause 
TMediaPlayerCurrentTime 
TMediaPlayerVolume 
New and Changed FireMonkey API New OnFilter Event FireMonkey provides the new OnFilter event to set custom filters in a search box. 

For further information about the new OnFilter event, visit TCustomListView.OnFilter and TSearchBoxModel.OnFilter. 

FMX Field Variables Now Start with F The names of all field variables in FMX classes now start with the letter F. This is according to the standard described in the Object Pascal Style Guide. 

Some examples are: 

FEnabledInteractiveGestures 
FFont 
FDesignInteractive 
Run-Time Library (RTL) Changes for XE8 Changes in LongInt and LongWord Size for 64-bit iOS Platforms LongInt and LongWord are now platform-dependent integer types. 

On 64-bit iOS platforms, LongInt and LongWord double their size compared to the size on 32-bit platforms (32-bit Windows, OSX32, 32-bit iOS, and Android) and 64-bit Windows platforms, as follow: 

Size 
32-bit platforms and 64-bit Windows platforms 64-bit iOS platforms 
LongInt 32-bits (4 bytes) 64-bits (8 bytes) 
LongWord 
32-bits (4 bytes) 64-bits (8 bytes) 

For more information, see Platform-Dependent Integer Types. 

New Delphi Data Types FixedInt and FixedUInt Two new platform independent 32-bit integer types are introduced in XE8: 

FixedInt: 32-bit signed integer type. 
FixedUInt: 32-bit unsigned integer type. 
The size of FixedInt and FixedUInt is 32 bits across all 64-bit and 32-bit platforms. 

For further information, see FixedInt and FixedUInt. 

Beacon Support The RTL now supports the use of beacons. A beacon is a Bluetooth Low Energy device that includes some Manufacturer Specific Data in its advertising data, allowing any device that receives that information to identify the beacon device and calculate the distance to it without being paired or connected to it. 

We support two available beacon formats: 

iBeacon - the format defined by Apple 
AltBeacon - an open format, known as Alternative beacon, which supports both Android and iOS 
Using Beacons shows how to implement a beacon application. 

VCL Changes for XE8 Delphi Changes for XE8 C++ Changes for XE8 IDE Changes for XE8 Multi-Device Preview With the new Multi-Device Preview, you can preview how your application looks on different devices. The Multi-Device Preview displays a preview of the design area on several devices at the same time. You can select the devices to preview. 

MDPreviewWindow1.png 
To open the Multi-Device Preview window, choose View > Multi-Device Preview. 

For further information about this feature, see Multi-Device Preview. 

Run Your Apps on Any iOS Simulator The Target node of the iOS Simulator platform node of the Project Manager now shows the complete list of simulators supported by the Xcode installation on your Mac. The Project Manager also shows the iOS version of each simulator, and you can run your applications on a given device model running any one of the supported iOS versions. 

Add Featured Files Opens Automatically When Necessary When you add to the Project Manager a file that may require you to add some featured files to the deployment configuration of your project, RAD Studio now opens a filtered view of the Add Featured Files dialog box, so that you can include the required features files in the deployment configuration of your project. See Add Featured Files Filtered List for more information. 

Disabling Built-in RAD Studio Java Libraries for Android Using the Project Manager In XE8, the Project Manager lists the built-in RAD Studio Java libraries for Android, and you can disable any one of those libraries. To make your application lighter, you might choose to disable Java libraries that your application does not require. For more information, see Using the Built-in RAD Studio Java Libraries for Android. 

XE8DisableJavaLibrary.png 
In XE7, you could easily add custom Java libraries to your Android applications using the Project Manager. However, to remove unnecessary Java libraries that RAD Studio includes in Android applications by default, you had to manually create and deploy a custom classes.dex file. 

Mercurial Version Control System Integrated in the IDE RAD Studio supports now a new version control system integrated in the IDE, for managing and tracking changes in your projects: Mercurial distributed version control system. 

The History Manager now presents integrated Mercurial version control log information from your local repository. You can find more information of the tracked changes of your project in the Contents, Information and Differences tab. 

You can use Mercurial to: 

Clone a copy of your remote Mercurial repository and start working with it. 
Commit your changes to your local repository. 
Show remote repository log data for your project. 
In XE8, some Git features have been added in the IDE: 

Authenticate in your remote private repository. 
Push your changes to the remote Git repository and pull changes, updating your working copy with the latest remote changes. 
For more information about the version control systems integrated in the IDE, see: 

Version Control Systems in the IDE 
Mercurial Integration in the IDE 
Git Integration in the IDE 
Settings Migration Tool The new Settings Migration Tool provided with RAD Studio XE8 allows you to import and export configuration settings between RAD Studio and Appmethod as well as between different versions of the products. 

With the Settings Migration Tool you can: 

Export settings to a migration file: to generate an XML export file with .idesettings extension. 
Import settings from a Migration File: to import the XML file with .idesettings extension. 
Export settings to a newer RAD Studio version: to migrate the settings automatically to a newer RAD Studio version installed on the same machine. 
You can find the migration.exe tool in the following path: C:\Program Files (x86)\Embarcadero\Studio\16.0\bin. 

Visit the Settings Migration Tool page for more details. 

Database and Connectivity Changes for XE8 FireDAC Changes New FireDAC Teradata Database native driver (TData) based on the Teradata Database ODBC driver. See Connect to Teradata Database. 
FireDAC Sqlite driver is updated in XE8. For detailed information, see Connect to SQLite database (FireDAC). 
Migrate your existing dbExpress applications to use newer database technologies such as FireDAC. For migration, see Migrating dbExpress Applications to FireDAC. 
Follow the steps in DbExpress Application Migration (FireDAC) to migrate your dbExpress Delphi application. 
Debugger Changes for XE8 Platform Assistant Changes for XE8 Command-Line Utility Changes for XE8 Application Samples Changes for XE8 Older Samples Removed at XE7 are Available on SourceForge and XE6 Docwiki See Older Product Samples for more information about accessing the older product samples that were removed from RAD Studio at XE7. 

Changes in the Help New Offline Help System The offline help files delivered with RAD Studio are now in Microsoft Compiled HTML Help format, also known as CHM. For more information, see Help on Help - CHM. Previously, the offline help was delivered in H2 format and was viewed using Microsoft DExplore. 

The Microsoft Compiled HTML Help viewer can only show offline help. To access the online help, you must either open the online help yourself, or click Current Wiki Page on the footer of any page of the offline help. You can no longer choose whether you want the offline help viewer to show the offline help or the online help. 

You can create your own CMH help files and link them with RAD Studio, for further infomation see Providing Help for Your Component.

uj5u.com熱心網友回復:

再不抓緊完善自己 等微軟出來就傻了 還等什么圣誕節

uj5u.com熱心網友回復:

我以為都有可用下載了呢

uj5u.com熱心網友回復:

是啊,VS2015都出到CTP6了。。。。
我XE7都還沒用幾次啊。。。。剛把平常用的組件都找齊了。。結果XE8又出來了。。。。
希望這次能變強啊。。。BUG少些,更穩定些。。

VS2015中的VC++部分,目前還不能開發IOS,只有C#能開發IOS,所以說 C++ BUILDER XE8還是有機會的。。

uj5u.com熱心網友回復:

有b2的測驗版

uj5u.com熱心網友回復:

目前這c#可是了不得地東東,幾乎要成為工業級通用腳本了,有趕超js的趨勢

uj5u.com熱心網友回復:

參考 6 樓 kfrght 的回復:
目前這c#可是了不得地東東,幾乎要成為工業級通用腳本了,有趕超js的趨勢


就是要身背一個.net環境才能有用,關鍵就看微軟對除windows以外平臺的.net布局了。。如果能順利布局到其他平臺的話,那C#就真是厲害了

uj5u.com熱心網友回復:

這個改動:
Run-Time Library (RTL) Changes for XE8 Changes in LongInt and LongWord Size for 64-bit iOS Platforms LongInt and LongWord are now platform-dependent integer types. 
有什么必要?不是早就有了NativeInt、NativeUInt嗎。

uj5u.com熱心網友回復:

不知道啥時候出

uj5u.com熱心網友回復:

都是FireMonkey的改進,VCL沒有

uj5u.com熱心網友回復:

參考 10 樓 ksrsoft 的回復:
都是FireMonkey的改進,VCL沒有

能改進 FireMonkey 也好啊。現在感覺  XE7 寫的東西在安卓下就是沒 jave 的快。
一個側滑選單都卡得很。
 REST API 控制元件都是阻塞式的,煩死個人。

uj5u.com熱心網友回復:

參考 11 樓 siemenqin 的回復:
Quote: 參考 10 樓 ksrsoft 的回復:

都是FireMonkey的改進,VCL沒有

能改進 FireMonkey 也好啊。現在感覺  XE7 寫的東西在安卓下就是沒 jave 的快。
一個側滑選單都卡得很。
 REST API 控制元件都是阻塞式的,煩死個人。


安卓下想比JAVA的塊,那是別想了,能流暢使用就是好事了

uj5u.com熱心網友回復:

希望XE8 能多考慮移動應用的用戶細節體驗。并且在幫助里寫清楚。

uj5u.com熱心網友回復:

最想吐槽的就是 Baas 這些網路通信相關的控制元件,都搞成默認異步模式要死人嗎?做個指示器也白搭,卡在那里一動不動。

uj5u.com熱心網友回復:

參考 14 樓 siemenqin 的回復:
最想吐槽的就是 Baas 這些網路通信相關的控制元件,都搞成默認異步模式要死人嗎?做個指示器也白搭,卡在那里一動不動。


早期的很多軟體都是按照當時的網路協議或規范來的,在協議中的正牌就是阻塞模式,而這些協議不一定正確,就如當年的LINUX即時嚴格按照規范來做,結果是按照規范,ping這個命令是接收到一次ping就回復對方,因為當時的網路帶寬很小,計算機又不行,最終的結果是雙方都ping死了,而微軟聰明的理解這些規范,windows中的ping可以正常使用

uj5u.com熱心網友回復:

猜一下哪天發布

uj5u.com熱心網友回復:

參考 7 樓 draculamx 的回復:
Quote: 參考 6 樓 kfrght 的回復:

目前這c#可是了不得地東東,幾乎要成為工業級通用腳本了,有趕超js的趨勢


就是要身背一個.net環境才能有用,關鍵就看微軟對除windows以外平臺的.net布局了。。如果能順利布局到其他平臺的話,那C#就真是厲害了

MS在搞C#原生編譯器

uj5u.com熱心網友回復:

參考 17 樓 akirya 的回復:
Quote: 參考 7 樓 draculamx 的回復:

Quote: 參考 6 樓 kfrght 的回復:

目前這c#可是了不得地東東,幾乎要成為工業級通用腳本了,有趕超js的趨勢


就是要身背一個.net環境才能有用,關鍵就看微軟對除windows以外平臺的.net布局了。。如果能順利布局到其他平臺的話,那C#就真是厲害了

MS在搞C#原生編譯器

原生編譯器??把C#寫的程式編譯成不同平臺下的二進制檔案??那這樣的話,運行環境確實不需要.net庫了。。。

uj5u.com熱心網友回復:

如果原生編譯的話,要么程式中不能呼叫.net環境那套東西了,要么一個非常大的APP(空專案20MB+)。

uj5u.com熱心網友回復:

參考 19 樓 DelphiGuy 的回復:
如果原生編譯的話,要么程式中不能呼叫.net環境那套東西了,要么一個非常大的APP(空專案20MB+)。


不能呼叫.net不太可能,這樣C#還有啥用。。。。估計是直接編譯成對應平臺的二進制檔案,大小的話,微軟應該會優化,就看優化得如何了。。

uj5u.com熱心網友回復:

如果.net功能大部分可用的話,那起碼20MB+,參考Windows上.net runtime的大小就知道了,在ARM上只可能大不會小,ARM指令集的編碼密度要低于x86,當然如果只是通過JNI呼叫JDK的功能來實作,那就可以小很多,不過這樣好象是欺騙喲。

uj5u.com熱心網友回復:

參考 20 樓 draculamx 的回復:
Quote: 參考 19 樓 DelphiGuy 的回復:

如果原生編譯的話,要么程式中不能呼叫.net環境那套東西了,要么一個非常大的APP(空專案20MB+)。


不能呼叫.net不太可能,這樣C#還有啥用。。。。估計是直接編譯成對應平臺的二進制檔案,大小的話,微軟應該會優化,就看優化得如何了。。

基本上大小估計和FireMonkey出來的差不多,哈哈,到時候就是五十步笑百步了.

uj5u.com熱心網友回復:

總結一下,不一定正確:
正規點的軟體公司技識訓分都相當細致了,所以基本上跨平臺工具對這些企業基本沒啥用.小企業和單打獨斗的程式員比較喜歡這類工具,主要是節約時間.最后誰贏,就是看誰為程式員節約了更多的時間.所以我說FireMonkey在這方面總體上可以了,但細節上還很欠缺.往往在一個小問題,卡上很多天,叫天不應叫地不靈.建議FireMonkey應該推移動應用的專案模板,什么開機畫面 軟體升級 資料操作 多執行緒 皮膚替換 ......一個普通的移動應用該具備的模塊全部寫好.移動應用不就那么幾大塊嘛.這樣.net肯定搞不過FireMonkey.

uj5u.com熱心網友回復:

在這個軟體開發近似一夜情的時代,框架勝過一切.

uj5u.com熱心網友回復:

確實,誰的開發效率高,程式穩定性強,誰就贏了!!

uj5u.com熱心網友回復:

c#是按照語言和平臺分離設計的,它目前支持一套mono的跨平臺虛擬機,可以在大多數系統上運行而不僅僅是windows,這個就象是flash。

uj5u.com熱心網友回復:

c#因為這套mono,支持安卓比cb早很多,從理論上講c#的效率在安卓上不會次于cb,因為cb也是基于一套跨平臺的獨立庫,不是linu原生代碼,也不是安卓內置支持的java。在穩定性上,從這20年的情況看,微軟的東東優于cb。

uj5u.com熱心網友回復:

跨平臺編譯的話,要保障界面和功能的一致性,編譯的程式要么很大,要么需要一套支持庫,目前一般都選擇后者。

uj5u.com熱心網友回復:

Xamarin 是微軟收購的(應該收購了吧,以前的新聞一直是欲收購)
Xamarin UI目前不能跨平臺,不同平臺UI還是需要分別設計,
目前宣稱內容代碼的不同平臺重用性90%.
IDE使用的方便性和各平臺的共用性目前都還不如cb/dedphi.

13年cb還不支持安卓(當時delphi已經支持)的時候有用Xamarin做過一個安卓專案,算是簡單了解了一下吧,就目前來看比不上firemonky,以后就不知道了.

uj5u.com熱心網友回復:

c++builder的代碼書寫遠沒有delphi和vs流暢反應快

uj5u.com熱心網友回復:

參考 30 樓 ksrsoft 的回復:
c++builder的代碼書寫遠沒有delphi和vs流暢反應快

是啊。。。智能提示簡直無力吐槽,應該是個很簡單的東西,怎么總是不改進一下呢。。。

uj5u.com熱心網友回復:

電腦不夠快,不喜歡停頓的感覺,習慣把部分代碼提示關掉了。

uj5u.com熱心網友回復:

戲法人人會變...巧妙各有不同...身為 IT 人...必須夠靈活......

目前許多.名堂.都可以直接上移動設備...比如 HTML5+CSS3+JavaScript . Flash . Visual Basic...等等...上述幾項說實際一點...不過是模擬器之格局...但...卻真能做到事...這是重點......

到底 XE8 的意義在哪裡呢? 打從 XE4 開始應用在移動裝置...我只使用在數據庫的方面...若是其他應用...比如 Android 的平臺...我會選擇使用 Android Studio 之 來開發......

uj5u.com熱心網友回復:

參考 31 樓 draculamx 的回復:
Quote: 參考 30 樓 ksrsoft 的回復:

c++builder的代碼書寫遠沒有delphi和vs流暢反應快

是啊。。。智能提示簡直無力吐槽,應該是個很簡單的東西,怎么總是不改進一下呢。。。

C++的智能提示不簡單啊,語法太復雜了。VS一直到2012智能提示才算得上比較滿意。

uj5u.com熱心網友回復:

參考 31 樓 draculamx 的回復:
Quote: 參考 30 樓 ksrsoft 的回復:

c++builder的代碼書寫遠沒有delphi和vs流暢反應快

是啊。。。智能提示簡直無力吐槽,應該是個很簡單的東西,怎么總是不改進一下呢。。。


沒這么簡單,CB、Delphi的智能提示(所謂code insight)是動態的,基于實時代碼分析和編譯資訊,因此有時候會出現“Unable to invoke Code Completion due to errors in source code”這種錯誤資訊,另外沒有原始碼,只有.dcu它照樣能提示,所以這種實作絕對不是簡單的文本匹配,而是有一個語法掃描程序,還要有從.dcu中逆出一些資訊的能力(也可能包括.obj,不過我沒有驗證)。這種技術用在C++工具上自然比較慢,因為C++的語法掃描本身就復雜而緩慢。

uj5u.com熱心網友回復:

看了半天沒看出XE8的亮點是什么呀?等于XE 7 UPDATE 2嗎?

uj5u.com熱心網友回復:

參考 36 樓 boyla 的回復:
看了半天沒看出XE8的亮點是什么呀?等于XE 7 UPDATE 2嗎?


iOS 64-bit APP開發。

uj5u.com熱心網友回復:

有個win 32 bit 編譯器支持c++11

uj5u.com熱心網友回復:

我最關心XE8的32位編譯器能否支持C++11,里面的32位boost庫版本能否從1.39升級到最新版

uj5u.com熱心網友回復:

我也是 XE8的32位編譯器能否支持C++11
xe7的64位編輯器支持的更強,32只是部分支持。
期待xe8吧

uj5u.com熱心網友回復:

落伍了n代,原來d7的忠實用戶,后來轉向了java,哎,現在重新回來看,發現改進了不少,看來要重新安裝起來試用下,看看還能否找回原來的感覺。

uj5u.com熱心網友回復:

經過多方考量,不得不當回叛徒,用Delphi搞Android和iOS的專案了(大家不要噴我哈).
1 呼叫Jar比CB步驟少.
2 在蘋果虛擬機下允許除錯模式.
3 好招人(客觀現狀).
4 沒有過多花哨的寫法.
5 IDE崩潰的幾率比較少,流暢.

uj5u.com熱心網友回復:

參考 42 樓 siemenqin 的回復:
經過多方考量,不得不當回叛徒,用Delphi搞Android和iOS的專案了(大家不要噴我哈).
1 呼叫Jar比CB步驟少.
2 在蘋果虛擬機下允許除錯模式.
3 好招人(客觀現狀).
4 沒有過多花哨的寫法.
5 IDE崩潰的幾率比較少,流暢.


反映了現實

不,是完美表達了現狀——

uj5u.com熱心網友回復:

到這地步,delphi 還是cb無所謂了,都是RAD

uj5u.com熱心網友回復:

參考 35 樓 DelphiGuy 的回復:
Quote: 參考 31 樓 draculamx 的回復:

Quote: 參考 30 樓 ksrsoft 的回復:

c++builder的代碼書寫遠沒有delphi和vs流暢反應快

是啊。。。智能提示簡直無力吐槽,應該是個很簡單的東西,怎么總是不改進一下呢。。。


沒這么簡單,CB、Delphi的智能提示(所謂code insight)是動態的,基于實時代碼分析和編譯資訊,因此有時候會出現“Unable to invoke Code Completion due to errors in source code”這種錯誤資訊,另外沒有原始碼,只有.dcu它照樣能提示,所以這種實作絕對不是簡單的文本匹配,而是有一個語法掃描程序,還要有從.dcu中逆出一些資訊的能力(也可能包括.obj,不過我沒有驗證)。這種技術用在C++工具上自然比較慢,因為C++的語法掃描本身就復雜而緩慢。

搞那么復雜沒多大必要,就一個簡單的文本匹配就能滿足絕大多數要求了。

uj5u.com熱心網友回復:

既然沒人力物力來搞c++編譯器,為啥不用clang呢。cb的編譯器,爛到爆,基本的SFINAE都過不了。

uj5u.com熱心網友回復:

xe7的win 64位,就是Clang compiler,LLVM,支持c11
win 32的 Clang 和c11不知道要等到xe8還是xe9了

uj5u.com熱心網友回復:

看了路線圖,已經說了要改win32的編譯器

Windows 32 bit C++ Compiler
--LLVM based toolchain similar to the 64-bit Windows compiler language features,including C++11

uj5u.com熱心網友回復:

我并不喜歡LLVM這東西,龐大而緩慢(一個編譯器16MB+,你這不是開玩笑嗎),優化能力和intel C++、VC++比根本不是一個檔次,連GCC都不如。

uj5u.com熱心網友回復:

xe7下的64位 LLVM確實慢

uj5u.com熱心網友回復:

這個編譯器有必要改來改去的么?把原來的bug去掉不是作業量更少?

uj5u.com熱心網友回復:

要支持c++11

uj5u.com熱心網友回復:

目前C盤只有22G了,還能裝么?

uj5u.com熱心網友回復:

我都是做win桌面開發,感覺xe8也沒有用啊;

轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/102978.html

標籤:茶館

上一篇:運行KEIL顯示錯誤,請各位幫忙解決下

下一篇:不帶頭結點雙向非回圈鏈表求助!

標籤雲
其他(157675) Python(38076) JavaScript(25376) Java(17977) C(15215) 區塊鏈(8255) C#(7972) AI(7469) 爪哇(7425) MySQL(7132) html(6777) 基礎類(6313) sql(6102) 熊猫(6058) PHP(5869) 数组(5741) R(5409) Linux(5327) 反应(5209) 腳本語言(PerlPython)(5129) 非技術區(4971) Android(4554) 数据框(4311) css(4259) 节点.js(4032) C語言(3288) json(3245) 列表(3129) 扑(3119) C++語言(3117) 安卓(2998) 打字稿(2995) VBA(2789) Java相關(2746) 疑難問題(2699) 细绳(2522) 單片機工控(2479) iOS(2429) ASP.NET(2402) MongoDB(2323) 麻木的(2285) 正则表达式(2254) 字典(2211) 循环(2198) 迅速(2185) 擅长(2169) 镖(2155) 功能(1967) .NET技术(1958) Web開發(1951) python-3.x(1918) HtmlCss(1915) 弹簧靴(1913) C++(1909) xml(1889) PostgreSQL(1872) .NETCore(1853) 谷歌表格(1846) Unity3D(1843) for循环(1842)

熱門瀏覽
  • 【C++】Microsoft C++、C 和匯編程式檔案

    ......

    uj5u.com 2020-09-10 00:57:23 more
  • 例外宣告

    相比于斷言適用于排除邏輯上不可能存在的狀態,例外通常是用于邏輯上可能發生的錯誤。 例外宣告 Item 1:當函式不可能拋出例外或不能接受拋出例外時,使用noexcept 理由 如果不打算拋出例外的話,程式就會認為無法處理這種錯誤,并且應當盡早終止,如此可以有效地阻止例外的傳播與擴散。 示例 //不可 ......

    uj5u.com 2020-09-10 00:57:27 more
  • Codeforces 1400E Clear the Multiset(貪心 + 分治)

    鏈接:https://codeforces.com/problemset/problem/1400/E 來源:Codeforces 思路:給你一個陣列,現在你可以進行兩種操作,操作1:將一段沒有 0 的區間進行減一的操作,操作2:將 i 位置上的元素歸零。最終問:將這個陣列的全部元素歸零后操作的最少 ......

    uj5u.com 2020-09-10 00:57:30 more
  • UVA11610 【Reverse Prime】

    本人看到此題沒有翻譯,就附帶了一個自己的翻譯版本 思考 這一題,它的第一個要求是找出所有 $7$ 位反向質數及其質因數的個數。 我們應該需要質數篩篩選1~$10^{7}$的所有數,這里就不慢慢介紹了。但是,重讀題,我們突然發現反向質數都是 $7$ 位,而將它反過來后的數字卻是 $6$ 位數,這就說明 ......

    uj5u.com 2020-09-10 00:57:36 more
  • 統計區間素數數量

    1 #pragma GCC optimize(2) 2 #include <bits/stdc++.h> 3 using namespace std; 4 bool isprime[1000000010]; 5 vector<int> prime; 6 inline int getlist(int ......

    uj5u.com 2020-09-10 00:57:47 more
  • C/C++編程筆記:C++中的 const 變數詳解,教你正確認識const用法

    1、C中的const 1、區域const變數存放在堆疊區中,會分配記憶體(也就是說可以通過地址間接修改變數的值)。測驗代碼如下: 運行結果: 2、全域const變數存放在只讀資料段(不能通過地址修改,會發生寫入錯誤), 默認為外部聯編,可以給其他源檔案使用(需要用extern關鍵字修飾) 運行結果: ......

    uj5u.com 2020-09-10 00:58:04 more
  • 【C++犯錯記錄】VS2019 MFC添加資源不懂如何修改資源宏ID

    1. 首先在資源視圖中,添加資源 2. 點擊新添加的資源,復制自動生成的ID 3. 在解決方案資源管理器中找到Resource.h檔案,編輯,使用整個專案搜索和替換的方式快速替換 宏宣告 4. Ctrl+Shift+F 全域搜索,點擊查找全部,然后逐個替換 5. 為什么使用搜索替換而不使用屬性視窗直 ......

    uj5u.com 2020-09-10 00:59:11 more
  • 【C++犯錯記錄】VS2019 MFC不懂的批量添加資源

    1. 打開資源頭檔案Resource.h,在其中預先定義好宏 ID(不清楚其實ID值應該設定多少,可以先新建一個相同的資源項,再在這個資源的ID值的基礎上遞增即可) 2. 在資源視圖中選中專案資源,按F7編輯資源檔案,按 ID 型別 相對路徑的形式添加 資源。(別忘了先把檔案拷貝到專案中的res檔案 ......

    uj5u.com 2020-09-10 01:00:19 more
  • C/C++編程筆記:關于C++的參考型別,專供新手入門使用

    今天要講的是C++中我最喜歡的一個用法——參考,也叫別名。 參考就是給一個變數名取一個變數名,方便我們間接地使用這個變數。我們可以給一個變數創建N個參考,這N + 1個變數共享了同一塊記憶體區域。(參考型別的變數會占用記憶體空間,占用的記憶體空間的大小和指標型別的大小是相同的。雖然參考是一個物件的別名,但 ......

    uj5u.com 2020-09-10 01:00:22 more
  • 【C/C++編程筆記】從頭開始學習C ++:初學者完整指南

    眾所周知,C ++的學習曲線陡峭,但是花時間學習這種語言將為您的職業帶來奇跡,并使您與其他開發人員區分開。您會更輕松地學習新語言,形成真正的解決問題的技能,并在編程的基礎上打下堅實的基礎。 C ++將幫助您養成良好的編程習慣(即清晰一致的編碼風格,在撰寫代碼時注釋代碼,并限制類內部的可見性),并且由 ......

    uj5u.com 2020-09-10 01:00:41 more
最新发布
  • Rust中的智能指標:Box<T> Rc<T> Arc<T> Cell<T> RefCell<T> Weak

    Rust中的智能指標是什么 智能指標(smart pointers)是一類資料結構,是擁有資料所有權和額外功能的指標。是指標的進一步發展 指標(pointer)是一個包含記憶體地址的變數的通用概念。這個地址參考,或 ” 指向”(points at)一些其 他資料 。參考以 & 符號為標志并借用了他們所 ......

    uj5u.com 2023-04-20 07:24:10 more
  • Java的值傳遞和參考傳遞

    值傳遞不會改變本身,參考傳遞(如果傳遞的值需要實體化到堆里)如果發生修改了會改變本身。 1.基本資料型別都是值傳遞 package com.example.basic; public class Test { public static void main(String[] args) { int ......

    uj5u.com 2023-04-20 07:24:04 more
  • [2]SpinalHDL教程——Scala簡單入門

    第一個 Scala 程式 shell里面輸入 $ scala scala> 1 + 1 res0: Int = 2 scala> println("Hello World!") Hello World! 檔案形式 object HelloWorld { /* 這是我的第一個 Scala 程式 * 以 ......

    uj5u.com 2023-04-20 07:23:58 more
  • 理解函式指標和回呼函式

    理解 函式指標 指向函式的指標。比如: 理解函式指標的偽代碼 void (*p)(int type, char *data); // 定義一個函式指標p void func(int type, char *data); // 宣告一個函式func p = func; // 將指標p指向函式func ......

    uj5u.com 2023-04-20 07:23:52 more
  • Django筆記二十五之資料庫函式之日期函式

    本文首發于公眾號:Hunter后端 原文鏈接:Django筆記二十五之資料庫函式之日期函式 日期函式主要介紹兩個大類,Extract() 和 Trunc() Extract() 函式作用是提取日期,比如我們可以提取一個日期欄位的年份,月份,日等資料 Trunc() 的作用則是截取,比如 2022-0 ......

    uj5u.com 2023-04-20 07:23:45 more
  • 一天吃透JVM面試八股文

    什么是JVM? JVM,全稱Java Virtual Machine(Java虛擬機),是通過在實際的計算機上仿真模擬各種計算機功能來實作的。由一套位元組碼指令集、一組暫存器、一個堆疊、一個垃圾回收堆和一個存盤方法域等組成。JVM屏蔽了與作業系統平臺相關的資訊,使得Java程式只需要生成在Java虛擬機 ......

    uj5u.com 2023-04-20 07:23:31 more
  • 使用Java接入小程式訂閱訊息!

    更新完微信服務號的模板訊息之后,我又趕緊把微信小程式的訂閱訊息給實作了!之前我一直以為微信小程式也是要企業才能申請,沒想到小程式個人就能申請。 訊息推送平臺🔥推送下發【郵件】【短信】【微信服務號】【微信小程式】【企業微信】【釘釘】等訊息型別。 https://gitee.com/zhongfuch ......

    uj5u.com 2023-04-20 07:22:59 more
  • java -- 緩沖流、轉換流、序列化流

    緩沖流 緩沖流, 也叫高效流, 按照資料型別分類: 位元組緩沖流:BufferedInputStream,BufferedOutputStream 字符緩沖流:BufferedReader,BufferedWriter 緩沖流的基本原理,是在創建流物件時,會創建一個內置的默認大小的緩沖區陣列,通過緩沖 ......

    uj5u.com 2023-04-20 07:22:49 more
  • Java-SpringBoot-Range請求頭設定實作視頻分段傳輸

    老實說,人太懶了,現在基本都不喜歡寫筆記了,但是網上有關Range請求頭的文章都太水了 下面是抄的一段StackOverflow的代碼...自己大修改過的,寫的注釋挺全的,應該直接看得懂,就不解釋了 寫的不好...只是希望能給視頻網站開發的新手一點點幫助吧. 業務場景:視頻分段傳輸、視頻多段傳輸(理 ......

    uj5u.com 2023-04-20 07:22:42 more
  • Windows 10開發教程_編程入門自學教程_菜鳥教程-免費教程分享

    教程簡介 Windows 10開發入門教程 - 從簡單的步驟了解Windows 10開發,從基本到高級概念,包括簡介,UWP,第一個應用程式,商店,XAML控制元件,資料系結,XAML性能,自適應設計,自適應UI,自適應代碼,檔案管理,SQLite資料庫,應用程式到應用程式通信,應用程式本地化,應用程式 ......

    uj5u.com 2023-04-20 07:22:35 more