Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged string

0 votes
293 views
1 answer
    I have a function which takes two CHAR* as input viz. int _stdcall FileTrans(char* InFile, char* OutFile) in a DLL project. In the function I' ... I Googled it but couldn't find anything very interesting. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
376 views
1 answer
    I am reading a byte sequence from a stream. Assume for the sake of argument, that the sequence is of a fixed length and I read the whole thing into a ... no way to generically figure out which one it is? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
574 views
1 answer
    How do I use the system() function in c++ if I want to enter a command that needs a path when my path has spaces in it? Example code: #include < ... 'm doing wrong or how I could do it better? Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
489 views
1 answer
    I keep getting this error. TypeError: 'str' object is not callable I searched all my code and I don't even use the word str anywhere. if again(): print ... , int(m)) # The error occurs here else: #code See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
397 views
1 answer
    When answering this question, I wrote this code to iterate over the UTF-8 byte sequence in a string: local str = "KORYTNA?KA" for c in str:gmatch("[- ... end But the error stays the same, how to fix it? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
588 views
1 answer
    I'm having some issues with formatting a byte ordered mark to unicode. There is some oddness coming in with how my character is being expressed. Basically it's ... apparently is not. I'm using Python 2.7 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
453 views
1 answer
    Is there any way to print both onto the "display" and also into a file at the same time without repeating the print "string" code? What I ... Is there any alternative that's inside the default library? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
500 views
1 answer
    I'm writing a simple function and for some reason(probably a simple one) it's not working for me and I was wondering if you guys could help ... 123123.23422.234234.2342342.234234 Thanks for your help! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
471 views
1 answer
    I am new to python and i have this project I am working on a small project with two functions where the first returns the index of the first time a ... return (line_no, idx) else: return (line_no, 0) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
531 views
1 answer
    I was trying to output a not null terminated char array to a file. Actual thing is, I am receiving packets and then printing their fields. Now as these ... maxbytes-1] = ''; // force null terminator } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
443 views
1 answer
    I am a java beginner, please keep that in mind. I have to make a program that reads a number, and then displays that amount of exclamation mark "!". ... ) { new E_HerhaalKarakter1().start(); } } Thank you See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
525 views
1 answer
    I want to print a staircase like pattern using .format() method. I tried this, for i in range(6, 0, -1): print("{0:>"+str(i)+"}".format("#")) But it gave ... range(6, 0, -1): print("{0:>i}".format("#")) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
442 views
1 answer
    For example, the address is: Address = http://lol1.domain.com:8888/some/page I want to save the subdomain into a variable so i could do like so; print SubAddr >> lol1 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
313 views
1 answer
    Here is my code. var filehan : Textfile; i : Integer; LineOfText : String; tsl : TStringList; Name, Emp_id : string; begin stf := TStringList.create; ... all the lines in the file. Thanks for your time. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
494 views
1 answer
    how to split this url ? http://www.example.com/news?q=string&f=true&id=1233&sort=true i need example only See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
360 views
1 answer
    How print format string passed as argument ? example.cpp: #include <iostream> int main(int ac, char* av[]) { printf(av[1],"anything"); return 0; ... this on newline instead I want: print this on newline See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
333 views
1 answer
    I want to create a string array in string.xml in values folder for my android application. How to do this.. can anybody help.. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
388 views
1 answer
    I had a question regarding the usage of variables inside a python function which accesses the PostgreSQL server. For example, the following: def delete(): ... the string? Any help would be appreciated! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
390 views
1 answer
    char * test = "test"; cout << sizeof(test); char test2[] = "test"; cout << sizeof(test2); Running this on visual studio 2010, ... elements in the string literal including the terminating null character? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
678 views
1 answer
    I'm trying to create a search and replace string like this: src="/path/file.jpg" into src="http://mysite.com/path/file.jpg" By searching for the ... value 92 and it still becomes \ in the search variable. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
371 views
1 answer
    I have a list of numbers which looks like this: 1.234D+1 or 1.234D-02. I want to read the file using C. The function atof will merely ... themselves, but rather how to convert them to floats. Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
502 views
1 answer
    I am wondering how to generate a GUID given an input string, such that the same input string results in the same GUID (sort of like an MD5 hash). ... rather a GUID, ideally one made up of just integers. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
399 views
1 answer
    I'm really confused about the escape character " " and its relation to the windows file system. In the following example: char* fwdslash = "c:/ ... expect backslashes even when using . and .. Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
449 views
1 answer
    i am wondering how can i change a specific text color in a sentence? lets say HELLO WORLD...i wanted to change the WORLD into red color without ... into red instead of only making WORLD into red? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
352 views
1 answer
    I'm trying to make a string that includes a "%s" with no formatting For example, I want this: #I want to make mystring = "x %s" first_value = "x" ... but this kind of looks ugly.. Is there a better way? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
275 views
1 answer
    Are there particular cases where native text manipulation is more desirable than regex? In particular .net? Note: Regex appears to be a highly emotive ... I have searched SO for a similar question. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
239 views
1 answer
    I am not sure what is happening under the hood with regards to the Python object model for the code below. You can download the data for the ctabus.csv ... (id(row['route'])) print(len(route_ids)) #185 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
418 views
1 answer
    I have a string that prints out like this print a u4f53u91cdu8a08 I am using eclipse and the console can print unicode characters, I have tested it ... printed like above. Thanks very much for advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to Jonic Developer Community for programmer and developer-Open, Learning and Share
...