Questions tagged as 'c++'

1
answer

Is it possible to compile C / C ++ from Windows / Linux for Macs?

In a hypothetical environment where I do not have the system nor how to emulate, would it be possible to compile an application in C ++? (properly compatible) I have already found some interesting cross-compilers , but they only manage...
asked by 05.07.2017 / 16:47
1
answer

Get filenames and put char array

How do I get the names of the files in a directory and put them in a multidimensional char array? #include <stdio.h> #include <dirent.h> int main() { char arrayNomes[10][50]; char dirn[50]; DIR *dir = NULL; struct...
asked by 24.06.2017 / 21:11
1
answer

Error trying to compile .h files in c ++

The code is this: #include "stdafx.h" #include "classeID.h" #include <iostream> #include <string> using namespace std; int main() { id label("default", 0); cout << "Nome: " << label.getName() << "\n";...
asked by 06.07.2017 / 03:39
2
answers

Pass array to functions in C

Good night, next I have a problem when passing an array to a function in C. I have the following code void funcao(int mat[][num]); int main() { scanf(%d,&num); } It is basically the following, I define the size of the array in the ma...
asked by 21.06.2017 / 01:19
0
answers

C ++ Reduced spending space

I'm creating a C ++ project with Allegro 5 using code :: blocks, and I put allegro files straight into the project folder to make it simpler. I'm using functions only to display images and texts with ttf fonts and detect mouse and keyboard event...
asked by 16.06.2017 / 04:42
1
answer

App webview does not work perfect with YouTube

Create a webview app from my website, on PC it works perfectly www.pipocaplayfm.com now in the webview it does not play the videos as on the website - Link from app link Is there any solution I can apply to it to work properly? My code:...
asked by 27.06.2017 / 03:56
1
answer

Vectors or Arrays in C / C ++ [closed]

I have a question about how to do item 1 in the menu, if anyone can explain me, I would appreciate it a lot :) Faculty X thought of adopting lockers for students to leave their materials in the same way as American universities. With that, sh...
asked by 10.06.2017 / 02:16
1
answer

C ++ Iterator while jumping the reading of cin.getline

I'm starting in C ++, during some tests I noticed that after the second iteration of while the command cin.getline was not read displaying the line after it. I do not understand what happens. Here is the code: #include <iostream> #includ...
asked by 24.06.2017 / 01:33
1
answer

Problems with code from a priority list in C

I'm creating a priority list in C (topological ordering) using vectors and within those vectors a linked list pointing out who has to come before whom. But it's giving the pointer error and I really can not figure it out. #include <stdlib.h...
asked by 14.06.2017 / 00:39
3
answers

problem with inversion of values of a vector

Good evening, I can not find a problem in my code, it's a website exercise codewars ( ), for those who do not know the site, it is a site to train programming, here I am only dealing with the inversion of 3 and 7, ex: enter a array{ 1,3,4,7,...
asked by 01.06.2017 / 01:11