Questions tagged as 'c++'

0
answers

Problem in crawling a text document

The purpose of the project is to develop a program that reads a text document (a dictionary in% with% more concretely) and removes the words, ignoring their definitions, special characters. The words to be taken are all in txt , hyphena...
asked by 28.03.2018 / 18:06
1
answer

manipulate csv file in c ++

I need to read a cvs file with the following fields: Id,OwnerUserId,CreationDate,Score,Title,Body Id inteiro OwerUserID inteiro Data vou armazerna como char Score inteiro Title texto Body texto Exa...
asked by 16.03.2018 / 22:09
1
answer

Problem SMPSEQ3 - Fun with Sequences - SPOJ

Good morning. I would like some help to create a code that is accepted by SPOJ. The proposed problem is as follows: "You get an ordered sequence of n integers S = s1, s2, ..., sn, and an ordered sequence of integers m Q = q1, q2, ..., qm. bel...
asked by 07.03.2018 / 15:42
0
answers

Write contents of .txt file to C / C ++ vector

How do I get the values from a .txt file and put in a vector name, phone and email and sort them by name. I can not use struct . #include <stdio.h> #include <string.h> #include <stdlib.h> #include <lo...
asked by 05.03.2018 / 20:00
1
answer

How do I insert elements of a first vector into another second vector, in a given position given by the user? and also print the step by step

Entradas - Tam do 1 vetor:5/ Elementos do 1 vetor: 1 2 3 4 5 / Elementos do 2 vetor: 6 7 8 9 10/ Pos a ser inserida: 1 Saida- 6 1 7 8 9 10 / 6 2 1 7 8 9 10 / 6 3 2 1 7 8 9 10 / 6 4 3 2 1 7 8 9 10/ 6 5 4 3 2 1 7 8 9 10 NOTE: The size of the...
asked by 28.02.2018 / 18:06
0
answers

About Snippets in VS Code

Hello, I use Visual Studio Code, I am a beginner in programming and wanted a help to mount snippets in VS Code, I wanted to create snippets for the basic C language functions, like printf and scanf, I already searched for exits and did not exist...
asked by 24.02.2018 / 09:34
0
answers

C / C ++ How to declare a type for an event handler in a class?

I need help in C / C ++ to know how to set a type for an event handler that will be used as a member of a class. This is an example that works with simple variables and functions: #include "cstdlib" #include "stdio.h" using n...
asked by 19.02.2018 / 20:45
0
answers

printf ("\ n") changes the result of an integer

I'm working on a recursive code that increments a variable every time I find a solution to my problem (I do not think it's relevant or necessary to explain the problem at hand). Well, the output of my program is supposed to print this counter...
asked by 25.02.2018 / 03:18
0
answers

CodeBlock with MingW to create .xll file

Good evening I'm new here and I scratch some C / C ++ prog that I had in college and I'm trying to use it at work, more precisely in Excel ... As VBA sucks, I need to create some functions in C / C ++ and generate an excel addin. I'm fo...
asked by 16.02.2018 / 06:17
0
answers

Is it possible to declare an int function inside a class?

Well, I'm new to the C ++ language and I'm wondering if I can declare an int function inside a class? Code sample: class Metodos : public TypeMetodos { public: int metodo_file(const char *file_name); };     
asked by 14.02.2018 / 23:58