• Register

Recent questions tagged string

0 votes
1 answer 1 view
Problem: Is there someone who knows this problem? >This is the escape sequence representing the null terminator.
asked 11 hours ago Rada Gracelynn 1.8k points
0 votes
1 answer 2 views
Problem: I am getting this .. can you help me to solve it? How to find a character in a string c++
asked 16 hours ago Ifra 36.4k points
0 votes
1 answer 1 view
Problem: I am in trouble while solving it .. please help me .. What is linear equation in one variable?
asked 20 hours ago Ifra 36.4k points
0 votes
1 answer 1 view
Problem: Hey i want to remove all the instances of character from string javascript. Help me to get this one.
asked 20 hours ago Ryan evans 1.4k points
0 votes
1 answer 1 view
Problem: Hey, i m asking you to teach me how to replace all the presence of string into javascript.
asked 20 hours ago Ryan evans 1.4k points
0 votes
1 answer 2 views
Problem: Does anyone have the skills to resolve this error? >Given a string s, find the longest palindromic substring in s.
asked 21 hours ago Ashok Dileep 2.5k points
0 votes
1 answer 2 views
Problem: What is the solution? > Using the stringbuilder class's insert method, you can insert
asked 1 day ago Irenka Kiri 4.3k points
0 votes
1 answer 2 views
Problem: Help me to write a java program to count the number of words in a string.
asked 1 day ago Irenka Kiri 4.3k points
0 votes
1 answer 1 view
Problem: Two strings with same contents are always allocated to the same object.
asked 2 days ago Ryan evans 1.4k points
1 vote
1 answer 4 views
Problem: I’m using following code regarding how to use date in a specific format and getting an error. My code: from datetime import datetime, date def main (): cr_date = '2013-10-31 18:23:29.000227' crrdate = cr_date.strftime(cr_date,"%m/%d/%Y") if __name__ == '__main__': main() My error: AttributeError: 'str' object has no attribute 'strftime'
asked 2 days ago Raj Tyagi 14.9k points
0 votes
1 answer 2 views
Problem: Please can anyone tell me the right procedure to do it? Search and replace text in multiple files
asked 2 days ago Ifra 36.4k points
1 vote
1 answer 2 views
Problem: I get this following warning : deprecated conversion from string constant to 'char*' I get this warning in my explicit constructor: explicit myClass(const char *func) { strcpy(str,func); } I call it as: myClass obj("example"); Why am I getting this warnnig and how can I solve it ?
asked 3 days ago Raj Tyagi 14.9k points
0 votes
1 answer 3 views
Problem: Can someone please help me with this problem I got," PHP Warning: number_format() expects parameter 1 to be float, string given in line 39 " ?
asked 3 days ago salim1 60.6k points
0 votes
1 answer 3 views
Problem: How can I convert a String to an int in Java? My String contains only numbers, and I want to return the number it represents. For example, given the string "1234" the result should be the number 1234.
asked 4 days ago anika11 32.2k points
0 votes
1 answer 4 views
Problem: The error I'm getting is "Cannot implicitly convert type string' toUnityEngine.UI.Text'". I'm getting this error into different places of the code. How to solve?
asked 4 days ago sumaiya simi 43.9k points
0 votes
1 answer 3 views
Problem: In Python 2.7, see the following error, when trying to cast type to ensure it matches the output schema. UnicodeEncodeError: 'ascii' codec can't encode character in position 0: ordinal not in range(128) Tried to find why and reproduced the error in Jupiter. By simply typing in.What is the way to cast type to string that can handle this type of error? Thanks!
asked 4 days ago sumaiya simi 43.9k points
0 votes
1 answer 3 views
Problem: I need to find repeated words on a string, and then count how many times they were repeated. So basically, if the input string is this: String s = "House, House, House, Dog, Dog, Dog, Dog"; I need to create a new string list without repetitions and ... ? I've managed to separate the string using s.split() but then how do I count repetitions and eliminate them on the new string? Thanks!
asked 5 days ago jamuna1 30.2k points
0 votes
1 answer 2 views
Problem: I wrote rock-paper-scissor game with python and I have error which I can't solve. please help. import random p1 = random.randint(0, 2) def choosing(): p = int(input("Rock: 0; Paper: 1; scissor: 2:")) if p < 0 or p > 2: print("\ ... , in <module> TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' and error comes only when I input valid value after entering invalid value
asked 5 days ago jamuna1 30.2k points
0 votes
1 answer 1 view
Problem: I could only do this with String, for example:String str="";for(int i=0;i<100;i++){ str=i+str;}.Is there a way to achieve this with StringBuilder? Thanks.
asked 5 days ago sumaiya simi 43.9k points
1 vote
1 answer 11 views
Problem: I deperately need help for this: Java program to read a text file and write to another file.
asked 5 days ago PkGuy 23.5k points