string tag

223 questions


1 answers
62 views
0
What do you do when you clear spaces in std::string?

What do you do when you clear spaces in std::string?I just change it to a repeating sentence, but I wonder if I can do it without using a repeating sentence like a tupper().

2 years ago

1 answers
106 views
0
To replace std:string with const char* or char*

Please tell me how to change std::string to const charge* or char*

2 years ago

1 answers
115 views
0
To convert a hex string to an integer

in python scriptWhen the string stores hexadecimal digitsHow do I convert this string to int?For example,str1 = 0xffffstr2 = ffffWhen we're together

2 years ago

2 answers
81 views
0
I have a question about My SQL.

Hi, everyone. I'm inquiring about the MySQL query statement.Not a web developer, but a bit weak in query statements.In the program you are developing now, you need to find out how many columns you hav...

2 years ago

1 answers
120 views
0
How do I lowercase std::string?

How do I lowercase std::string?Is there any other way besides my sauce?This looks so messychar upperToLower(char in){ if(in<='Z' && in>='A') return in-('Z'-'z'); return in;}...std::trans...


1 answers
42 views
0
Type specific characters in a string and capitalize them

InputStr=input('Input a sentence :')Inputfind=input('Input a word for search :')findLength=len(Inputfind)Index=InputStr.find(Inputfind)if Index==-1: print('There are no characters to replace.')else: b...

2 years ago

1 answers
35 views
0
How to get C language string specific characters or numbers

Hello, I am a university student studying C language.1995/11/10, Hot Six, Seoul Is there a way to take the date of the year and date in the beginning of this sentence as a number and store it in a var...

2 years ago

1 answers
64 views
0
Can you convert the String object of Java into InputStream and save it?

String exampleString = example;If I have a code like this, how do I put it in InputStream??


1 answers
147 views
0
How do I truncate a string in C++?

In Java, we could've used the bottom togetherIs there an easy way to do it in C++?String str = The quick brown fox;String[] results = str.split( );

2 years ago

1 answers
61 views
0
Why does "hello world" keep coming out when I write random?

Why is hello world always printed on the source code below? System.out.println(randomString(-229985452) + + randomString(-147909649)); public static String randomString(int i) { Random ran = new Ra...

2 years ago
« - 17 - »

© 2024 OneMinuteCode. All rights reserved.