Questions tagged as 'c++'

1
answer

Undefined reference to 'WinMain @ 16' c ++

#include <iostream> #include <conio.h> #include <stdio.h> #include <string> #include <math.h> using namespace std; class facturar //clase: estructura con ventajas sencillas pero ponentes, y facturar es el nombre de...
asked by 22.03.2018 / 05:39
2
answers

Pre and post increment operators c ++

Who explains the behavior of this, please: unsigned int q = 0; cout << q++ << " " << q++ << endl; cout << q << " " << q++ << endl; cout << q++ << " " << q << endl; cout &l...
asked by 31.01.2018 / 19:48
3
answers

how to use characters in an "If" condition

hello someone could tell me how to make this condition condition (Day == "Wednesday") is a program that discounts movie tickets if it is Wednesday but it does not work.     
asked by 16.04.2018 / 06:36
1
answer

It gives me a compilation error and I do not know why I could solve it? [closed]

#Include <iostream> using namespace std; Class Ejemplo. { Private: Int Variable_1; const int variable_2;...
asked by 26.08.2017 / 06:32
1
answer

One question on c / c ++

I do not understand why when entering abcd efgh , in cadena1[0] and cadena1[1] , it is not showing me a,b . Another question, if I enter abcdefghij , why do not you put me directly abc in the first array and...
asked by 11.04.2018 / 21:36
1
answer

Algorithm in C ++ to find greater odd value? [closed]

Good, I am solving an exercise of the facu and it is a program that generates n matrices with pseudo-random values. I'm in this function:    2. Function "void imparmayor (...)": detects in the array "MInicio [] []" the largest odd value and i...
asked by 23.01.2018 / 18:17
1
answer

What is the process in C ++ to use headers? [closed]

What is the process in C ++ to use headers and then create an implementation file with the same file name.h for functions? Good, I would like to know what the process would be in detail to be able to do this.     
asked by 23.12.2017 / 04:48
1
answer

Error: cout does not type a name

I pass parameters by reference but I receive the following error message:    cout does not type a name Why can that happen? This is my code: #include<iostream> #include<conio.h> using namespace std; void valornuevo(int&...
asked by 17.01.2018 / 01:48
2
answers

C ++ Style when writing code

Hi, I'm trying to learn C ++, but I notice that everyone has a different style when writing the code Could someone explain to me what this piece of code does? { for( c = 0 ;c<4 ; c++) { desglose[a][c]=0; } } I know it's...
asked by 18.09.2018 / 05:14