i want to sniff arp replays to be more specific i want to intercept arp packet and retrieve ip addresses using libtins im not quite sure with the filter i put "
I was recently doing the first question in the Leetcode Biweekly Competition 78, and I received an unexpected runtime error which I couldn't understand, especia
Consider the following program: #include <iostream> int main() { std::cout << "Hello, World!\n"; } I compile it with on Ubuntu 20.04 (Focal F
Consider the following functions: constexpr bool IsNull(const int* arg) { return arg == nullptr; } void Test() { int x{ 42 }; int* p = &x; /
I set SDL2 and SDL_image 2 in Code::Blocks and now I get an error: "fatal error: SDL.h: No such file or directory" Can someone help, everything seems okay. My i
I am new to c++ and I am wodering how to properly define functions? Right now I am receiving the following errors: Severity Code Description Project File
This is my code that won't compile: for( auto occurances : occ ){ if( occurances == 1 ) cout << distance( occ.begin(), occurances ) } It gave me th
I am having following C++ code and corresponding unit tests in google test. I am studying book on Modern C++ programming using Test Driven development. Below co
The vector<int> bfs is local to the method bfs_of_graph then how can we return the vector as it would be erased in the memory and only garbage values shou
I'm trying to do the following: Receive x and y coordinates of a EC public key Generate a random EC public key Compute the shared secret of the two keys I'm stu
i am a noob in Qt, when a push a particular push button, the project window closes and shows this error: ASSERT: "i >= 0 && i < size()" in file Q
Given a number n Find the count of the sub numbers of size x in a number num which divides num. For example, if the number is 250 and x=2 the answer will be 2 a
I want to remove the vowels from a std::string with this code: # include <string> #include <vector> bool IsVowel(char c) { return ((c == 'a') |
What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them?
Hi im trying to create a backup function for my program, the idea is to copy and send all the files from one especific folder from my client to the server, the
#ifndef WORLD_H_ #define WORLD_H_ using namespace std; class World{ public: friend class DoodleBug; friend class Ant; friend class Organism; i
I was writing an AVL tree implementation but got an error due to bad_alloc on another platform. However, the code works perfectly for me in CS50 IDE without any
I'm new to using CLion and when I try to debug I get an error saying Debugger executable not found: C:\Program Files\JetBrains\CLion 2021.3.3\bin\gdb\win\bin\gd
I am trying to turn a function, createArray, into a constexpr function. This function creates an array from a contiguous section in memory marked by two arbitra
I'm trying to understand dynamic type casting. How to properly implement the DrawAnimals and Talk To Animals functions using dynamic_cast? DrawAnimals draws ani