Questions tagged as 'c++'

1
answer

Program.exe has stopped working

I'm with this code, a little ugly. I want to know why I get it    Program.exe has stopped working I've been looking for the error for a long time, thanks in advance. #include <iostream> #include <stdlib....
asked by 06.11.2017 / 05:58
1
answer

What is the error in this algorithm? (C ++)

This algorithm must order 4 numbers and print them in an ascending way, I did this, compare them with each other, but with the n3 and n4 I do not do well, because it can be? I was looking for the error but I can not find it, if anyone can give m...
asked by 24.06.2017 / 23:35
2
answers

Get the mouse click when you click on the console

I'm in a school project, I need to get the click when I hit the console. Where you press save the coordinates X, Y and put them in void GotoXY(int x, int y); for the program to continue printing at that point. Then wait for another...
asked by 20.02.2018 / 19:40
1
answer

Delete element 6 and the first three elements of the vector

#include <iostream> #include <vector> #include <list> using namespace std; int main(){ int i,n; vector <int> v(10); cout<<"ingrese 10 numeros"<<endl; for(i=0;i<10;i++){ v[i]=i+1;...
asked by 06.04.2017 / 17:32
1
answer

syntax error c ++

hi friends I am new here I want you to help me in this program I am using a textbox. it turns out that the information I want to save it in a text file but that the user names the text file I think the way I keep it is bad void admpacientes()...
asked by 06.12.2018 / 06:53
1
answer

Program in c ++ that executes A command [closed]

How do I create a Program in c ++ that execute this command when executing it: ping link And the ping that sends that page is shown, thanks!     
asked by 29.08.2018 / 22:34
1
answer

C ++ - Error loading data in a struct array located in a header file

I am very new to c ++ and I am having some problems with a task, the same is detailed below:  I have a struct and a function to load data into it. The program compiles correctly if all the code is in the same main.cpp, but I need it in different...
asked by 02.09.2017 / 23:49
1
answer

stays in infinite cycle and can not see why

This is the code: while (op != 0) { op = 0; scanf_s("%i", &op); system("cls"); printf("\n\n"); switch (op) { case 1: printf("Ingrese el numero de cedula del cliente y presione enter: \n"); scanf_s(...
asked by 09.07.2017 / 20:45
1
answer

What's the use of srand (GetTickCount ())?

I see this function many times in different codes, srand(GetTickCount()) What is it really used for?     
asked by 20.06.2018 / 14:18
1
answer

assign an icon to a qfile

Hello, I'm trying to assign an icon to a qfile. When I refer to a qfile, I refer to the lifelong qfile: QFile file("example.txt"); Documentation:    link But what I wanted was to assign to this qfile an icon. The problem can not fi...
asked by 12.12.2016 / 01:38