char

How do I convert an array of characters to an array of strings?

How can I convert an array of characters to an array of strings? For example, "Text not text" → "Text not text" как массив ... temp[i] = new String(chList); } } System.out.println(temp[i]); } } }

The alphabet of the Java and Unicode programming languages

It seems to me that this question is more from the plane of philosophy, but it would still be nice to understand. So, I will ... I still not quite right and 1,114,112 characters are far from the truth? I am interested in your opinion on this issue! :)

How do I trim the [from:to] string in C++ for char[]?

I can't find a way to trim the char [] string, starting from the element with the index k, to the element with the index g. I ... << " " << B << " " << C << std::endl; return 0; } Output to the console: AAAAA BBBB CCC

What does stringstream do and not only?

What does the stringstream class do? stringstream ss(input); while (ss >> input) According to the logic of the pro ... is empty, how can it look for the input substring in it? In general, can I explain in more detail how everything works here?

Convert char to string

Guys here is such a problem, I pick out the first character from a variable of type string like this: char came_buffer; ... aracter from char to string, Google does not give a sensible answer, only some self-written functions that do not really work

strncat in a loop

You need to solve the problem: "Enter a string from the keyboard and output a new one, which will be the same, but after dele ... } } cout << "исходная строка : " << s << endl; cout << result << endl; }

C++ size of char arrays [closed]

Closed. This question is off-topic. Answers to it are not accepted at the moment. ... Hi! Why are the sizes different? And is it possible to save memory in this way by using const* char?

Dynamic array of the char type

I'm writing a dictionary and I'm completely confused in the code. I'm testing a function that reads a text file with a matrix ... u explain why the array itself doesn't want to be asked? The compiler (MSVS) writes that char * cannot be (char(counter)[3]).

How can I read a string of unknown length from the console without using string?

I understand perfectly well that you can use the string class and just write cin> > str; and then get the number of ele ... rything is purely for the sake of interest, so your answers, such as "do not worry and use what they give" are also welcome )

java implementation of the string return function in a string only by the length method

Hello! I recently received a task: Write a function implementation: Int pos(String search, String where); Where: search-the ... ot come to mind. It is not necessary to write all the code, you can give an analogy, direct links to similar tasks. Thanks!

Pointers in C, functions

Good afternoon, gentlemen, the actual question. I see periodically that in some functions pointers are inserted in this way: ... r char, and the address of the pointer is sent. And if possible, an example for using possible options. Thank you in advance!

incorrect translation from int to char

Very stupid question, but I can't get a normal result. You need to translate the numbers from the range 10 .. 99 (the numbers ... ; char ch = 65; Or int a = 65; char ch = (char)a; Do not work (in the string - ASCII characters). Thank you in advance.

How do I convert a byte[] array to a CharSequence?

You need to write a class AsciiCharSequence that implements storing a sequence of ASCII characters in an array of bytes. Comp ... s ranging from start to end. For example, String s0 = "Вова и Дима козлы"; s0.subSequence(14,16) Must return "evil".

How to convert char to int, without changing the encoding. Working with StringBuffer

The task of my method is to convert each StringBuffer number to an int array. When trying to convert each character "9 8 7 ... думаю -проблемма в кодировке. strBuff.deleteCharAt(0);//удаляю нулевой символ } return arrInt; }//end strBToArrInt

C++ Translation of a string containing HEX data in char[]

Good afternoon! I program sending data to a specific printer and ran into a problem You need to send the packages tag to the ... 0xF0, 0xE0"; s6 = new char [s6_str.length()+1]; std::strcpy (s6, s6_str.c_str()); Tell me what to do! Thank you in advance!

Converting char or String to binary code (Java)

Guys, the question, in principle, is not so difficult, however, I Googled, but did not find a sensible answer. How to transla ... abс"; is given, you need to translate it into the same string, but already in binary code: 1100001 1100010 11010001 10000001.

searching for a substring in a C++ string using char*

I created a program to search for a substring in a string and return the address of this substring. A prerequisite is the use ... ;endl; cout<<"adress of string if symbols changed "<<LowerSymb(strRez,str,kol) <<endl; system("Pause"); }

Character arrays

What are the rules for lexicographic comparison of character arrays?

Problems with translating from char to string. C++

It is not possible to assign a variable of type const char to the st variable. Tell me how you can solve this problem. char ... < " " << i.second << endl; } for (auto &i : encode) { string st = i.first; str.push_back(st); }

How to translate a character from a string to a number using atoi

The following code does not compile: #include <stdio.h> #include <stdlib.h> int main(int argc, char const *argv ... re string starting with str[1] into a number. How do I translate only one character from the string - str[1] - into a number?