?? ???? ??? ??? ??: Windows ?? ??? ?? ??? ??
??: ?? ??? ???? ?? ??????? ??? ???? ??? ??????
??:
Windows Core ??? ?????? ?? ??? ???? ?? ??????? ??? ???? ????? ?????. ??? ? ??? ???? ??? ???? C# ?? ??????? ????.
using System; using System.Runtime.InteropServices; using System.Collections.Generic; namespace SetAppVolume { class Program { static void Main(string[] args) { const string app = "Mozilla Firefox"; foreach (string name in EnumerateApplications()) { Console.WriteLine("應(yīng)用名稱:" + name); if (name == app) { // 顯示靜音狀態(tài)和音量級別(相對于主音量百分比) Console.WriteLine("靜音:" + GetApplicationMute(app)); Console.WriteLine("音量:" + GetApplicationVolume(app)); // 靜音應(yīng)用程序 SetApplicationMute(app, true); // 將音量設(shè)置為主音量的二分之一(50%) SetApplicationVolume(app, 50); } } } // ... (GetApplicationVolume, GetApplicationMute, SetApplicationVolume, SetApplicationMute, EnumerateApplications 函數(shù)代碼保持不變) ... } }
(??? GetApplicationVolume
, GetApplicationMute
, SetApplicationVolume
, SetApplicationMute
, EnumerateApplications
??? ??? ?? ??? ????? ?????. ??? ??? ?? ???? ???? ????. )
? ??? ??? ??????("Mozilla Firefox")? ?? ? ??? ??? ????? ???? ????? ???? ??? ?????. ? ??? ????? ????? ??? COM ??? ???? ???. ?? ? ??? ?? ?????? ?? ?? ??????? ?? ??? ?? ?? ? ??? ?????? ??? ? ????.
? ??? Windows ?? ??? ???? ?? ?? ???? ?? ??? ??? ??? ? ?????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











?, ?? ???? C? ??? ??, ?? ??? ? ??????. 1. ?? ???? ??? ??? ?? ?? ??? ?? ?? ??? ?????. 2. ????? ??? ?? ??? ?? ??? ??? ?? ? ??? ?????. 3. ??? ???? ?? ?? ???? ???? ?? ?? ??? ??? ????? ????? ???? ?????.

C? ? ?? ?? ??? ??? ??? : ??? ?? ??? ? ??? ???. 1. ??? ?? ???? ?? ??? ? ???? ?? ????? ?? ??? ????? ?? ???? ??? ? ????. 2. ??? ???? ?? ?? ? ??? ?? ???? ???? ??? ?? ?? ??? ?????.

?, C? ???? ?? ?????. 1) ??? ??? ?? ?? ? ??? ???? ?????. 2) ?? ???? ???? ??? ????. 3) ?? ??? ????? ??? ?? ???? ??? ??? ? ??????. ?? ? ??? ?? ???? ???? ??? ?????? ??? ?? ?????.

C DestructorsCanleadToSeVeralCommonerrors.toaVoidthem : 1) ?? ?? ?? ?? ?? ?? ???

?? ???? ??? C?? ??? ??? ???? ??? : ? ????? ? ? ????? C? ??? ? ????? ?? ?? ??? ?? ??? ???? ?????. 1. ?? ??? ???? C? ?? ??? ???? ?? ?? ?? Curly Braces {}? ???? ?? ??? ?? ??? ???????. 2. ?? ??? ? ??? ?? ???? C?? ?? ??? ?? ????? ??? ???? ???? ???? ??? ?????? ???????. RAII ??? ?? ??? ??? ? ????. 3. ?? ? ??? ???? C? ?? ?, ??? ? ???? ?? ??? ??????? ??? ???? ?? ?? ??? ???????. 4. ?? ????? ???? STL? ??? ????? ????? ????? ???? ????? ????? ???????. 5

C? ???? ??? ??? ? ??? ?? ????? ????. 1. ??? ???? ?? ??? ?? ????? ???? ??? ??? ???? ?? ? ? ????. 2. ??? ?? ???? ?? ??? ? ???? ?? ????, ??? ???? ?????.

C polymorphismincludescompile time, ??? ? Templatepolymorphism.1) compile-timepolymorphismusesfunctionandoveroveroverforlogy

C DestructorseSpecialmembections? ScopeorisDeleted?? whoenanobjectgoesout.1) theaUcialmanagingMemory, FileHandles ? NetworkConnection.2) ??? wengrectdefiningdestructorsfordynamicmemory, LeadingTomemo
