string tag

223 questions


1 answers
73 views
0
How do I paste a const/literal string?

message = strcat(TEXT , var);message2 = strcat(strcat(TEXT , foo), strcat( TEXT , bar));I'm trying to put a string after a fixed stringIt keeps saying Segmentation Fault.How do I paste a const/litera...

2 years ago

1 answers
42 views
0
Java Array Basic Questions

class CodeRunner{ public static void main(String[] args){ char[] hex = {'C', 'A', 'F', 'E'}; String[] binary = {0000, 0001, 0010, 0011, 0100, 0101, 0110, 0111, 1000, 1001, 1010, 1011, 1100, 1101, 11...

2 years ago

1 answers
55 views
0
To save a function's name as a string?

Is there a way to save the name of a function as a string in a Python script?How do I implement get_functionion_name_as_string() in the source code below?def my_function(): passprint get_functionion_n...

2 years ago

1 answers
76 views
0
To remove an extension from a file path?

os.path.You can remove the extension by using the basenameI imported the os modulepath.Unable to access basename.os.path.Is there any other way besides basename ?

2 years ago

1 answers
119 views
0
Split long strings

ABCDEFGHIJKLMNThe string ABC DEF GHI... in an expression I'd like to make a list of 3 pieces each, what should I do?I'm trying to solve it with a FOR statement.

2 years ago

1 answers
114 views
0
After initializing the c language string, I wrote down the tap in more detail when I input/output the rest of the file.

int main(void){int c, i;//Implement as a link list FILE *cities, *members, *reser;// departure city, member list, reservation list char ID[20];char PW[20];char *ID_B;char *PW_B; char *NEW_ID; char *NE...

2 years ago

1 answers
99 views
0
json, string object conversion related (express, ejs template)

Node.js + express is under development.The data type I want to use in javascript is var word_array = [ {text: Lo, age: 15}, {text: Ip, age: 9}, {text: Do, age: 6}, {text: Si, age: 7}, {text: Am, age: ...

2 years ago

1 answers
40 views
0
I separate the strings based on commas." "Can't you let me ignore the commas inside?"

For example,foo,bar,c;qual=baz,blurb,d;junk=quux,syzygyIf you have a string like this foobarc;qual=baz,blurbd;junk=quux,syzygyI'm going to split it up by commas, but I want to ignore the commas in dou...

2 years ago

1 answers
103 views
0
How do I change InputStream to String?

I want to convert the java.io.InputStream object to String. If InputStream contains textual data, I think we can change it to StringWhat do I do? p.s. Please let me know the simplest way to do it in t...


1 answers
61 views
0
« - 12 - »

© 2024 OneMinuteCode. All rights reserved.