Questions tagged as 'c++'

2
answers

What is the difference between c and c ++ [duplicate]

I'm starting programming and would like to know the difference between c and c++ and which one should I start to make studying easier.     
asked by 23.07.2015 / 16:19
1
answer

Read a txt file and store the content in lists

I need to read a large ".txt" file and its contents are in the following format: 1 12 1 13 2 5 2 6 I would like to know if you can read the value of each column and store it in a list, for example: Ler "1" Armazenar o "1" numa lis...
asked by 12.04.2018 / 17:41
1
answer

Arduino (C ++) send variable to page in PHP [closed]

I have the following code in C ++ in Arduino int variavelemc; variavelemc = 10; And I have the following code in PHP $variavelemphp = $_POST['variavelemc']; How do I pass variavelemc to $variavelemphp ? Additional Infor...
asked by 08.10.2018 / 14:37
2
answers

Whole values in the terminal

I need to sum the odd numbers between 2 values. In online compilers the code works as expected, adding up any odd input values and giving the expected output, but in my terminal (4.15.0-34-generic) when putting, for example, 6 and -5, the output...
asked by 04.10.2018 / 12:58
1
answer

How to solve various errors of this code?

I typed this book program that addresses classes and gave error. How to solve? #include <iostream> using namespace std; class Efetua_calculo{ private: double total; double soma; double divide; public: void mostra_calc...
asked by 21.07.2015 / 20:49
2
answers

Language that Autodesk software uses [closed]

I'm wondering in what language the Softwares of Autodesk are written and the name of the GUI used. If you can help me with this information.     
asked by 02.09.2015 / 23:12
1
answer

How to put sound in c ++?

I'm still new to programming and wanted to put the sound of Super Mario inside a college project, how do I make it work? Code: int certo=0,errado=0,certoVF=0,certoA=0; char resposta,r1,r2,r3,r4,r5,r6,r7; int nivel,v,x; printf ("\t| 0...
asked by 24.07.2018 / 21:55
2
answers

How to use ("% 10.2f", & d) in C I want the number to be whole

#include <iostream> #include <stdio.h> int main() { int a,b,c,d; printf("Escolha Qual das equacoes se adequa a sua duvida de 1 a 3\n\n"); printf("?+X=X escolha (1) \nX+?=X escolha (2)\nX+X=? esco...
asked by 11.10.2018 / 01:09
1
answer

Largest palindrome in a string? C ++

I'm trying to make a code to be able to find out, for example if in phrases like: The blue macaw is beautiful! Do you have a palindromo and which is the biggest one? in the case the answer would be: macaw I got the code below but I do not know h...
asked by 23.10.2018 / 21:46
1
answer

How do you find prime numbers in a given range? [closed]

I need some help with this program, on the for. Next, I need to print the prime numbers within this range A and B determined by the user, the problem is that the program only printed a number within that range. And also show whether or not there...
asked by 06.11.2018 / 02:15