Questions tagged as 'c++'

0
answers

Read WAV file and analyze samples every n milliseconds [closed]

I am starting a voice recognition project. I want to work with a text read aloud by me, and then introduce it to my program so that I translate it into ASCII text. As I have started, I would like to know how I can segment the continuous wave...
asked by 19.07.2016 / 17:46
1
answer

Error trying to load an image with sdl2_image and c ++, (segmentation faul core dumped)

I have tried to load an image in sdl2 and just when I use sdl_image I get an error ( segmeentation fault core dumped ). Only there gives me error everything else seems to work well. These are the libraries corresponding to...
asked by 22.03.2016 / 21:45
4
answers

global variables in c ++

I'm doing a program with functions and a global variable, the idea was to handle a global variable in several functions, I do not know how to do global functions, this is what I try: #include<cmath> #include <stdio.h> #include <...
asked by 24.07.2018 / 02:24
2
answers

Add the first 3 rows of a bi-directional array (Matrix)

#include <stdio.h> #include <conio.h> #include <math.h> main () { int i,j,datos[3][5],s; s=0; for (i=0; i<=2; i++) for (j=0; j<=4; j++) { printf ("Agregar Datos \n");...
asked by 05.09.2018 / 07:48
4
answers

the program stops on the 10th turn of a for. c ++

It happens that the program I have stops. You're supposed to read: Name Certificate 5 releases Major release Average number of launches All that in a array / vector , eh open a for that runs through the 10 athletes, the for...
asked by 18.11.2017 / 23:51
3
answers

Fill members of an object with two different functions

Imagine that I have an object a (of the Rational type) and a function to fill in that rational (write its numerator and denominator members). Well, I contemplate two options: MAIN PROGRAM #include <iostream> #include "Racional.h" us...
asked by 08.02.2018 / 13:39
1
answer

Operation of strtok and strcmp

I do not understand how this function works. Could you explain it to me in pseudocodigo step by step? I know it serves to censor but I can not understand how strtok and strcmp work. Greetings. #include<stdio.h> #include<string.h>...
asked by 24.10.2016 / 05:05
2
answers

Counter unexpectedly increases within a loop

I'm trying to do a small program in C ++ that asks the user for a range of values (xmin, xmax) , (ymin, ymax) . The aleatoriamente program will choose two values between (xmin, xmax) y (ymin, ymax) respectively and multipl...
asked by 09.12.2016 / 17:41
2
answers

C ++ Doubts about system ("cls")

Studying about C ++ I have found that it is not good to use the system () functions (such as pause, or cls, etc) I have two doubts: Why is it not good to use them? I found these two codes: 1.- Option: void clear_screen(...
asked by 25.02.2017 / 18:51
4
answers

How to delete bits of an integer?

I have the following school problem: Given a decimal n and a position k return the decimal number without the kth bit, that is, if n=37 and k=3 , you must return 33 . The problem is that I was conditioned to a...
asked by 28.09.2016 / 19:01