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.

What is the best way to generate a random number in C?

What is the best way to generate random numbers? if and only if:

>You are not looking for “perfect uniform Sex” or
>you don’t have C 11 support, or even TR1 (so you have no other choice)<

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

Objective-c – type instead of insertion characters between variables, enclose in parentheses

I am reading Apple’s documentation and I saw something similar (void(^)(void)). Can someone explain the meaning of this sentence? ^It’s XOR, right? Void XOR Void does not make much sense to me?

September 29, 2021By Simo C & C++ between, Characters, enclosed, INSERT, not, Objective, parentheses, type, variableLeave a Comment

Run a program containing multiple source files in the GNU C compiler

I use DEV GNU c compiler on Windows 7 operating system. I need to know how to compile a program with multiple source files.
This is an example,

#FILE1
void f1()
{
printf(“this is anot

September 29, 2021By Simo C & C++ file, program, sourceLeave a Comment

Use scanf () input characters

I am trying to enter a role into a linked list, where the role can be’A’,’a’,’G’,’g’,’T’,’t’,’ C’or’c’.

I am not familiar with C yet, I know I messed up something:

do{
printf (“\nEnter

September 29, 2021By Simo C & C++ Characters, input, problems, scanf, useLeave a Comment

C – How to use glortho () in OpenGL?

I can’t understand the usage of glOrtho. Can someone explain its usage?

Is it used to set the limits of x, y and z coordinates?

glOrtho(-1.0, 1.0, -1.0, 1.0, -1.0, 1.0); This means that

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

Why SCANF must use the address of the operator

As the title says, I always want to know why scanf must take the address of the operator (&). Because C has only “pass-by-value” parameters, to pass a’variable’ to put a value, you must pass its

September 29, 2021By Simo C & C++ Address, adopt, must, operator, scanf, whyLeave a Comment

PRINTF parameter is insufficient

My question is about the behavior after printf with missing parameters:

printf(“%s blah blah %d “, int); // integer was given as argument (and not int written) I already know that if the form

September 29, 2021By Simo C & C++ insufficient, parameters, printfLeave a Comment

Understand concurrent file writing from multiple processes

From here: Is file append atomic in UNIX

Consider the situation where multiple processes open the same file and append to it. O_APPEND guarantees that the file is found The write operation at

September 29, 2021By Simo C & C++ concurrent, Files, from, multiple, processes, understand, writeLeave a Comment

Use pointer to write and read structures

I am working on a mailbox project, and I have these two structures:

struct mmbox_mail

struct mmbox_mail {
char *sender, *recipient;
char *obj, *date;
char flags;
size_t size;
};

September 29, 2021By Simo C & C++ FREAD, fWrite, pointer, read, structure, use, writeLeave a Comment

c – Use QT5 to get hWnd on Windows (from WID)

I am trying to convert a Qt4 application to Qt5.
The only thing I want to know is how to get the HWND of the Widget.
This program uses EcWin7 to display tasks on win 7 The progress of the bar ico

September 29, 2021By Simo C & C++ from WID, WIDLeave a Comment

Posts navigation

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