Questions tagged as 'string'

1
answer

How do I use fgets instead of gets?

Before "talking" about my problem, first look at my code and ignore the accentuation errors in the console if it is to execute. #include <stdio.h> #include <stdlib.h> #include <string.h> main(){ char nome[41]; printf("Tex...
asked by 03.09.2016 / 15:17
1
answer

Check double - Java

I am not able to do this check already tried everything, but it always gives me this error:    java.lang.NumberFormatException: Invalid double: "" If anyone can help, thank you. package com.calculadora; import android.content.DialogInt...
asked by 24.03.2016 / 18:42
1
answer

How to get these lines and blocks?

I'm creating a parser of a language I'm developing, I'm having trouble separating lines and blocks from code, here's the code I use to return the lines: Friend Class Splitter Public Itens As New List(Of String) Private CurrentIndex As...
asked by 13.02.2016 / 01:58
2
answers

return CoreDat - Swift

I am not able to assign a textField with the result of a search when it is int, with String sure var results:NSArray = try context.executeFetchRequest(request) as! [NSManagedObject] if(results.count > 0){ var res = re...
asked by 23.10.2015 / 14:16
1
answer

Targeting failure

I created a class to display a string on the terminal, but in addition to displaying the string , also displays the following message: "segmentation failure". I debugged with GDB, but I could not resolve the error. Here is the code below: #...
asked by 03.11.2015 / 20:59
1
answer

Is it possible to pass string from the string class as a pointer to function?

Is it possible to pass string from string class as pointer to function? example: void separaStr(string *modulo, satring *nmodulo, *digito){}     
asked by 25.09.2015 / 21:06
1
answer

String usage gives error

At the beginning of the code I declare the variable nome as char and when I try to get the nome variable down there in the code it gives error, I already tried in several ways and that way down there until it works, but some...
asked by 18.09.2015 / 21:00
1
answer

How to convert decimal to binary with large numbers?

I'm creating a C # language program to perform conversions right now I'm implementing the binary - > decimal and decimal - > binary. How can I do the conversion if the user types large numbers how should I handle this? Buttons priv...
asked by 02.12.2015 / 12:07
1
answer

Get a specific part of a string using ANDROID split method

I made a code to display processes in android but when printing in a text view, it prints the PID, process name, cpu memory usage etc. the view stays that way 958 2 0% S 22 577164K 42624K bg u0_a63 com.snaptube.premium I would lik...
asked by 16.10.2015 / 20:05
3
answers

Get some of the text that is between tags in a String

I have the following string: Meu nome é <nome> Nickolas Carlos<nome> I would like to know how I can do in VB.NET to get only what is between the <nome> tags which in this case would be: Nickolas Carlos Is...
asked by 10.03.2015 / 20:56