Questions tagged as 'string'

1
answer

how to extract rows from sql table field in String with C #?

Good morning, I would like to know how I can extract all the rows of a certain field in variables (String) using C #. For example: Campo = Usuario rows of said field: Juan Ana Jose put them in variables like this: String nombr...
asked by 02.10.2017 / 07:43
2
answers

Count all the characters except a few

I'm trying to count all the characters of a string other than four that I have reserved. for example: s.count (I want all the characters of a string (s) except 4: a, c t and g) How could you count all of them except the four mentioned?...
asked by 28.09.2017 / 22:59
1
answer

Relate values from a list with strings written by the user

I am trying to relate values from a list to strings written by the user as in this example: We want the chains written by the user to be related to others we have: work at home and family. we want to divide the chain into separate values and pri...
asked by 23.09.2017 / 18:46
1
answer

Separate string Python, independent parameters

First of all thank you for the attention, and on the other hand I do not think it's so difficult what I'm trying to do, only that I've been stuck for 2 days and I do not know what to do. I have a software to which a script is added. This soft...
asked by 21.09.2017 / 16:11
0
answers

Read 100 characters of a text

I need to find a way to read the characters of a 100-in-100 text. I can read the first 100, but I can not find a way to start the second cycle. Apart from that, I still have to save the words that end with text ing. To identify the words with in...
asked by 17.09.2017 / 21:09
1
answer

strncpy function simulation

I did a function that simulates what strncpy does in the string library. Copy a number of characters from one word into another. But I do not want to change the original string ... and it does. I can not find a way to not modify it. I pass the f...
asked by 08.09.2017 / 05:06
1
answer

Duplicate files when reading text file line by line with java

My questions is Why, when reading a file .txt , do you duplicate the lines contained in my .txt? That is, if I have a String variable which I read, for example . Juan, Pedro, so-and-so. If I show on screen what is loaded in that variable...
asked by 05.09.2017 / 21:13
1
answer

function strstr (from the library string.h) made by me

I made a program that pretends to be the function strstr , of the library string.h . Enter 2 strings per keyboard and the function finds the second string in the first one by returning a pointer (if it does not find it returns NUL...
asked by 07.09.2017 / 23:11
0
answers

problem with array java

I'm doing the game of tres en raya , but when checking if a box in the array is crossed out, it does not do it to me. Code: Player is a class, and list_ players in an arraylist, what I do is see if a player is trying to cross a square t...
asked by 28.07.2017 / 18:40
2
answers

How to Count The repetition of a Word in C # [duplicated]

Hello Good afternoon, I have tried several ways to find a way to tell the most repeated word in a sentence and I can not solve it. Console.WriteLine("Ingrese una frase: "); String texto = Console.ReadLine(); What was the most repeated w...
asked by 25.03.2017 / 17:08