Questions tagged [C++] (5597)

1
answer

What can I write in C++ of a commercial, standard user?

Is it possible for the average user to write a commercial product written in C++? Or this language is not made for such?
Renee59 asked April 19th 20 at 12:30
2
answers

What a dump(memory) process and how to use it?

I think that C++ has a part in this issue. Because most software and games written on it or on the C-like language. Correct me if I wrong. In General, interested in the question: what is a memory dump of the process and how to use it. Not the OS, and some programs or games. I already tried to open a dump file is a trial v...
Moshe_Gaylo asked April 19th 20 at 12:26
3
answers

Browser-based chat using C++ and JS?

Good afternoon. I want to write a browser based chat using JS and server written in C++. The problem is that I can't find any implementations. Can you advise what to read or where to start.
Jon asked April 19th 20 at 12:26
2
answers

What's the difference between passing by pointer and by reference?

There is a base class A. There is a function bool foo(A &qw, A *qw2) What is the difference, what to pass to the function, a reference to the class object, or a pointer to an object class. In the first case the treatment is obtained qw.xx, and in the second qw2->xx. Please explain the difference. And how more correct...
lori asked April 19th 20 at 12:22
1
answer

How this feature works?

Given the following code, which gave rise to questions #include <iostream> #include <fstream> using namespace std; void insert(list*& p, char value); struct list { char symbol; list* next; }; int main() { setlocale(LC_CTYPE, "Russian"); list* first = nullptr; char value; cout << "Enter a ch...
Jermey_Kuphal asked April 19th 20 at 12:20
1
answer

As on the client using a broadcast request to find the server (Winsock)?

There is a server on the PC, then start the client (All UDP). How to make a network broadcast to find the server to get its ip (well, there is 127.0.0.1 and in any case I think) and the port to fill the structure : RecvAddr.sin_family was = AF_INET; RecvAddr.sin_port = htons(Port); RecvAddr.sin_addr.s_addr = inet_addr("127....
Madeline_Rosenba asked April 19th 20 at 12:19
2
answers

Java on the hardware level, the differences from C++?

Good day! Recently started to learn Java with the book "Java 8. Guide for beginners | Shildt Herbert", it says, and I quote: The Java language was conceived in 1991 by employees of Sun Microsystems by James Gosling, Patrick Naughton, Chris Worth, ed Frank and Mike Sheridan. It was originally called Oak, but in 1995, when ...
alysa66 asked April 19th 20 at 12:13
2
answers

How to connect the library using MinGW?

Decided not to use Visual studio or Code::Blocks, installed MinGW. The compilation seems clear. Got another question, how to connect the library. Watched a couple of videos, read a couple of articles, but never found. As I understand this requires linking. Let's say I would like to use GLFW. Threw the desired files into the...
Troy.Walter asked April 19th 20 at 12:07
2
answers

How to solve the problem with receiving messages from the client to winsock using UDP?

Deal with winsock, particularly with udp. When making/waiting for messages out even though the code is almost all from the microsoft documentation. recvfrom gives an error with code 10057. Like it is connected with the socket, although the socket and bind are successful. Server code: #include <iostream> #pragma commen...
foster asked April 19th 20 at 12:05
2
answers

The compiler gives " � " why?

When you select "1" - it works, but if you choose 2 to 5, the compiler generates the token "�"#include <iostream> #include <string> double power(double n, int p); char power(char n, int p); int power(int n, int p); long power(long n, int p); float power(float n, int p); using namespace std; Chose enum{int_, dou...
Scottie_Pouros asked April 19th 20 at 11:58