Questions tagged as 'string'

1
answer

How do I start from Side using end="" with the Time Module included

import time for i in range(0,10,+1): print(".", end="") time.sleep(1) Well here is the Program. I would like to know how I can start the. Ex. During this time of 1 second ... when I do not use the end it works but printing down.     
asked by 12.06.2018 / 00:04
0
answers

In C, how to compare a string obtained from strtok with another string

Well, in my case, I'm working on file manipulation, nothing complicated, but I came up with a problem that I can not solve, and because of the lack of definition in the searches, it's difficult to find a similar problem and solved on the interne...
asked by 01.06.2018 / 03:33
1
answer

Handle string

I have a string like this: $string = "<div class="legenda">Legenda</div> <li><a href="link2">02</a></li> <li><a href="link3">03</a></li> <li><a href="link4">...
asked by 25.05.2018 / 00:31
0
answers

How to read PDF files using C language?

I have to read a PDF file using linguagem C and fetch a string from the file. However, when you drag the file through the fopen function and display it on the screen, all those characters appear in the same way when you open...
asked by 11.05.2018 / 03:06
0
answers

Error while showing a String

I'm asking the question Input and Output with Virgula , I'm doing everything the question asked but I'm taking 30% error, could they help me wherever the error is My code #include <stdio.h> #include <string.h> int main(int argc...
asked by 30.04.2018 / 22:58
1
answer

Output Redirection

comando | tee -a saida.txt How do I redirect only part of the output of a command?     
asked by 26.04.2018 / 20:25
0
answers

Basic pointer question

I needed to make a program that the user enters two sentences, then the program identifies the first occurrence of sentence 2 in sentence 1, and then deletes that occurrence and prints the new first sentence. For example, the user types "the mou...
asked by 22.04.2018 / 20:23
2
answers

Returning direct and array function string

What works: void *teste(); int main () { printf("\nRESULTADO: %s\n", teste()); return 0; } void *teste(){ return "Ponteiro"; } What goes wrong: void *teste(); int main () { printf("\nRESULTADO: %s\n", teste()); retu...
asked by 03.11.2017 / 15:11
1
answer

Change string using function parameter

#include <stdio.h> #include <stdlib.h> #include <string.h> void menu_principal(char* monstro1, char* monstro2){ int escolha; char monstro[20]; printf("King of Tokyo\n\n"); printf("Jogador escolha um monstro:\n---...
asked by 12.04.2018 / 02:37
0
answers

Error in Python proxy configuration

I'm performing automated testing with Selenium and I need to test access to a particular site with different proxy's. I get the list of proxy's through a website and implement the configuration as follows: PROXY = address proxy = Proxy({ '...
asked by 10.04.2018 / 18:54