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.

How to get HEXDUMP for structural data

….
finalize(char *hdrs, sendip_data *headers[], int index,
sendip_data *data, sendip_data *pack)< br /> {
…….. For debugging purposes, I want a hexadecimal dump of the data and packet stru

October 4, 2021By Simo C & C++ data, HEXDUMP, how to get, structureLeave a Comment

How do I tell the parent thread that is done using PTHREADS in C?

I have a TCP server application that uses POSIX threads and C to serve each client in the new thread.

The server is in its set Call “listen” on the socket. When the client connects, it will g

October 4, 2021By Simo C & C++ China, completion, how to tell, parents, pthreads, threads, useLeave a Comment

Use C, C to detect Windows or Linux

See answer in English> How do I check OS with a preprocessor directive? 16
I am writing a cross-platform program. I want this program to run under Windows and Linux, so I have two different code s

October 4, 2021By Simo C & C++ linux, test, windowsLeave a Comment

How do I handle Sigchld?

I need to handle SIGCHLD correctly. How to use it in existing code. Currently I cannot wait for the child process unless I use 0 instead of WNOHANG | WUNTRACED.

status = 0;
pid_t child, end

October 4, 2021By Simo C & C++ How to deal with SIGCHLDLeave a Comment

How to convert a C string into a RUST string and return via FFI?

I am trying to get the C string returned by the C library and convert it to a Rust string through FFI.

mylib.c

const char* hello(){
return “Hello World!”;
} main.rs

#![feature(li

October 4, 2021By Simo C & C++ By, conversion, FFI, How to, return, Rust, stringLeave a Comment

Calculate the number of characters in the string in c

How to count the number of “_” in a string like “bla_bla_blabla_bla”? #include
std::string s = “a_b_c “;
size_t n = std::count(s.begin(), s.end(),’_’);

How to calculate like ” The number

October 4, 2021By Simo C & C++ appearance, Calculation, Characters, middle, number of times, stringLeave a Comment

Access element beyond the end of the array of C

I have been reading K&R’s book on C and found that the pointer algorithm in C allows access to an element beyond the end of the array. I know that C allows memory to do almost anything, but I just

October 4, 2021By Simo C & C++ Access, array, element, end, exceeding, middleLeave a Comment

How do I determine if I have canceled C objects?

I have an answered previous question in which I described the difficulty of catching exceptions when I try to access an object that has been released by a third-party function. The function sometim

October 4, 2021By Simo C & C++ allocation, cancel, how to determine, object, whetherLeave a Comment

Can the alliance initialize in the statement?

For example, suppose we have a union

typedef union {
unsigned long U32;
float f;
}U_U32_F; Is there any way to set the initial value when declaring this union type variable?

U_U32_F u

October 4, 2021By Simo C & C++ Alliance, Declaration, Initialization, Medium, YesLeave a Comment

Segmentation errors on the server, but not local machines

As stated in the title, the program is running on my local machine (ubuntu 9.10) but not on the server (linux). It is a grid hosting package from godaddy.

Please help..

This is the code

October 4, 2021By Simo C & C++ error, Local, Machine, not, segmentation, serverLeave a Comment

Posts navigation

Page 1 Page 2 … 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