c tag

1304 questions


4 answers
37 views
0
Why shouldn't I use volatile for synchronization between threads?

To synchronize the two threads in C language, I wrote a program similar to the following: volatile int hoge=0;//...void fuga1() // running on thread 1{ while(1) { while(hoge==0)// Wait for the value ...

c
2 years ago

4 answers
39 views
0
Why shouldn't I use volatile for synchronization between threads?

To synchronize the two threads in C language, I wrote a program similar to the following: volatile int hoge=0;//...void fuga1() // running on thread 1{ while(1) { while(hoge==0)// Wait for the value ...

c
2 years ago

1 answers
40 views
0
About initializing aggregates with pointer variables in MISRA 2020 Rule 11.9 members (macro NULL or 0)

In MISRA 2020 Rule 11.9, Macro NULL must only be allowed in the form of an integer null pointer constant. Is it exceptionally OK to initialize this rule with 0 when initializing a aggregation with poi...

c
2 years ago

4 answers
36 views
0
I want to display the alphabet one letter at a time using a loop in C language.

I'd like to make a sentence in C language that results in the following, but I can't do it well, so I'd appreciate it if you could let me know.Expect Results:AABABC CorporationABCDCurrent source code:...

c
2 years ago

1 answers
66 views
0
About Generating and Managing AES Encryption Keys

Thank you for your help.Encryption keys for iOS AES256 encryption.Generate an encryption key with the following code and save the encryption key Keychain and from keychain for each encryption/complexi...

2 years ago

1 answers
133 views
0
Asynchronous Upload of MultipartFile in Spring

I saw a lot of similar articles, but I couldn't solve them after trying them all, so please let me know.Spring 4Java 8WTPServerAsynchronous upload of input type=file in an environment using Some comme...

2 years ago

3 answers
55 views
0
BIT SWAP METHOD

How do I reverse (swap) the order of bits for a fixed bit length (example 16 bits)?Example: 0001 1010 1100 1000 to 00010011 0101000 Only functions included in the standard library of C language are us...

2 years ago

1 answers
133 views
0
cocos2d-x3.14.1 with crashlyticsNdk drops at startup.

06-19 15:49:09.103 2709 2709 E AndroidRuntime: Process: jp.hogehoge.appgame, PID:270906-19 15:49:09.103 2709 2709 E AndroidRuntime: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPat...

2 years ago

1 answers
67 views
0
How to Add a List (Picker or TableView) to the UIAlertController

Hello I am developing an iOS app with Objective-c.I would like to display a pop-up dialog and add text input and UI to select items from the list.I was able to use the UIAlertController and use addTex...

2 years ago

1 answers
97 views
0
I want to realize what I could do with CGPostKeyboardEvent with CGEventCreateKeyboardEvent and CGEventPost

I'm doing OSX programming and I want to generate key sequences for keyboard shortcuts like Control-F4, but using CGEventCreateKeyboardEvent and CGEventPost doesn't work, and it worked well when I used...

2 years ago
« - 22 - »

© 2024 OneMinuteCode. All rights reserved.