Questions tagged as 'c++'

1
answer

How to get the line below (next row) in C?

Good morning people, I have a file that contains several lines, including the following: REMARK Evaluations: CoarseFF Proper-dihedrals Coarse Atomic Repulsion Coarse Compaktr Hbond_Strands Hbond_Angle_Dist_var_power_Strands Hbond_AHelixes...
asked by 04.12.2016 / 13:14
1
answer

Dynamic allocation with struct

/* [Error] expected primary-expression before'*' token [Error] 'dia' was not declared in this scope [Error] 'mes' was not declared in this scope [Error] 'ano' was not declared in this scope */ You are giving these compiler errors....
asked by 04.05.2016 / 17:41
1
answer

Class c ++ has no member named

I'm starting to develop a list of lists to represent a graph in memory. I just did this first part and am getting the following error: class std::vector<No> has no member named 'getId' Follow my code so far ... main.cpp: #incl...
asked by 29.04.2016 / 19:51
1
answer

How to create an android app using only c ++ in Android Studio?

Just for learning purposes, is it possible to create an app using only c ++ (without JNI)? And if it is possible, what are the steps, do you have any 'Helloword' examples somewhere? So I know some things in xml will be unavoidable. (Am I righ...
asked by 14.04.2016 / 13:44
1
answer

Figure Area Calculation

Maybe I already have something on the subject, but I did not find it. I am new to the area and would like help in developing a C ++ algorithm for detecting the area of a predetermined color in a figure. That is, the user inserts only the image i...
asked by 17.04.2016 / 04:08
1
answer

Error compiling project with QT

Hello, I'm a beginner in qt, I did a C ++ course with QT in 2013 but I was not able to take the apprenticeship forward and now I'm taking over. Now I'm trying to compile a simple project, I just create a new project in qt widget, it automaticall...
asked by 05.07.2016 / 01:32
1
answer

Socket C ++ Read Error

I'm developing a program in C ++ using Socket, the problem is that when the client sends some information to me I do not receive. In fact the program hangs. #include <iostream> #include <stdio.h> #include <sys/types.h> #inclu...
asked by 03.07.2016 / 22:54
2
answers

Analyze whether the number is even or odd, and which of the numbers is larger

setlocale(LC_ALL,"Portuguese"); int num1,num2; printf("\nInforme os números: "); scanf ("%i""%i",&num1,&num2); if (num1 % 2 == 0){ printf ("\nO número %i é par e",num1); }else { printf("\nO número %i é impar e",num1); } if (n...
asked by 13.05.2016 / 23:41
1
answer

Undefined reference in C ++

I'm studying c ++ and found a problem when working with object orientation, I followed some tutorials but it did not work. Account.h #ifndef CONTA_H #define CONTA_H #include <string> using namespace std; class Conta{ private...
asked by 17.02.2016 / 17:46
2
answers

Why does not the string array read?

I am creating a code that for now needs to read the name of N companies (whose N is given). I'm trying to enter the names but the program simply does not read and is the first time I try to allocate dynamic arrays. The code is here: #include &...
asked by 07.01.2016 / 17:00