Questions tagged as 'c++'

1
answer

Error on client-server connection via socket

I'm a beginner in c ++ and I'm having trouble getting my client code to establish a connection to my server in Python, the server is running, but the client always goes into error 4 and does not complete the connection, which I should to do? #...
asked by 25.05.2017 / 02:42
1
answer

How to read multiple rows in c ++ without using a file

I need to make a program in c ++ that reads a multi-line input and stores each line (string) in a vector. I've already tried using cin.eof() and fgets() but it did not work. #include<iostream> #include<string> usin...
asked by 29.05.2017 / 23:39
1
answer

Python error api-ms-win-crt-runtime-l1-1-0.dll

I have been using Windows 7 64bits, I downloaded and installed python 3.5 but when I start the program, I get the following error message:    The program can not be started because it is missing   api-ms-win-crt-runtime-l1-1-0.dll on your com...
asked by 31.01.2017 / 21:05
1
answer

Reading char and string in c ++

I have to put an integer, a real, a character and a sentence containing spaces up to 100 characters. I tried to make the solution but I can only type the numbers and the character and the string are not coming out. #include<iostream> #in...
asked by 06.09.2018 / 20:14
1
answer

How to install the freeglut library in dev c ++?

Can anyone help me? How do I install the freeglut library in devc ++? Next semester will have computer graphics in college and I can not install the freeglut library to help me in game development. What I have so far is a folder called freegl...
asked by 24.06.2018 / 20:20
1
answer

Use static or dynamic variables in my codes? What would be more efficient or better seen in the job market?

What's better: Use static or dynamic variables (using pointers in the case) in my codes? What would be more efficient or better seen in the job market? I imagine that each one has its most recommended applications, but I wanted some external opi...
asked by 09.11.2018 / 23:58
1
answer

Validating only cpfs with different numbers

Good evening guys needed to do in the function below a way to invalidate cpfs typed with equal numbers eg: 123456789 000000000 111111111 222222222 333333333 444444444 555555555 666666666 777777777 888888888 999999999 inline bool isC...
asked by 04.02.2018 / 22:54
1
answer

Implementing month type function

Good morning, people? I was implementing a function of type Month that returns Month I've tried using static_cast to convert to Month type but the conversion errors for it. The program is this below: #include <regex> #include <arra...
asked by 23.01.2018 / 11:54
1
answer

Identify multiple numbers in a variable

   Create a program that, given a set of temperatures of 8 Portuguese cities, identified by an order number, indicate which ones have a temperature higher than the country average. My problem is to identify these cities by their number ......
asked by 03.12.2017 / 14:48
1
answer

Program does not execute when filling vector with random numbers not repeated in C

I'm trying to get the random numbers to be generated and fill a vector in a separate function, but the program does not execute and hangs if I put a high, and not as high, number as 50 or 100. Below is my code , if anyone knows what's wrong help...
asked by 28.03.2017 / 12:50