C++ answers

  • 1answers
    Implementation of HTTP Proxy with file saving. Where can I find information?
    You need to implement a proxy server that will save all files passing through it. (Only files will be downloaded through it) e.g. there is a request - myserver / test.avi you need to save the test.avi file at the time of the request. Which way to dig? Have any of you solved this problem?
    C++ Anonymous, Oct 13, 2019

  • 3answers
    Why are there so few DirectX tutorials / video tutorials?
    Relatively recently I started to study DirectX 9 and faced a catastrophic lack of information. Few books, few tutorials, few video tutorials. Why is there so little information on DirectX? If you know, tell me some good English / Russian-language resources on learning DirectX, I will be very ...
    C++ Oliver Vasquez, May 22, 2020

  • 4answers
    How do I write the QLineEdit value to a variable?
    The following files attempt to implement a user authorization dialog in the database: autorization.h #ifndef AUTORIZATION_H#define AUTORIZATION_H#include <QWidget>namespace Ui {class Autorization;}class Autorization : public QWidget{ Q_OBJECTpublic: explicit ...
    C++ Nathan Rich, Aug 4, 2019

  • 3answers
    Which is better to auto or to specify the exact type of a variable?
    Good day. nevertheless, I got to the resolver and a small question arose, since he advises throughout the code to change the exact type that I specified to auto. why is he doing this?
    C++ Anonymous, Feb 16, 2019

  • 0answers
    OSRM compilation error: / usr / bin / ld: cannot find -lc ++. How to overcome?
    Good day! I am trying to build OSRM under FreeBSD 9.3, but it still doesn't work. Ultimately, when I do cmake, the following happens: /usr/bin/clang++ -stdlib=libc++ -I/usr/local/include/c++/v1/tr1 -L/usr/local/lib/c++ -v CMakeFiles/cmTryCompileExec2359982921.dir/testCXXCompiler.cxx.o -o ...
    C++ Anonymous, Mar 7, 2019

  • 1answers
    How to pass a string to lex and not a file descriptor?
    How to pass a string to lex and not a file descriptor? I make a parser for sql queries using the lex + yacc bundle. I need to parse requests that come over the network in real time. In the examples that I found, the input stream is passed as a file descriptor, and I need to parse the string that ...
    C++ Anonymous, Nov 16, 2020

  • 1answers
    Regular. How to determine the presence of a certain fragment inside []?
    Hello! I have the following problem, there is some text that needs to be checked for the presence of non-alphabetic characters, but possibly having numbers and the "_" symbol, for this a simple regular pattern like the following worked: ^ [\ W \ d \ _ ] + $ Further, it was also necessary to ...
    C++ Anonymous, Apr 20, 2019

  • 1answers
    Is C ++ AMP technology relevant now, is it used?
    Is C ++ AMP technology relevant now, is it used?
    C++ Anonymous, May 10, 2020

  • 6answers
    How can I store a large number of elements in an array?
    Tell me how to store data, the amount of which exceeds the maximum value of the int type? You can't use the index ...
    C++ Isaiah Hall, Jul 14, 2020

  • 0answers
    How to cache / save data received over the network by ffmpeg?
    I read the video from the server and decode it, ffmpeg is able to normally download the file from the server. At first I thought to save the uncompressed frames and then use them as a cache, but this is a rather large amount of memory. But is it possible to set a folder in ffmpeg to save the file ...
    C++ Anonymous, Jan 28, 2019

  • 0answers
    C ++ inference operator overloading?
    There is a class: using namespace std;class Stroka{ protected: static int iCount; char * p_char; int size; public: Stroka() { cout << "КОНСТРУКТОР БЕЗ ПАРАМЕТРОВ [Базовый]" << endl; ...
    C++ Gabriel Heath, Sep 17, 2019

  • 2answers
    Which option for learning C ++ should you choose?
    Is there a difference, learn the pros in Windows on standard libraries or in Linux on alternative ones? I'm used to compiling from the terminal, but here it turns out that process.h and conio.h do not exist in g ++. And isn't there a way to add these libraries to g ++?
    C++ Finn Gill, Jan 2, 2019

  • 1answers
    How do I initialize an array in a C ++ constructor?
    In general, I'm a weber and you don't need to scold me much)) I just decided to remember the syntax. class Map{private: int x; int y; int map[20][20];public: Map(){ this->map = { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, ...
    C++ Lukas Kerr, Jun 20, 2019

  • 3answers
    Qt to unpack ".gz"?
    Hello! How is it possible to unpack ".gz" archive using Qt tools? I work under windows.
    C++ Marilyn Blake, Jul 8, 2020

  • 1answers
    Why is apache slow to process?
    There is a tutorial that generates server requests (written in C ++). Server - apache2, Ubuntu Server OS. I want to achieve a speed of 128 Kbit / s, I transmit in portions of 400 bytes, therefore, I make 40 requests per second. Each request is a separate thread. On apache, I measure the speed at ...
    C++ Anonymous, Nov 22, 2019

  • 4answers
    Where can I find the best c # practice?
    Guys, tell me where to find, see the best practice in c # and generally in programming ?? Well, for example, how best to write LINQ queries, how best to work with streams, and so on. And tell me, I have only 5 months of work experience, and my eyes run up what to study in terms of topics, tell me ...
    C++ Anonymous, Oct 28, 2020

  • 3answers
    How strongly does polymorphism affect performance and is it taken into account in serious software and computing systems?
    How strongly polymorphism affects performance and is it taken into account in serious software and computing systems
    C++ Audrey Nash, Mar 9, 2020

  • 1answers
    Binary tree. How to calculate the amount?
    Hi, student, I ask for help in the implementation of the task, I spent a lot of time to get a working tree, but I can’t think of how to add it (( Task. Implement a binary tree, each edge of which corresponds to an integer (weight). It is necessary to calculate the total weight edges of the path ...
    C++ Hanna Potter, Aug 12, 2019

  • 2answers
    How to use slots to record keystrokes on the keyboard?
    There is a picture, you need to move it by pressing a key (any), do you need slots, if so, how to implement all this with their help.
    C++ Anonymous, Apr 4, 2019

  • 3answers
    How to intercept keyboard in QT?
    Let's imagine that I have a picture, I want to move it by pressing a key on the keyboard. Perhaps I need to use slots, but how to let the computer know that this or that key is pressed: D
    C++ Juliette Santos, Jul 11, 2019