app hook后 取不到手机的onSignalStrengthsChanged方法中的数据了

一个app用hook做了模拟位置后,就在 PhoneStateListener 里的 onSignalStrengthsChanged方法中得不到数据了,怎么办,谢谢

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
在VBA中同时启用了两个钩子,但只能释放一个怎么回事?
我想通过HOOK同时监控鼠标和键盘的操作,获得鼠标的当前坐标和我按下的按键码。 鼠标这个hook没有问题,但是当我加上键盘hook时候,发现释放不了键盘的hook. 点击结束后,鼠标hook停止了但是键盘还在继续运行。请各位帮帮我。 代码如下: ``` Sub UNHOOK() '卸钩子 UnhookWindowsHookEx Mhook2 UnhookWindowsHookEx Mhook Mhook2 = 0 Mhook = 0 End Sub Sub MOUSEHOOK() Mhook = SetWindowsHookEx(WH_MOUSE_LL, AddressOf MyMhook, Application.Hinstance, 0) Mhook2 = SetWindowsHookEx(WH_KEYBOARD_LL, AddressOf MyMhookkey, Application.Hinstance, 0) If Mhook = 0 Then MsgBox "钩子注册失败" If Mhook2 = 0 Then MsgBox "钩子注册失败" End Sub Public Function MyMhook(ByVal ncode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long If ncode = 0 Then If wParam = WM_MOUSEMOVE Then Dim p As POINTAPI GetCursorPos p GetmousePos.TextBox1.Value = p.X & "," & p.Y End If Else MyMhook = CallNextHookEx(Mhook, ncode, wParam, lParam) End If MyMhook = CallNextHookEx(Mhook, ncode, wParam, lParam) End Function Public Function MyMhookkey(ByVal ncode As Long, ByVal wParam As Long, ByVal lParam As Long) As Long If ncode = 0 Then If wParam = WM_KEYDOWN Then CopyMemory mymsg, ByVal lParam, LenB(mymsg) a = Chr(mymsg.vKey) MsgBox mymsg.vKey End If Else MyMhookkey = CallNextHookEx(Mhook2, ncode, wParam, lParam) End If MyMhookkey = CallNextHookEx(Mhook2, ncode, wParam, lParam) End Function ```
android studio 中 发送虚拟sensorevent陀螺仪数据给app
发送虚拟sensorevent陀螺仪数据给app 一个APP是实时接受内置手机陀螺仪数据。 如何发送虚拟sensorevent数据给他。 求一个不需要hook,不需要root,较详细的解决方案。 学艺不够,现在要用,好苦恼,谢谢大家。
如何 hook 夜神模拟器最新版 的OpenGL中的wglswapbuffers 函数 并且被执行能够跳转到我自己的函数
我想hook 夜神模拟器最新版的客户端 内部设置是opengl 渲染 我用dependency 查看过 它最新版客户端的 dll依赖情况,发现一个问题,它并没有直接依赖gdi32.dll 和opengl32.dll 而是依赖了glut32.dll 然后 这个dll依次依赖上面的2个dll 我现在 去hook gdi32.dll 中的SwapBuffers 函数 hook了但是没有被执行所以没有跳转到我的 函数中,hook opengl32.dll中的 wglSwapBuffers 函数也是一样。
新手求助!Mac程序逆向,在monkeydev中我应该怎么hook下面这句?
百度了很多,但是hook Mac app的教程很少,我想学习下mac程序的逆向。取得一程序的h头文件如下: #import <objc/NSObject.h> **@class** NSArray, NSImage, NSString; **@interface** PCLocation : NSObject { **BOOL** _premium; NSString *_code; NSArray *_includes; NSString *_name; NSString *_tags; NSString *_icon; NSArray *_locations; } **@property** ( **retain** , **nonatomic** ) NSArray *locations; // @synthesize locations=_locations; **@property** ( **copy** , **nonatomic** ) NSString *icon; // @synthesize icon=_icon; **@property** ( **nonatomic** , **getter** =isPremium) **BOOL** premium; // @synthesize premium=_premium; **@property** ( **copy** , **nonatomic** ) NSString *tags; // @synthesize tags=_tags; **@property** ( **copy** , **nonatomic** ) NSString *name; // @synthesize name=_name; **@property** ( **readonly** , **nonatomic** ) NSArray *includes; // @synthesize includes=_includes; **@property** ( **copy** , **nonatomic** ) NSString *code; // @synthesize code=_code; - ( **void** ).cxx_destruct; - ( **BOOL** )isEqual:( **id** )arg1; - ( **id** )initWithDictionary:( **id** )arg1 locations:( **id** )arg2; **@property** ( **readonly** , **nonatomic** ) NSImage *flag; **@property** ( **readonly** , **nonatomic** ) NSString *localizedName; **@end** 求教大神们:在monkeydev中我想hook下面这句: **@property** ( **nonatomic** , **getter** =isPremium) **BOOL** premium; // @synthesize 让它返回true,我不知道怎么写,试了无数次都没有成功,请你们帮帮我这个新手吧!
想通过hook抓取自己app的网络请求,该怎么做呢
公司有个需求,需要在网络请求连接的时候判断url做相应操作,在网上了解到有一个hook技术,但是不知道该怎么写
xposed hook app上下文。hook方法被执行4次 ,每次调用都是4次。跪求解答。
assets xposed_init 主体方法内获取app的上下文,(Application.class, "attach",.....)这种方法获取之后、 hook主体方法又执行了。前后一共会执行4次。求解、怎么处理。急 急 急
api hook的底层实现是怎样的?
有谁知道hook底层的具体实现吗?进程地址空间是彼此独立的,那么hook技术怎么突破这种独立空间检测将一个进程的代码注入到另一个进程中的呢? 具体来说,比如安卓有沙箱机制,那么hook是怎么绕过沙箱将一个进程的代码注入到另一个进程中的? 请不要拿hook就像“钩子”之类的比喻来说事儿,然后上那张经典的钩子图,这种比喻让寻求本质的人感到迷茫。我想知道具体的底层实现,特别是怎么突破进程空间独立这一限制的。
如何用python屏蔽系统热键alt+Tab?
利用python在开发一个锁屏程序,需要屏蔽掉alt+Tab的系统热键 貌似是用hook完成,但是一直没能理解 如何捕捉ALT+Tab?如何中断热键?
netfilter注册Hook函数时同一个挂接点同一优先级问题
linux 内核防火墙netfilter框架中,五个Hook点,点上依据优先级排列各种Hook函数。hook函数在注册时需要指明hook点跟优先级,那么在同一挂接点使用同一优先级注册两个不同的Hook函数,结果如何?在我的测试中,两个hook函数是可以同时调用的,那么这两个函数是如何存储的?linux怎么实现同一优先级下的hook函数调用机制?
Xposed框架中hook了System.load函数导致app崩溃
在Xposed框架中自己编写模块,hook了System.load函数,激活之后会导致QQ浏览器崩溃、UC浏览器提示安装不完全、4.4系统自带浏览器打开黑屏。 查看日志报的错误是“java.lang.NoClassDefFoundError”,同时还伴随“ W/linker(5153): libmsfbootV2.so has text relocations. This is wasting memory and is a security risk. Please fix.”这样的提示信息。 手机型号是HTC D816t,版本是Android 4.4.2,Xposed框架是2.6.1版本,编写模块引入的jar包是“XposedBridgeApi-54”。 求解,是程序增加了防护措施导致java层hook失败么?hook其它函数并不会导致程序完全崩溃的情况。
Xposed框架,hook系统的Build值失败原因
我对普通APP可以hook成功,手机中查看关于手机显示的型号什么的也成功了,但是对打包签名加固过APP就hook失败,查看好多帖子也没试成功,获取Build.MODEL只是普通获取,为什么拦截不了,这是我试过的方法求大神帮帮忙 ![图片说明](https://img-ask.csdn.net/upload/201804/19/1524128558_186494.png) ![图片说明](https://img-ask.csdn.net/upload/201804/19/1524128570_872549.png) ![图片说明](https://img-ask.csdn.net/upload/201804/19/1524128584_832388.png)
C# 全局键盘监听Hook监听不到
使用的是网上的Hook轮子,如下 ``` using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Windows.Forms; using System.Reflection; namespace HookTest { /// <summary> /// 键盘钩子 /// [以下代码来自某网友,并非本人原创] /// </summary> class KeyboardHook { public event KeyEventHandler KeyDownEvent; public event KeyPressEventHandler KeyPressEvent; public event KeyEventHandler KeyUpEvent; public delegate int HookProc (int nCode, Int32 wParam, IntPtr lParam); static int hKeyboardHook = 0; //声明键盘钩子处理的初始值 //值在Microsoft SDK的Winuser.h里查询 // http://www.bianceng.cn/Programming/csharp/201410/45484.htm public const int WH_KEYBOARD_LL = 13; //线程键盘钩子监听鼠标消息设为2,全局键盘监听鼠标消息设为13 HookProc KeyboardHookProcedure; //声明KeyboardHookProcedure作为HookProc类型 //键盘结构 [StructLayout(LayoutKind.Sequential)] public class KeyboardHookStruct { public int vkCode; //定一个虚拟键码。该代码必须有一个价值的范围1至254 public int scanCode; // 指定的硬件扫描码的关键 public int flags; // 键标志 public int time; // 指定的时间戳记的这个讯息 public int dwExtraInfo; // 指定额外信息相关的信息 } //使用此功能,安装了一个钩子 [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int SetWindowsHookEx (int idHook, HookProc lpfn, IntPtr hInstance, int threadId); //调用此函数卸载钩子 [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern bool UnhookWindowsHookEx (int idHook); //使用此功能,通过信息钩子继续下一个钩子 [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern int CallNextHookEx (int idHook, int nCode, Int32 wParam, IntPtr lParam); // 取得当前线程编号(线程钩子需要用到) [DllImport("kernel32.dll")] static extern int GetCurrentThreadId (); //使用WINDOWS API函数代替获取当前实例的函数,防止钩子失效 [DllImport("kernel32.dll")] public static extern IntPtr GetModuleHandle (string name); public void Start () { // 安装键盘钩子 if(hKeyboardHook == 0) { KeyboardHookProcedure = new HookProc(KeyboardHookProc); hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardHookProcedure, GetModuleHandle(System.Diagnostics.Process.GetCurrentProcess().MainModule.ModuleName), 0); //hKeyboardHook = SetWindowsHookEx(WH_KEYBOARD_LL, KeyboardHookProcedure, Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]), 0); //************************************ //键盘线程钩子 //SetWindowsHookEx( 2,KeyboardHookProcedure, IntPtr.Zero, GetCurrentThreadId());//指定要监听的线程idGetCurrentThreadId(), //键盘全局钩子,需要引用空间(using System.Reflection;) //SetWindowsHookEx( 13,MouseHookProcedure,Marshal.GetHINSTANCE(Assembly.GetExecutingAssembly().GetModules()[0]),0); // //关于SetWindowsHookEx (int idHook, HookProc lpfn, IntPtr hInstance, int threadId)函数将钩子加入到钩子链表中,说明一下四个参数: //idHook 钩子类型,即确定钩子监听何种消息,上面的代码中设为2,即监听键盘消息并且是线程钩子,如果是全局钩子监听键盘消息应设为13, //线程钩子监听鼠标消息设为7,全局钩子监听鼠标消息设为14。lpfn 钩子子程的地址指针。如果dwThreadId参数为0 或是一个由别的进程创建的 //线程的标识,lpfn必须指向DLL中的钩子子程。 除此以外,lpfn可以指向当前进程的一段钩子子程代码。钩子函数的入口地址,当钩子钩到任何 //消息后便调用这个函数。hInstance应用程序实例的句柄。标识包含lpfn所指的子程的DLL。如果threadId 标识当前进程创建的一个线程,而且子 //程代码位于当前进程,hInstance必须为NULL。可以很简单的设定其为本应用程序的实例句柄。threaded 与安装的钩子子程相关联的线程的标识符 //如果为0,钩子子程与所有的线程关联,即为全局钩子 //************************************ //如果SetWindowsHookEx失败 if(hKeyboardHook == 0) { Stop(); throw new Exception("安装键盘钩子失败"); } } } public void Stop () { bool retKeyboard = true; if(hKeyboardHook != 0) { retKeyboard = UnhookWindowsHookEx(hKeyboardHook); hKeyboardHook = 0; } if(!(retKeyboard)) throw new Exception("卸载钩子失败!"); } //ToAscii职能的转换指定的虚拟键码和键盘状态的相应字符或字符 [DllImport("user32")] public static extern int ToAscii (int uVirtKey, //[in] 指定虚拟关键代码进行翻译。 int uScanCode, // [in] 指定的硬件扫描码的关键须翻译成英文。高阶位的这个值设定的关键,如果是(不压) byte[] lpbKeyState, // [in] 指针,以256字节数组,包含当前键盘的状态。每个元素(字节)的数组包含状态的一个关键。如果高阶位的字节是一套,关键是下跌(按下)。在低比特,如果设置表明,关键是对切换。在此功能,只有肘位的CAPS LOCK键是相关的。在切换状态的NUM个锁和滚动锁定键被忽略。 byte[] lpwTransKey, // [out] 指针的缓冲区收到翻译字符或字符。 int fuState); // [in] Specifies whether a menu is active. This parameter must be 1 if a menu is active, or 0 otherwise. //获取按键的状态 [DllImport("user32")] public static extern int GetKeyboardState (byte[] pbKeyState); [DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] private static extern short GetKeyState (int vKey); private const int WM_KEYDOWN = 0x100;//KEYDOWN private const int WM_KEYUP = 0x101;//KEYUP private const int WM_SYSKEYDOWN = 0x104;//SYSKEYDOWN private const int WM_SYSKEYUP = 0x105;//SYSKEYUP private int KeyboardHookProc (int nCode, Int32 wParam, IntPtr lParam) { // 侦听键盘事件 if((nCode >= 0) && (KeyDownEvent != null || KeyUpEvent != null || KeyPressEvent != null)) { KeyboardHookStruct MyKeyboardHookStruct = (KeyboardHookStruct)Marshal.PtrToStructure(lParam, typeof(KeyboardHookStruct)); // raise KeyDown if(KeyDownEvent != null && (wParam == WM_KEYDOWN || wParam == WM_SYSKEYDOWN)) { Keys keyData = (Keys)MyKeyboardHookStruct.vkCode; KeyEventArgs e = new KeyEventArgs(keyData); KeyDownEvent(this, e); } //键盘按下 if(KeyPressEvent != null && wParam == WM_KEYDOWN) { byte[] keyState = new byte[256]; GetKeyboardState(keyState); byte[] inBuffer = new byte[2]; if(ToAscii(MyKeyboardHookStruct.vkCode, MyKeyboardHookStruct.scanCode, keyState, inBuffer, MyKeyboardHookStruct.flags) == 1) { KeyPressEventArgs e = new KeyPressEventArgs((char)inBuffer[0]); KeyPressEvent(this, e); } } // 键盘抬起 if(KeyUpEvent != null && (wParam == WM_KEYUP || wParam == WM_SYSKEYUP)) { Keys keyData = (Keys)MyKeyboardHookStruct.vkCode; KeyEventArgs e = new KeyEventArgs(keyData); KeyUpEvent(this, e); } } //如果返回1,则结束消息,这个消息到此为止,不再传递。 //如果返回0或调用CallNextHookEx函数则消息出了这个钩子继续往下传递,也就是传给消息真正的接受者 return CallNextHookEx(hKeyboardHook, nCode, wParam, lParam); } ~KeyboardHook () { Stop(); } } } ``` 今天做个测试,想要全局监听键盘事件,一开始测试没什么问题 都能正常监听,但是后来我不小心切换到lol作为最前端窗口的时候发现不能用了,监听不到键盘事件了,而且我又发现tgp窗口焦点的时候也不行,我是新手,求大神指点
Crazy Basketball Fan 具体的实现
Problem Description Alex is a big fan of basketball and he enjoys watching NBA matches. But as he always has classes in the morning when the game is on, he has to read literal living broadcast with his cellphone instead of TV live. The living broadcast gives messages about who scores or who gets the rebound, etc. After watching a few games with his cellphone, Alex finds a problem. After each game, he wants to know the status of the players (score, rebound…) but the system always fails to give. So Alex decides to calculate himself. Can you help him? If one of your teammates is a crazy basketball fan, you should make him solve this problem because he will find it interesting while working on this problem. Input The first line of input contains an integer t (t<=10) indicate the number of cases. In each case, the first line contains the names of the two teams in the form of "A vs B", where A stands for the name of home team and B stands for the name of away team. The following 12 lines contain the name of the players play for the home team and another 12 lines contain the name of the players play for the away team. The first five players of each team will be the starters meaning they are on court when the game starts. All the names only contain letters from 'a' to 'z' and 'A' to 'Z' and ''' without space and the length of each name is no more than 20. All the players' names in one case will be different. Then a line contains an integer n (2<=n<=500) indicates the number of the messages given by the broadcast. The next n lines contain the messages, one message per line. The first line will always contain "Begin" and the last line will always contain "End". The game won't end during a shot or free throw, but may end at any other time. A message in other lines may be one of the following (x, x1 and x2 stand for players from the teams, m and M stand for numbers): Jump Ball x1 vs x2: this message will only be given on the second line right after "Begin". This means two players from different teams are jumping for the ball. This message will always be followed by "x Hold Ball" and x could be anyone. x Hold Ball: this message will be given if the ball is currently in no one's hand, which means: after jump ball or after a shot was made (including the last free throw) or after a shot was blocked or after timeout. x1 Pass to x2: this means the ball is passed from x1 to x2. x1 is deferent from x2 and they are from the same team. Layup/Slam Dunk/Hook Shot/Jump Shot/3pt Shot: the first four messages stand for an attempt for 2-point shot while the last message stand for an attempt for 3-point shot. These messages will only be given when someone is currently holding the ball. These messages may be followed by "Made"/"Missed"/"Blocked by x"/"x Foul". Made/Missed: If a shot was made and scored, "Made" will be given, otherwise "Missed". These two messages will be given right after a shot was attempted if the shot was not fouled or blocked. If the shot was fouled, these two messages will still be given right after "x Foul" to indicate whether the shot was made even with the foul. But if a shot was blocked, these messages will not be given since the shot is definitely missed. x Rebound: If a shot was missed, this message will be given to indicate who get the rebound (could be anyone from both teams). If someone gets the rebound, he holds the ball. Blocked by x: If a shot is blocked, this message will be given right after the message which indicates the shot. This message will always be followed by "x Hold Ball" and x could be anyone. A shot will only be blocked by a player from the opposite team with the shooter. x Foul: this message will be given when a player commit a foul to another player from the opposite team. There are two kind of foul. If this message is given right after the shot attempt, then this foul will lead to free throws. Otherwise this message will be followed by "x Hold Ball". Free Throw m of M: If a shot is fouled, the shooter will make free throws. If the fouled shot is made, then the shooter will only make one free throw. If it's missed and it's a 2-point shot, the shooter will make two free throws. If it's missed and it's a 3-point shot, the shooter will make three free throws. Each made free throw earns one point. In this message, m indicates the number of this free throw (start from 1) and M indicates the number of total free throws this player is going to attempt. Both m and M will be no bigger than 3 and m is no bigger than M. After each free throw there will be a message says "Made" or "Missed" to indicate whether the free throw is made or missed. If the last free throw is missed, just like normal shot, someone will get the rebound and if it's made, a player from the opposite team will hold the ball. No block could be made during the free throws. x Steal: If a player is now holding the ball, a player from the opposite team could steal the ball away. If someone steals the ball, he will hold it. x1 Substitution replaced by x2: this message means x1 is off court and replaced by x2. x1 and x2 are from the same team. This could only happen during timeout or before free throw or after a foul which doesn't lead to free throw. The player who is going to make a free throw won't be replaced. Before free throw means before any "Free Throw m of M" despite of m and M. Timeout: timeout could be called when someone is holding the ball. During timeout, substitution could be made. Timeout is ended with the message "x Hold Ball". It is guaranteed that all the messages are valid and follow the rules. The names of the players will not be the same with words like "rebound" and "block", etc. Actually all the names will be familiar to you if you watch NBA a lot. Output The first output line for each case will be "x1 n1-n2 x2", where x1 and x2 stand for the name of home team and away team and n1 and n2 stand for their total points. Then for each player from each team, calculate the number of his points, rebounds (including offensive and defensive), assists, steals, blocks and fouls. An assist is made when player x1 passes to player x2 and x2 makes a shot (2-pt or 3-pt) and then x1 gets the assist. A rebound is an offensive rebound when the shoot and the player who gets the rebound are from the same team (even the same player); otherwise it's a defensive rebound. Also you have to calculate the number of a player's made field goals (including 2-pt and 3-pt), attempted field goals (including 2-pt and 3-pt), made 3-pt shots, attempted 3-pt shots, made free throws and attempted free throws. Notice: if a shot is fouled and it's missed, it won't be counted as an attempt, but if it's fouled and made, it will be counted as an attempt and a made. The output form is shown in the sample output (PTS - points, OFF - offensive rebound, DEF - defensive rebound, REB - total rebound, AST - assist, STL - steal, BLK - block, PF - personal foul, FGM-A - field goal made and attempted, 3PM-A - 3-pt made and attempted, FTM-A - free throw made and attempted). There are 14 spaces before the word "PLAYER" and exact one space between each column. All the names and numbers are under their column and right alignment. The order of the players is the same with input. Home team first, then comes the away team. If a player didn't play at all (never on court), then you should print "DNP - Coach's Decision" 10 spaces after their names. Print a single line after each case. Sample Input 1 Lakers vs Celtics DerekFisher KobeBryant RonArtest PauGasol AndrewBynum LamarOdom MattBarnes SteveBlake ShannonBrown LukeWalton DerrickCaracter DevinEbanks RajonRondo RayAllen PaulPierce KevinGarnett ShaquilleO'Neal JeffGreen VonWafer GlenDavis JermaineO'Neal TroyMurphy NenadKrstic CarlosArroyo 17 Begin Jump Ball KevinGarnett vs PauGasol KobeBryant Hold Ball KobeBryant Pass to PauGasol Slam Dunk Made RajonRondo Hold Ball RajonRondo Pass to PaulPierce Jump Shot RonArtest Foul Missed Free Throw 1 of 2 Made Free Throw 2 of 2 Missed PauGasol Rebound End Sample Output Lakers 2-1 Celtics Lakers PLAYER PTS OFF DEF REB AST STL BLK PF FGM-A 3PM-A FTM-A DerekFisher 0 0 0 0 0 0 0 0 0-0 0-0 0-0 KobeBryant 0 0 0 0 1 0 0 0 0-0 0-0 0-0 RonArtest 0 0 0 0 0 0 0 1 0-0 0-0 0-0 PauGasol 2 0 1 1 0 0 0 0 1-1 0-0 0-0 AndrewBynum 0 0 0 0 0 0 0 0 0-0 0-0 0-0 LamarOdom DNP - Coach's Decision MattBarnes DNP - Coach's Decision SteveBlake DNP - Coach's Decision ShannonBrown DNP - Coach's Decision LukeWalton DNP - Coach's Decision DerrickCaracter DNP - Coach's Decision DevinEbanks DNP - Coach's Decision Celtics PLAYER PTS OFF DEF REB AST STL BLK PF FGM-A 3PM-A FTM-A RajonRondo 0 0 0 0 0 0 0 0 0-0 0-0 0-0 RayAllen 0 0 0 0 0 0 0 0 0-0 0-0 0-0 PaulPierce 1 0 0 0 0 0 0 0 0-0 0-0 1-2 KevinGarnett 0 0 0 0 0 0 0 0 0-0 0-0 0-0 ShaquilleO'Neal 0 0 0 0 0 0 0 0 0-0 0-0 0-0 JeffGreen DNP - Coach's Decision VonWafer DNP - Coach's Decision GlenDavis DNP - Coach's Decision JermaineO'Neal DNP - Coach's Decision TroyMurphy DNP - Coach's Decision NenadKrstic DNP - Coach's Decision CarlosArroyo DNP - Coach's Decision
Crazy Basketball Fan 问题
Problem Description Alex is a big fan of basketball and he enjoys watching NBA matches. But as he always has classes in the morning when the game is on, he has to read literal living broadcast with his cellphone instead of TV live. The living broadcast gives messages about who scores or who gets the rebound, etc. After watching a few games with his cellphone, Alex finds a problem. After each game, he wants to know the status of the players (score, rebound…) but the system always fails to give. So Alex decides to calculate himself. Can you help him? If one of your teammates is a crazy basketball fan, you should make him solve this problem because he will find it interesting while working on this problem. Input The first line of input contains an integer t (t<=10) indicate the number of cases. In each case, the first line contains the names of the two teams in the form of "A vs B", where A stands for the name of home team and B stands for the name of away team. The following 12 lines contain the name of the players play for the home team and another 12 lines contain the name of the players play for the away team. The first five players of each team will be the starters meaning they are on court when the game starts. All the names only contain letters from 'a' to 'z' and 'A' to 'Z' and ''' without space and the length of each name is no more than 20. All the players' names in one case will be different. Then a line contains an integer n (2<=n<=500) indicates the number of the messages given by the broadcast. The next n lines contain the messages, one message per line. The first line will always contain "Begin" and the last line will always contain "End". The game won't end during a shot or free throw, but may end at any other time. A message in other lines may be one of the following (x, x1 and x2 stand for players from the teams, m and M stand for numbers): Jump Ball x1 vs x2: this message will only be given on the second line right after "Begin". This means two players from different teams are jumping for the ball. This message will always be followed by "x Hold Ball" and x could be anyone. x Hold Ball: this message will be given if the ball is currently in no one's hand, which means: after jump ball or after a shot was made (including the last free throw) or after a shot was blocked or after timeout. x1 Pass to x2: this means the ball is passed from x1 to x2. x1 is deferent from x2 and they are from the same team. Layup/Slam Dunk/Hook Shot/Jump Shot/3pt Shot: the first four messages stand for an attempt for 2-point shot while the last message stand for an attempt for 3-point shot. These messages will only be given when someone is currently holding the ball. These messages may be followed by "Made"/"Missed"/"Blocked by x"/"x Foul". Made/Missed: If a shot was made and scored, "Made" will be given, otherwise "Missed". These two messages will be given right after a shot was attempted if the shot was not fouled or blocked. If the shot was fouled, these two messages will still be given right after "x Foul" to indicate whether the shot was made even with the foul. But if a shot was blocked, these messages will not be given since the shot is definitely missed. x Rebound: If a shot was missed, this message will be given to indicate who get the rebound (could be anyone from both teams). If someone gets the rebound, he holds the ball. Blocked by x: If a shot is blocked, this message will be given right after the message which indicates the shot. This message will always be followed by "x Hold Ball" and x could be anyone. A shot will only be blocked by a player from the opposite team with the shooter. x Foul: this message will be given when a player commit a foul to another player from the opposite team. There are two kind of foul. If this message is given right after the shot attempt, then this foul will lead to free throws. Otherwise this message will be followed by "x Hold Ball". Free Throw m of M: If a shot is fouled, the shooter will make free throws. If the fouled shot is made, then the shooter will only make one free throw. If it's missed and it's a 2-point shot, the shooter will make two free throws. If it's missed and it's a 3-point shot, the shooter will make three free throws. Each made free throw earns one point. In this message, m indicates the number of this free throw (start from 1) and M indicates the number of total free throws this player is going to attempt. Both m and M will be no bigger than 3 and m is no bigger than M. After each free throw there will be a message says "Made" or "Missed" to indicate whether the free throw is made or missed. If the last free throw is missed, just like normal shot, someone will get the rebound and if it's made, a player from the opposite team will hold the ball. No block could be made during the free throws. x Steal: If a player is now holding the ball, a player from the opposite team could steal the ball away. If someone steals the ball, he will hold it. x1 Substitution replaced by x2: this message means x1 is off court and replaced by x2. x1 and x2 are from the same team. This could only happen during timeout or before free throw or after a foul which doesn't lead to free throw. The player who is going to make a free throw won't be replaced. Before free throw means before any "Free Throw m of M" despite of m and M. Timeout: timeout could be called when someone is holding the ball. During timeout, substitution could be made. Timeout is ended with the message "x Hold Ball". It is guaranteed that all the messages are valid and follow the rules. The names of the players will not be the same with words like "rebound" and "block", etc. Actually all the names will be familiar to you if you watch NBA a lot. Output The first output line for each case will be "x1 n1-n2 x2", where x1 and x2 stand for the name of home team and away team and n1 and n2 stand for their total points. Then for each player from each team, calculate the number of his points, rebounds (including offensive and defensive), assists, steals, blocks and fouls. An assist is made when player x1 passes to player x2 and x2 makes a shot (2-pt or 3-pt) and then x1 gets the assist. A rebound is an offensive rebound when the shoot and the player who gets the rebound are from the same team (even the same player); otherwise it's a defensive rebound. Also you have to calculate the number of a player's made field goals (including 2-pt and 3-pt), attempted field goals (including 2-pt and 3-pt), made 3-pt shots, attempted 3-pt shots, made free throws and attempted free throws. Notice: if a shot is fouled and it's missed, it won't be counted as an attempt, but if it's fouled and made, it will be counted as an attempt and a made. The output form is shown in the sample output (PTS - points, OFF - offensive rebound, DEF - defensive rebound, REB - total rebound, AST - assist, STL - steal, BLK - block, PF - personal foul, FGM-A - field goal made and attempted, 3PM-A - 3-pt made and attempted, FTM-A - free throw made and attempted). There are 14 spaces before the word "PLAYER" and exact one space between each column. All the names and numbers are under their column and right alignment. The order of the players is the same with input. Home team first, then comes the away team. If a player didn't play at all (never on court), then you should print "DNP - Coach's Decision" 10 spaces after their names. Print a single line after each case. Sample Input 1 Lakers vs Celtics DerekFisher KobeBryant RonArtest PauGasol AndrewBynum LamarOdom MattBarnes SteveBlake ShannonBrown LukeWalton DerrickCaracter DevinEbanks RajonRondo RayAllen PaulPierce KevinGarnett ShaquilleO'Neal JeffGreen VonWafer GlenDavis JermaineO'Neal TroyMurphy NenadKrstic CarlosArroyo 17 Begin Jump Ball KevinGarnett vs PauGasol KobeBryant Hold Ball KobeBryant Pass to PauGasol Slam Dunk Made RajonRondo Hold Ball RajonRondo Pass to PaulPierce Jump Shot RonArtest Foul Missed Free Throw 1 of 2 Made Free Throw 2 of 2 Missed PauGasol Rebound End Sample Output Lakers 2-1 Celtics Lakers PLAYER PTS OFF DEF REB AST STL BLK PF FGM-A 3PM-A FTM-A DerekFisher 0 0 0 0 0 0 0 0 0-0 0-0 0-0 KobeBryant 0 0 0 0 1 0 0 0 0-0 0-0 0-0 RonArtest 0 0 0 0 0 0 0 1 0-0 0-0 0-0 PauGasol 2 0 1 1 0 0 0 0 1-1 0-0 0-0 AndrewBynum 0 0 0 0 0 0 0 0 0-0 0-0 0-0 LamarOdom DNP - Coach's Decision MattBarnes DNP - Coach's Decision SteveBlake DNP - Coach's Decision ShannonBrown DNP - Coach's Decision LukeWalton DNP - Coach's Decision DerrickCaracter DNP - Coach's Decision DevinEbanks DNP - Coach's Decision Celtics PLAYER PTS OFF DEF REB AST STL BLK PF FGM-A 3PM-A FTM-A RajonRondo 0 0 0 0 0 0 0 0 0-0 0-0 0-0 RayAllen 0 0 0 0 0 0 0 0 0-0 0-0 0-0 PaulPierce 1 0 0 0 0 0 0 0 0-0 0-0 1-2 KevinGarnett 0 0 0 0 0 0 0 0 0-0 0-0 0-0 ShaquilleO'Neal 0 0 0 0 0 0 0 0 0-0 0-0 0-0 JeffGreen DNP - Coach's Decision VonWafer DNP - Coach's Decision GlenDavis DNP - Coach's Decision JermaineO'Neal DNP - Coach's Decision TroyMurphy DNP - Coach's Decision NenadKrstic DNP - Coach's Decision CarlosArroyo DNP - Coach's Decision
NS3进行可视化编译时出错AttributeError: 'module' object has no attribute 'require_foreign'
在安装NS3后想通过可视化界面看示例编译出错 ``` @ubuntu:~/software/ns-allinone-3.29/ns-3.29$ ./waf --pyrun src/flow-monitor/examples/wifi-olsr-flowmon.py --vis Waf: Entering directory `/home/Alao8B/software/ns-allinone-3.29/ns-3.29/build' [2497/2757] Linking build/examples/tutorial/ns3.29-third-debug Waf: Leaving directory `/home/Alao8B/software/ns-allinone-3.29/ns-3.29/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (5.867s) Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/XXX/software/ns-allinone-3.29/ns-3.29/src/visualizer/visualizer/__init__.py", line 2, in <module> from core import start, register_plugin, set_bounds, add_initialization_hook File "/home/XXX/software/ns-allinone-3.29/ns-3.29/src/visualizer/visualizer/core.py", line 41, in <module> gi.require_foreign("cairo") AttributeError: 'module' object has no attribute 'require_foreign' ``` 请问大家有没有遇到类似问题 谢谢
windbg下断点后怎么调试dll hook后的函数的堆栈数据呢?
windbg下断点后怎么调试dll hook后的函数的堆栈数据呢?我想从中得到返回函数的地址,为什么不是函数入口地址?
pyinstaller 打包文件时出现pre-safe-import-module hook failed, needs fixing.的错误
pyinstaller 打包文件时出现错误。 ``` 3113 INFO: Processing pre-safe import module hook urllib3.packages.six.moves pre-safe-import-module hook failed, needs fixing. ``` 无法生成exe文件 版本:python3.7 本人初学python,小白一个, 求教大佬是怎么回事,如何解决。。
api hook openprocess,启动任务管理器终止进程并没有调用openprocess?
想做进程保护,api hook openprocess,启动任务管理器终止进程并没有调用openprocess? 测试代码调用openprocess确实可以跳转到我写的myopenprocess,可是在任务管理器终止进程却没有调用openprocess?
The gold miners 程序的编写
Problem Description There are some funny mini games on the internet. Sailormoon girls usually play these games in them spare time. They always play a mini game named THE GOLD MINNERS. Now they give you a problem about this game. Could you solve it? Now let’s look at the following picture. We set the position of the minner as the origin of coordinate.There are many objects in this game,not only gold. They also have diamonds,stones,and other unknown things.All the objects can be treated as polygon. Every two polygons can not intersect. In this problem,we will give you some data about the angle in order. When the hook with certain angle sinking, it will always catch nearest object, and get the corresponding money. There will be nothing in the position of this object later. If there have no objects,the hook will return back to the origin of coordinate. How much money does the minner have at last?Do you know? Input There are multiple test cases. Each case begins with a positive integer N (0 <= N <= 30) , it means there are N objects. The following N * 2 lines describe the informatin about objects. Each object starts with a positive integer V (3 <= V <= 15), it means this object can be treated as a polygon with V vertex. Followed by a positive integer W which is the value of this object. The next line contains V * 2 decimal number. X1,Y1,X2,Y2……Xv,Yv. You can suppose all coordinate data are in the double range.Vertex coordinates clockwise. Then followed by a positive integer M (M <= 100) which is number of the minner cast hook. The following M lines contains M positive integer.The Xth integer means the angle with which the minner cast hook the Xth.(0 < angle < 180) Output Calculate and print the value of the minner earn at last for each test case. Sample Input 4 4 158 0.0 -1.0 2.0 -1.0 0.0 -3.0 -1.0 -2.0 4 37 4.0 -1.0 4.0 -2.0 3.0 -2.0 3.0 -1.0 6 360 2.0 -3.0 3.0 -3.0 2.0 -5.0 1.0 -5.0 1.0 -4.0 2.0 -4.0 5 223 -2.0 -4.0 -2.0 -5.0 -3.0 -6.0 -4.0 -5.0 -4.0 -4.0 3 45 16 127 5 4 10 -3.0 0.0 -2.0 -1.0 -3.0 -1.0 -4.0 0.0 4 208 -2.0 0.0 0.0 -1.0 3.0 -1.0 0.0 -3.0 6 660 3.0 -2.0 4.0 -2.0 5.0 -3.0 6.0 -3.0 6.0 -6.0 3.0 -6.0 4 25 -1.0 -4.0 2.0 -4.0 2.0 -6.0 -1.0 -6.0 3 18 0.0 -7.0 1.0 -8.0 -1.0 -8.0 3 34 64 90 Sample Output 418 251
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
使用 Docker 部署 Spring Boot 项目
Docker 技术发展为微服务落地提供了更加便利的环境,使用 Docker 部署 Spring Boot 其实非常简单,这篇文章我们就来简单学习下。首先构建一个简单的 S...
英特尔不为人知的 B 面
从 PC 时代至今,众人只知在 CPU、GPU、XPU、制程、工艺等战场中,英特尔在与同行硬件芯片制造商们的竞争中杀出重围,且在不断的成长进化中,成为全球知名的半导体公司。殊不知,在「刚硬」的背后,英特尔「柔性」的软件早已经做到了全方位的支持与支撑,并持续发挥独特的生态价值,推动产业合作共赢。 而对于这一不知人知的 B 面,很多人将其称之为英特尔隐形的翅膀,虽低调,但是影响力却不容小觑。 那么,在...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
白话阿里巴巴Java开发手册高级篇
不久前,阿里巴巴发布了《阿里巴巴Java开发手册》,总结了阿里巴巴内部实际项目开发过程中开发人员应该遵守的研发流程规范,这些流程规范在一定程度上能够保证最终的项目交付质量,通过在时间中总结模式,并推广给广大开发人员,来避免研发人员在实践中容易犯的错误,确保最终在大规模协作的项目中达成既定目标。 无独有偶,笔者去年在公司里负责升级和制定研发流程、设计模板、设计标准、代码标准等规范,并在实际工作中进行...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
redis分布式锁,面试官请随便问,我都会
文章有点长并且绕,先来个图片缓冲下! 前言 现在的业务场景越来越复杂,使用的架构也就越来越复杂,分布式、高并发已经是业务要求的常态。像腾讯系的不少服务,还有CDN优化、异地多备份等处理。 说到分布式,就必然涉及到分布式锁的概念,如何保证不同机器不同线程的分布式锁同步呢? 实现要点 互斥性,同一时刻,智能有一个客户端持有锁。 防止死锁发生,如果持有锁的客户端崩溃没有主动释放锁,也要保证锁可以正常释...
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
Java世界最常用的工具类库
Apache Commons Apache Commons有很多子项目 Google Guava 参考博客
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
为什么要学数据结构?
一、前言 在可视化化程序设计的今天,借助于集成开发环境可以很快地生成程序,程序设计不再是计算机专业人员的专利。很多人认为,只要掌握几种开发工具就可以成为编程高手,其实,这是一种误解。要想成为一个专业的开发人员,至少需要以下三个条件: 1) 能够熟练地选择和设计各种数据结构和算法 2) 至少要能够熟练地掌握一门程序设计语言 3) 熟知所涉及的相关应用领域的知识 其中,后两个条件比较容易实现,而第一个...
Android 9.0 init 启动流程
阅读五分钟,每日十点,和您一起终身学习,这里是程序员Android本篇文章主要介绍Android开发中的部分知识点,通过阅读本篇文章,您将收获以下内容:一、启动流程概述一、 启动流程概述Android启动流程跟Linux启动类似,大致分为如下五个阶段。1.开机上电,加载固化的ROM。2.加载BootLoader,拉起Android OS。3.加载Uboot,初始外设,引导Kernel启动等。...
相关热词 c# 二进制截断字符串 c#实现窗体设计器 c#检测是否为微信 c# plc s1200 c#里氏转换原则 c# 主界面 c# do loop c#存为组套 模板 c# 停掉协程 c# rgb 读取图片
立即提问