Posts by Juan Valenzuela • 56 points
7 posts
-
0
votes1
answer540
viewsA: Linear recursive search c++
Since it’s a linear search, I think it’s more natural for you to start the check from the first element and advance the start iterator by 1 instead of starting with the last element. Another point…
c++answered Juan Valenzuela 56 -
0
votes1
answer101
viewsA: Doubt to make integration between web systems, using Httpwebrequest- Language c#
What you’re trying to do is a Web Crawler. The idea is basically to go making HTTP requests to the application in question, run a parse of the returned HTML pages and, from the content obtained from…
-
0
votes2
answers1554
viewsA: How to clear the array name so it doesn’t end up with the rest of the previous strings
You can try using the memset to copy the string end at all positions. memset(nome,'\0', 100);…
-
0
votes3
answers173
viewsA: How to capture the numbers for a single line array?
You can use a Stringstream to read the data continuously. int a; char* stringlida; stringstream ss(stringlida); while (ss >> a) { //fazer algo com os números }…
-
0
votes1
answer1518
viewsA: List (static) operations c++
The most practical suggestion to implement is the one @Nex' and @Maniero talked about: use the ready-made C structures++ (vector, list, etc). They already come with their own search, insertion and…
-
3
votes1
answer50
viewsA: Typo
About compile error, we are missing the types in the prototype and function declaration: int is_in(char *s, char c); In the method call, you are passing a string instead of a char. is_in("olac",…
canswered Juan Valenzuela 56 -
1
votes2
answers1318
viewsA: Make one method wait for the end of the other
Another option is to use Task.Continuewith. Thus, you ensure that the pdf is always created before sending the email. ClassePDF pdf = null; Task.Run(() => { pdf = CreatePdf();…