Questions tagged as 'c++98'

2
answers

Validate an object within set, list, map

class Coordenada(){ int fila; int columna; //los getter and setter } int main(){ std::set<Coordena> coordenadaSet(Coordenada(4,6)); Coordenada coordenada(5,6); if(coordendaSet.find(coordenada) != coordenadaSet.end()){...
asked by 08.10.2018 / 11:10
1
answer

Copy and destructor builders in C ++ 98

This is a small wrapper for a system of binnacles; the used library is in C, so I have simply added an interface to std::stream : #include <sstream> #include <iostream> class ILogger; class Stream { friend class ::ILogg...
asked by 03.03.2018 / 23:02
3
answers

Error with fixes

Hello everyone, is that I try to solve a problem with minor and major fixes and make their difference but ... the program defines well the major element but not the minor so is the arrangement 2 5 3 7 12 9 8 5 4 10 Define the biggest on...
asked by 29.09.2018 / 20:04
1
answer

Array of objects with the class 'vector'

I wanted to know how you could create an array of objects with the vector class and also call the constructor method of each vector object (array). What I have done so far is this: #include<iostream> #include<vector> using names...
asked by 16.06.2018 / 02:18
1
answer

Thread stopped C: \ ... Fault: integer divides by 0x401203 error in borland 5.02

Borland use 5.02 for a college job ... and for some reason the program is not able to assign variable values in other variables to simple mathematical functions. This is my code: #include <stdio.h> #include <conio.h> main() {...
asked by 11.04.2016 / 00:54
2
answers

Concatenate vectors with std :: vector in C ++

I wanted to know how you could concatenate two fixes in C ++: For example a = {1,2,3,4,5} b = {6,7,8,9,10} c = a + b //El resultado c = {1,2,3,4,5,6,7,8,9,10}     
asked by 24.06.2018 / 06:25
0
answers

Create, view, search, modify and delete a file.txt

The program fails in case 4 and 5. I appreciate if you can help me and see what is wrong. using namespace std; #include <iostream> #include <fstream> //guardar fichero int main() { int cedula,opcion,Bcedula,edad,telefono,Ntel...
asked by 08.02.2017 / 05:01
1
answer

Problem when using a singleton with an abstract factory

I only put the title of the pattern that I am using, but that is not a problem (maybe it seems to me to be a header problem) I also try to detail everything in my code with its respective compilation error. If someone has any idea to solve it, I...
asked by 01.11.2018 / 01:00
0
answers

Generate excel in C

Good morning, I'm trying to create a library to generate excel files (.xls) in C, but I have no idea how to get sheets, here's the code: #ifndef SACAEXCEL_H_ #define SACAEXCEL_H_ //cada celda ira separada por una '\t' de la siguiente y por...
asked by 25.11.2017 / 14:53