Questions tagged as 'string'

1
answer

Break text and store in vector

I want the program to store only 1 sentence per line. Since each sentence is possible to be terminated according to the signs I show in my code example. It does this but when you print on the screen it does not print those same characters which...
asked by 10.11.2017 / 19:56
1
answer

C program to concatenate strings does not execute correctly

include int main(){ void concatenarStrings(char string1[], int t1, char string2[], int t2, char string3[]); char palavra1[]={'p','a','o','c','o','m'}; char palavra2[]={'m','o'...
asked by 21.05.2017 / 23:59
1
answer

TimeSpan Conversion

I'm reading a file delimited by a semicolon and one of the information that is the duration of the link is coming as "00:97:54". When trying to convert to TimeSpan, it obviously gives error    The TimeSpan could not be parsed because at le...
asked by 19.05.2017 / 18:31
2
answers

html tag within a string displayed one character at a time

When I run the code it writes the "<" of the tag before interpreting it, I would like it to interpret the tags directly without writing the opening signal. var TxtType = function(el, toRotate, period) { this.toRotate = toRotate; t...
asked by 27.09.2017 / 20:16
1
answer

Error: argument of type char is incompatible with lpcwstr

#include <iostream> #include <Windows.h> #include <TlHelp32.h> DWORD getbaseadress(DWORD Pid, TCHAR* n); using namespace std; int main(int argc, char* argv[]) { HWND hwnd = 0; DWORD pid = 0; hwnd = FindWindow(0,"...
asked by 15.02.2017 / 21:39
1
answer

Compare two strings and show difference between them

I accidentally clicked a post around here that was edited and I saw that StackOverflow showed the edit differences. Soon, a lamp shone over my head and now that I'm dealing with a CVT project, I thought of an audit feature of the generated fil...
asked by 03.08.2016 / 03:11
1
answer

POST encoding

In Web requests when posting data on a server a string from the template below (using the parameters): string hello = "hello"; string token = "teste=="; It is transformed into post data like the ones shown below: string post = "msg=hell...
asked by 12.08.2016 / 16:12
1
answer

string to object in javascript

I'm getting an object as a parameter, eg "4,5" from a function, but I need to change the comma by one point. Qnd I do this, the object is changed to string, so I need to return that string to object again. I'm trying to get the following code:...
asked by 24.06.2016 / 19:10
1
answer

Javascript function with NaN error

This function is returning error: NaN, to convert back to text. function floatToMoneyText(value) { var text = (value < 1 ? "0" : " ") + Math.floor(value * 100); text = "R$ " + text; return text.substr(0,...
asked by 08.06.2016 / 04:03
2
answers

Problem when running project - Special characters

Good afternoon, I migrated my project to Intellij IDEA and when I run a code that should print a string with accentuation, I have the return: "method". The classes display the accent correctly more when calling on the console they bugam. I've at...
asked by 28.07.2016 / 21:35