Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Category: C & C++

C language is a general-purpose computer programming language with a wide range of applications. The design goal of C language is to provide a programming language that can compile and process low-level memory in a simple manner, generate a small amount of machine code, and can run without any operating environment support. C++ is an object-oriented programming language developed on the basis of C language, which is widely used. C++ supports multiple programming paradigms-object-oriented programming, generic programming and procedural programming.

C inheritance from multiple base classes with the same virtual function name

I tried this code:

class A
{
virtual void foo( ) = 0;
};
class B
{
virtual void foo() = 0;
};
class C: public A, public B
{
//virtual void A::foo(){}
//virtual void B::foo(){}

virtual

September 29, 2021By Simo C & C++ base, class, function, having, inheritance, multiple, Name, Same, VirtualLeave a Comment

CPU and data alignment

Please forgive me if you think this has been answered countless times, but I need to answer the following questions!

>Why must the data be aligned (on a 2-byte/4-byte/8-byte boundary)? What I

September 29, 2021By Simo C & C++ Alignment, CPU, dataLeave a Comment

C – How to set Googletest to shared libraries on Linux

Debian no longer provides any pre-compiled packages for gTest. They recommend that you integrate the framework into the makefile of the project. But I want to keep the makefile clean. How to look l

September 29, 2021By Simo C & C++ Googletest, How to, linux, setting, Share libraryLeave a Comment

c – How do I correctly initialize a member variable of template type?

I suggest that I have a template function, as follows:

template
void doSomething ()
{
T a; // a is correctly initialized if T is a class with a default constructor
…
}; But If T is a prim

September 29, 2021By Simo C & C++ correct, How, Initialization, Member, Template, type, variableLeave a Comment

ESP8266 Chapter II How to Rewrite the ESP Engineering Structure by Makefile

Standard project structure: │ ── Project // Custom project
│ ├── component
│ │ └── button //Component 1: Button package< /span>
│ │ └── include //Component one: key package header file
│ │ └──

September 29, 2021By Simo C & C++ chapter, Engineering, ESP, ESP8266, How to By, Makefile, Overcoming, Second, structureLeave a Comment

C – Define the pre-processor macro through CMAKE?

How to define preprocessor variables through CMake?

The equivalent code is #define foo.

Example of using the new add_compile_definitions:

add_compile_definitions(OPENCV_VERSION=${

September 29, 2021By Simo C & C++ CMake, definition, Machine, macro, pass, pretreatmentLeave a Comment

C – kernel will return to zero?

I am using Debian Squeeze and noticed that the memory is always zero. Is this a new feature in the Linux distribution? Some time ago, I believe I can use puts() and output garbage.

I ran this

September 29, 2021By Simo C & C++ kernel, memory, return, will, zeroLeave a Comment

C – pointer variable is just a “symbol” with some operators?

Edit: The original word choice is confusing. The term “symbolic” is much better than the original term (“mysterious”).

In About In the discussion of my previous C problem, I was told that the

September 29, 2021By Simo C & C++Leave a Comment

Objective-c – Remove duplicate from NSMutableArray

I have a problem removing duplicate objects from the moving array.
I have tried these:

noDuplicates = _personalHistory.personalHistory;
for (int i=[noDuplicates count]-1; i>0; i–) {
if ([n

September 29, 2021By Simo C & C++ deletion, item, nsmutableArray, Objective, repetitionLeave a Comment

c – How to use the command flag to set breakpoints on a future shared library

I am trying to use the –command flag to automate a gdb session. I am trying to set a breakpoint on a function in a shared library (Unix equivalent DLL). My cmds.gdb looks like This way:

set a

September 29, 2021By Simo C & C++ breakpoint, Command, future, how to use, logo, setup, shared libraryLeave a Comment

Posts navigation

Page 1 … Page 3 Page 4 Page 5 … Page 9
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress