Answer the question
In order to leave comments, you need to log in
How to create a string data type in C?
Hi, I just started programming in C. As you know, in C there is no concept of a string. In C, this is an array of characters. Where to download a ready-made library or how to create this type yourself. I downloaded the CS50 library like it should have been there but it gives an error. If possible, please answer 2 questions where to download the library, where is the string and how to create it yourself.
Answer the question
In order to leave comments, you need to log in
First you need to decide what language you are talking about. You have C++ in the tags and it has std::string
, but judging by the title and text, it’s about C. If, nevertheless, C and you lack those functions for working with strings that are listed in the string.h header file , then you can look at GLib for example.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question