Skip to content
Yu's Blog

Yu's Blog

Welcome to my blog

Author: Yucxxxxxx

Posted on April 25, 2023

How to add open source library to SwiftUI project?

Clieck “File” in XCode 2. Copy & paste the library git link 3. Set the dependency 4. Waiting for download

Posted on April 24, 2023

Git: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

Delete the host name by the prompt, and then push codes again.

Posted on April 24, 2023

How to set icon color in Swift?

We can set the icon from SF Symbols in the code: But what if we don’t like the default color of the icon? We can change them by:

Posted on April 24, 2023

Structures and Classes in Swift

Comparing Structures and Classes Structures and classes in Swift have many things in common. Both can: Define properties to store values Define methods to provide functionality Define subscripts to provide access to their values using subscript syntax Define initializers to set up their initial state Be extended to expand their functionality beyond a default implementation …

Continue reading “Structures and Classes in Swift”

Posted on April 13, 2023

How to upload big files(like videos) to GitHub?

1. Down git-lfs [link](https://git-lfs.com/) 2. In command line 3. Tracking file type 4. Add gitattribute file 5. push

Posted on April 13, 2023

How and Why to use dynamic_cast in C++?

When you assign an object of a derived class to an object of a base class, the derived class portion of the object gets sliced off. So if you simply try to call the employee base class operator= function to copy the entire employee portion of the object, the derived class portion will be lost. …

Continue reading “How and Why to use dynamic_cast in C++?”

Posted on April 13, 2023

Keyword “const” in C++

When declaring a member function as const, it means that the function is not allowed to modify the object on which it is called. This allows you to call the function on a const object, ensuring that the object’s state is not changed. In the case of the getFirstName() member function in the example I …

Continue reading “Keyword “const” in C++”

Posted on April 13, 2023

“A:class type redefinition” error in C++

The error “class type redefinition” typically means that you have multiple definitions of the same class in your code, which can cause conflicts and errors. This error can occur if you have included the header file for class A in both A.cpp and B.cpp, or if you have included it multiple times in B.cpp. When …

Continue reading ““A:class type redefinition” error in C++”

Posted on April 13, 2023

How to declare and initialize a static variable in C++?

A static value is associated with the class rather than individual objects. In C++, the static data members are declared inside the class definition but defined outside the class definition. When you declare a static variable in the header file, it creates a declaration of the variable in every file that includes the header. And …

Continue reading “How to declare and initialize a static variable in C++?”

Posted on April 13, 2023

Constructor with char* in C++

Posts navigation

Page 1 Page 2 … Page 20 Next page

CONTACT ME

My GitHub
My LinkedIn

Recent Posts

  • How to add open source library to SwiftUI project?
  • Git: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
  • How to set icon color in Swift?
  • Structures and Classes in Swift
  • How to upload big files(like videos) to GitHub?

Categories

  • Algorithm
  • Android
  • Architecture
  • BlockChain
  • C/C++
  • Cloud
  • Design
  • DevOps
  • Flutter
  • Git
  • Go
  • Java
  • JavaScript
  • Kotlin
  • Mac
  • Machine Learning
  • Networking
  • OS
  • Python
  • Security
  • Server
  • Spring
  • Swift
  • Tool
  • Unity
  • Unreal
  • Vim
  • Windows
  • WordPress

Tags

  • Algorithm
  • Android Studio
  • AndroidStudio
  • Array
  • AWS
  • BackTracking
  • Binary Search
  • Bit Manipulation
  • BST
  • Detached HEAD
  • Docker
  • DynamicProgramming
  • Express
  • Express.js
  • Firebase
  • Flutter
  • git
  • GitHub
  • Google Cloud
  • HashMap
  • Integer
  • Java
  • JavaScript
  • Kotlin
  • Kubernetes
  • LaserDefender
  • LeetCode
  • LinkedList
  • List
  • Mac
  • Node.js
  • OOD
  • OperatingSystem
  • Recursion
  • Server
  • SideProject
  • Sorting
  • Spring
  • Spring Boot
  • String
  • Swift
  • Unity
  • VPS
  • Wechat
  • Windows
September 2023
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  
« Apr    

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org