本文介绍了什么是第三方选件是为了与在C字符串工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经知道了一段时间,我code约17倍的Python快于C,我猜我有点假设我没有太大的程序员,直到我真的想过这个问题,并意识到唯一的问题是我不能处理的C字符串/字符数组/ char指针/不管。我有一个关于他们的块,并操纵他们带我小时。我没有在C ++这个问题。

I've been aware for awhile that I code about 17x faster in Python than in C, and I guess I sort of assumed I wasn't much of a programmer until I really thought about it and realized that the only problem is that I can't handle C strings/char arrays/char pointers/whatever. I have a block about them, and manipulating them takes me hours. I do not have this problem in C++.

但生活在此刻迫使我code在纯C,我试图找到,如果有一些第三方库,我可以补充一点,会让我的生活更轻松。我做了一些谷歌搜索,我没有真正找到了。我开始考虑我自己,但我觉得我会重新发明轮子。肯定有什么东西在那里?有谁知道类似的东西?这是令C的有点像C ++在这方面。我知道这是一个愚蠢的想法,因为这是C ++的观点,但你明白,我敢肯定。

But life forces me to code in pure C at the moment, and I'm trying to find if there's some third-party library I can add that will make my life easier. I did some googling and I didn't really find much. I'm starting to consider making it myself, but I feel like I'd be reinventing the wheel. Surely there's something out there? Does anyone know of something like that? Something that makes C a little more like C++ in that respect. I realize that's a silly idea, since that's the point of C++, but you understand, I'm sure.

推荐答案

有是,这是一个纯C库与试图避免许多与标准的C字符串处理的问题,串的工作。

There is the Better String Library, which is a pure C library for working with "strings" which tries to avoid many of the issues with standard C string handling.

这篇关于什么是第三方选件是为了与在C字符串工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 16:28