A string is a sequence of zero or more characters. It is commonly used to represent text or a sequence of bytes.

learn more… | top users | synonyms (3)

0
votes
3answers
14 views

Extracting numbers from string in R

I have a list of strings which contain random characters such as: list=list() list[1] = "djud7+dg[a]hs667" list[2] = "7fd*hac11(5)" list[3] = "2tu,g7gka5" I want to know which numbers are present ...
0
votes
4answers
17 views

error: conflicting types for 'removeSpaces'

I want to write a program which will verify whether the string is palindrome or not. But there is an error when I try to pass strings[0] to removeSpaces function which will remove spaces. Why does ...
0
votes
2answers
61 views

How to convert to sentence case each new line?

I'm working on a lyrics website. There is a textarea in the admin panel to inset a new song. How can I do the followings? Capitalize the first letter of each line Add a space at the end of each line ...
1
vote
1answer
20 views

Java ByteArray File Parsing

I have a file that contains a java ByteArray. bytes.inc byte MyByteArray[] = new byte[] { (byte) 0x4D,(byte) 0x5A,(byte) 0x50,(byte) 0x00,(byte) 0x02,(byte) 0x00,(byte) 0x00, (byte) 0x00,(byte) ...
2
votes
3answers
42 views

How to set a multiline string variable in vbnet

I need to store a multiline string inside a variable: dim str as string = " some words some words some words " How?
0
votes
3answers
24 views

c++ non-POD warning for passing a string?

void displayinfo(string &filename) { printf("%s% 38s\n", "Filename:", filename); ... Warning: A non-POD object of type "std::string " passed as a variable argument to function "std::printf(const ...
1
vote
2answers
33 views

How to decrypt string froom textbuffer.get_text

i encode a char 'a' by pyDes and I want to decode it text = self.textbuffer.get_text(start, end) print text //',\xcc\x08\xe5\xa1\xa1fc' x = "{}".format(text) print x ...
0
votes
0answers
6 views

How to scan string in C from console?

I have a variable char *variable;. I allocate memory for it and so on, but I don't know how to scan string, that user inputted in console and save it to variable. Any ideas?
23
votes
9answers
597 views

behavior of String literals are confusing

The behavior of String literals is very confusing in the code below. I can understand line 1, line 2, and line 3 are true, but why is line 4 false? When I print the hashcode of both are the same ...
0
votes
2answers
89 views

find all permutations of a string in c++ [closed]

The following is a code to print all permutations of a given string. The code compiles but does not print anything. using namespace std; void RecPermute(string, string); int main() { ...
0
votes
5answers
10k views

Send JS object to JSP page

I have a JS object in a JavaScript file. I have to pass this object to a JSP page. The page picks up this object and processes it. How can I do it?
80
votes
6answers
40k views

Proper indentation for Python multiline strings

What is the proper indentation for Python multiline strings within a function? def method(): string = """line one line two line three""" or def method(): string = """line ...
1
vote
3answers
34 views

Finding a particular value in an HTTP response using Perl

I have a little script in Perl, HTTP POST request my $request = $ua->post( $url, [ 'country' => 10, 'evalprice' => 0 ] ); my $response = $request->content; Now I know that in the ...
0
votes
3answers
43 views

How to get string value from one Frame to another

I made little application and I need help for one I think easy thing but am stack atm with it. There are 2 Classes with JFrames . One is login and other I GUI and program that does something.Login is ...
2
votes
4answers
84 views

A proper way of comparing unequal char arrays in c

Is there a proper way of comparing two char-arrays if they aren't equal by length? How to check which character isn't equal? strcmp seems to give me only bigger or lesser number, not the position of ...

1 2 3 4 5 2679
15 30 50 per page