How to configure opencv and opencv-contrib with vscode c++ under the windows10 operating system – detailed, after reading this article you will be able to configure various compilers, including visual stdio

Recently, when I was studying the course of digital image processing, I accidentally discovered that my c++ opencv environment from last semester was gone. It took me another afternoon to configure. There must be many friends like me who have been configuring c++ opencv configuration for a long time. Without further ado, I will show […]

stdio and stdlib string handling

String processing string output putchar standard byte output puts standard line buffer string output fputc redirects character output fputs redirect string output string input gets standard line buffer string input getchar standard byte input fgetc redirects byte output fgets redirect string input string concatenation strcat direct string concatenation strncat specifies character splicing string copy strcpy […]

[C language] gcc compiles and reports an error fatal error: stdio.h: No such file or directory

Zero, question When using GCC to compile a HelloWorld code in Ubuntu20.04.6, I encountered the following problems: First of all, make sure that your words are not spelled wrong. Then check the version of GCC, it is indeed no problem: I am using the version of Ubuntu20.04.6. One, solve There are no standard header files […]

Use stdio.h stdlib.h to realize utf-8 to utf-16, use malloc to apply for memory in the function, and check the validity at the same time, output error

The following is a simple example of converting utf-8 to utf-16 using stdio.h and stdlib.h, while taking into account some error conditions: #include <stdio.h> #include <stdlib.h> #include <stdint.h> #define UNICODE_ERR -1 #define MALLOC_ERR -2 int utf8_to_utf16(uint8_t *utf8, uint16_t **utf16) { int len = 0; // The required length of the utf16 array int len_utf8 = […]

[CStdioFile extension (support Ansi, Unicode, Utf-8 and other text formats)]

Tip: After the article is written, the table of contents can be automatically generated. How to generate it can refer to the help document on the right Article directory foreword 1. First level title secondary title Level 3 heading Level 4 heading Level 5 heading Sixth-level title Summarize Foreword Tip: Here you can add the […]

Homework 3.22 — #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include

head File #ifndef __MYCDEV_H__ #define __MYCDEV_H__ typedef struct { volatile unsigned int MODER; volatile unsigned int OTYPER; volatile unsigned int OSPEEDR; volatile unsigned int PUPDR; volatile unsigned int IDR; volatile unsigned int ODR; volatile unsigned int BSRR; volatile unsigned int LCKR; volatile unsigned int AFRL; volatile unsigned int AFRH; volatile unsigned int BRR; volatile unsigned […]

[Solved] [Cause of error] Running C language script under Linux reports error: 01_print.c:1:9: fatal error: stdio.h: No such file or directory

One, encounter an error: (base) q@1:~/data-api/cfile/chapter01$ gcc -o 01_print 01_print.c 01_print.c:1:9: fatal error: stdio.h: no such file or directory 1 | #include<stdio.h> | ^~~~~~~~~~ compilation terminated. Second, the reason for the exception: Incomplete development environment: build-essential package – Installs the following collection to compile c/c++ program on Debian/Ubuntu Linux: This package mainly includes the following […]

[Solved] C program <stdio.h> of VsCode under Linux and NULL (undefined) red line error

The solution to the problem of VsCode’s C program and NULL red line error reporting under Linux. Foreword First of all, what this article solves is: the error notification of stdio.h is “update includePath”, and the NULL prompt “undefined is not defined.” NULL prompts undefined Error screenshot 2. Solution — add header file This header […]