I was practicing to be able to make a recursive exponent, and it works but not with doubles and floats , I do debugging and I get warnings in the implementation of C ++. It's a very long follow-up but in the end I get the next outpu...
The problem is the following I have my code in which it generates 10 random numbers in an array, then shows them and then orders them, what I want is that when I re-execute the "fill" function that is the that generates the numbers an arrangemen...
The or does not work in this while loop:
#include <iostream>
using namespace std;
main ()
{
char s;
do{
cout<<"\n\t\t> Ingrese el sexo: ";
cin>>s;
}while (s!='f' || s!='m');
return 0;
}
...
I'm trying to access a map that is contained in another map , but I get an error.
The code is as follows:
map<string, map<string, list<string>>>::iterator iter;
map<string, list<string>>::iterator...
I'm doing a console application in VS2008. I have a function that I have to call it every 5 seconds, but until those 5 seconds pass the program has to keep running. I have tried to use thread, but I can not include it because my version of c ++...
I have three constructors of a simple class A with different signatures but I wanted to make a single constructor that brings together the three constructors:
using namespace std ;
class A {
private : int x, y;
public :
A();...
How to use a type of a class inside a function external to the class?
For example let's use this example of mathematics. I want to create a class abtracts Bola with two attributes and a function contiene that tells me if a point...
I have this structure and I need that in the name field I can enter a data, but I have that data in a string.
typedef struct cliente{
int cedula;
int numCuenta;
char nombre[100];
cliente *izq, *der;
}cliente;
I go back to the community in search of help and learn, the code is not finished but when compiling and executing, when I do the test it throws me an error, can someone tell me what is wrong ?, in the faculty I made the same code and in the vers...
There is some way for an array to have all VARIABLES have the same initial value without using a FOR or WHILE loop.
here is an example of how I managed it with a FOR loop.
#include<iostream>
using namespace std;
int main(){
int...