Jay's blog
  • Home
  • Archives
  • Categories
  • Tags
  • About

C++ substr() 使用方式

本篇介紹 substr 取出子字串的方式,以及補充一般陣列如何取出子字串 substr用法substr(參數a, 參數b) 參數a 為要取出子字串的起始索引位置,若要取出 “3” 就輸入該索引位置為 2參數b 從起始索引往後取幾個字串,若只取 “3” 則輸入 1,取 “34” 則輸入 2。 123string s = "123456789";cout << s.
2024-08-02
C++ Standard Library
#C++ Library

[Leetcode] 2678.Number of Senior Citizens

題目You are given a 0-indexed array of strings details. Each element of details provides information about a given passenger compressed into a string of length 15. The system is such that: The first te
2024-08-01
Leetcode > Array
#Array #String

mac自動開機和音效關閉

適用macbook pro 2016後的機型 打開終端機輸入下面命令 自動開機 開啟 1sudo nvram AutoBoot=%03 關閉 1sudo nvram AutoBoot=%00 開機音效 開啟 1sudo nvram BootAudio=%01 關閉 1sudo nvram BootAudio=%00 注意指令輸入完後會需要輸入使用者密碼
2024-08-01
mac相關設定
#macOS

Hello World

這裡為Jay’s部落格的開端,將寫一些資訊技術相關的文章,但目前會先以學習筆記為主。 第一支程式12345678#include <stdio.h>int main() { printf("Hello World\n"); return 0;}
2024-08-01

Search

Hexo Fluid