string tag

223 questions


1 answers
111 views
0
I'm Python New B. How do I write str type in a file?

apples = 'Hello World!'text_file = open(Output.txt, w)text_file.write(message :, mystr)text_file.close()In the print function, print(message:, mystr) was separated by commas, but it didn't work in wri...


1 answers
41 views
0
c++ Copy String Questions

Header File Mystring.hclass CMyString{public:CMyString(void);~CMyString(void);private:char* m_pszdata; // memory storage stringintm_nlength; // string lengthpublic:int SetString(const char* pszparam);...

2 years ago

1 answers
88 views
0
When I get the String value with int, I pay you...Only the viewers are coming in.

//Second.classf =fstE.getText().toString(); l = lstE.getText().toString();Intent i = new Intent(Second.this, T1_text.class);i.putExtra(lastName,l);i.putExtra(firstName,f);startActivity();//T1_text.cl...

2 years ago

2 answers
41 views
0
Question for when the String is blank.

Hello! If you enter a space when you receive the string (variable name word), you want to output true, false, depending on whether this string is blank or not. If there is a space in the String, why c...

2 years ago

1 answers
38 views
0
cLanguage array string question

I can get a text message for each array element, right?It can be easily implemented as a for statementI saw several examples of text messages When I receive the text in scanf, there are a few things t...

2 years ago

2 answers
131 views
0
Compressing python strings

String input isIf aabbbccccddaa Not a2b3c4d2a2I want to print it out as a4b3c4d2 How should I make the code?

2 years ago

2 answers
122 views
0
I'd like to convert Unicode into Korean from the response object I brought to the request module.

import requestsurl = 'any_address'data_payload = {'1', '1'}res = requests.post(url, data=data_payload)txt = res.textprint(res.text)With this source code, res is the object 'requests.models.Response' e...

2 years ago

1 answers
40 views
0
cLanguage String Question

#include <stdio.h>#include <string.h>int main(void){ char arr[101]; int i, j, n; char ch; int num, cnt=0, flag=0; scanf(%d, &num); for(i=0; i<num; i++) { scanf(%s, arr); if(strlen...

2 years ago

1 answers
95 views
0
cEnter language multi-character scanf_s

You do not enter it as a string, but as a character.But char a; scanf_s(%c, &a); printf(%c, a);If I do this, there is no error. char a, b; scanf_s(%c%c, &a, &b); printf(%c%c, a, b);This ...

2 years ago

1 answers
144 views
0
Ask about printing strings using the C language recursive function.

If you output a string of length 3 using two alphabets ab, aaaaababaabbbaababbbabbbYou have to make it come out like this.A two-dimensional character array is dynamically assigned, and the Distr funct...

« - 20 - »

© 2024 OneMinuteCode. All rights reserved.