Questions tagged as 'string'

1
answer

VFP - SQLEXEC is returning DATE field as CHAR

I'm supporting a "legacy" application written in VFP, which uses DBF tables and is now migrating to SQL Server. I created a table of tests in SQL, which contains fields of some basic types, to be able to work with the migration, performing te...
asked by 25.08.2014 / 20:24
2
answers

Cut text problem when creating text file

I need to create a file that contains PHP code. This code comes from a string like "<?php class foo{ } ?>" but when I give a echo it just cuts the reserved words. How to turn the string into plain text without missing a wo...
asked by 28.04.2014 / 05:16
1
answer

How to make a string "transformed into a number"

I have an exercise to make the user type a word and it is transformed by their corresponding numbers from the ASCII table. EXAMPLE : sara would print 115 97 114 97 this is the code: NOTE: I put a fixed value in the vector...
asked by 28.11.2018 / 15:34
1
answer

Comparison going wrong

I saw an example comparison and I was in doubt about the reason for the operation. In the comparison below, it removes the text and <button> and compares in the if to the check, whether it is true or false, but it never en...
asked by 06.09.2018 / 16:11
1
answer

Get result of an expression in c ++

I'm almost finishing my expression interpreter. But I have no idea how to do the most important part: The result I would learn a lot from any idea. main.cpp #include <string> #include <iostream> #include <fstream> #incl...
asked by 20.06.2018 / 03:18
0
answers

I need the Attribute of a Dataset HDF5 to be a string

Good afternoon, I'm trying to create some attributes for my datasets, I was able to create the attributes but at the time of setting their values I'm not getting it, I've already tried it in several different ways, and currently the string that...
asked by 04.06.2018 / 21:29
1
answer

how to get a substring of size n that repeats

I have the following entry: aaisndiaunwioun test|test saiudb8iuyb aiwbu diby tab fiubaw palavragrande|palavragrande asibtiubi How to make the algorithm return test and palavragrande only if the before and after index of t...
asked by 03.05.2018 / 07:52
1
answer

How do I handle message with special characters

I am consuming a REST service that is returning the following message with special characters: "Animated T & amp; Spaces" Is it possible to handle this message?     
asked by 11.04.2018 / 00:11
1
answer

Help with shuffled words [duplicate]

I need help in a program, I have no idea how to do it, the statement is as follows: "Scrambled Word - Implement a program that, from a word bank, randomly selects a word, shuffles the letters and gives the user time to guess the word." I...
asked by 24.02.2018 / 15:14
1
answer

Float to string conversion - how to display two or more decimal places?

I have the following code, which returns values of type float . How can I make the result appear with two or more decimal places? private void btnDividirActionPerformed(java.awt.event.ActionEvent evt) {...
asked by 17.02.2018 / 17:15