Beginners - September 2021 (Page 3)

by jhw
Attempting multithreading in Windows under MingGW64
 
Hi ya'll I'm' attempting to run a multithreaded process by using std::for_each(std::execution...
[3 replies] Last: It could be just the implementation, and nothing to do with your envir... (by kbw)
delay-loaded dll
 
I have a debug .dll build that uses libcurl to send HTTP requests, all working fine. With the rel...
[5 replies] Last: Thanks all, I'll look into it. (by lostdog)
by T55
Why won't this switch statement work
 
So I've just started making a text based snakes and ladders game in C++ but this switch statement ju...
[2 replies] Last: Holy crap I feel so stupid I was stuck with this for like an hour and ... (by T55)
Debugging A Release
 
Should be a quick one, how do I debug a release? I followed the instructions here https://docs.m...
[3 replies] Last: you can add instrumentation ... that is, put in a global variable(keep... (by jonnin)
HTTP PUT winsock
 
I have this sending a HTTP PUT, it works great as a one time thing WSAData wsaData; WORD DllVer...
[1 reply] : found it I wasn't closing the socket. closesocket(connection); ... (by lostdog)
Intermittent ifstream::read()
 
I am creating a little project to help distribute a language as a standalone exe. It works by having...
[10 replies] Last: In most cases probably not, but since if it doesn't read exactly the n... (by DreamingInsanity)
memcpy
 
Hello, does this function memcpy only copy from src to destination. For instance if the src is an ar...
[3 replies] Last: note also that it has the 'pointer issue'. consider struct foo { s... (by jonnin)
by scaar
Shared pointer and copy constructor
 
Hello to everyone. I would like to create a general function that is able to print some info that co...
[7 replies] Last: You could use multiple inheritance. Something like this with my origin... (by dhayden)
Rearranging words in a string?
 
I'm just wondering if it's possible to use getline(cin, string) in some way so if the user were to i...
[2 replies] Last: #include <iostream> #include <string> #include <vector> #include <sst... (by lastchance)
by Deng
How to wait in C++?
 
Is there a simple way to code a one-second "pause"? Just like time.sleep(1) in Python: import tim...
[9 replies] Last: Try this, it's a slight adaptation from https://stackoverflow.com/ques... (by againtry)
HELP WITH SWITCH STATEMENT c++
 
Can anyone help me with this? I would first like to say I don't just want the answer so please at...
[3 replies] Last: You have an enum which means you can use Burger and Fries as numbers. ... (by zapshe)
HTTP client GET request
 
I'm trying to make a HTTP client, to send commands to a radio software over HTTP via localhost if ...
[12 replies] Last: @kbw thanks for the help, I had a manic moment with libcURL trying thi... (by lostdog)
by Shizzy
simple calculator crash fix?
 
Hello and sorry in advance if this isn't the correct place for this. I'm very new to C++, I'm in col...
[3 replies] Last: Thanks for the help! The cin.get was exactly what I was missing. Sorry... (by Shizzy)
How exactly would you make a wordcount program?
 
This is proving to be much more difficult than I thought. It has to count words by spaces and senten...
[6 replies] Last: As your "words" are meant to be separated by whitespace, why not just ... (by Duthomhas)
program c++ with two function to check if the tree (semtrical +identical)
 
I just created program with two functions to check if the tree is symmetric or the trees are identic...
[4 replies] Last: Don't you know what the result should be? (by seeplus)
exec + fork
 
What will be the result of this code? Explain this line (exec ("/usr/bin/gedit")) int main ...
[5 replies] Last: That line executes the program /usr/bin/gedit. What does gedit do? I ... (by dhayden)
Can anyone help create a limit of guesses for my code?
 
I am trying to limit the number of guesses in this random number guessing program to 5. I have every...
[3 replies] Last: Oh I see how to fix it now. Thanks for the help! (by coder3124)
Fix for my code
 
Hi, if my input is 3 3 3 * output will be 3***3***3***3 However there should be an exception where ...
[5 replies] Last: fill is a std::string, sequence of char s, in the example it is crea... (by The Grey Wolf)
by Deng
fstream NOT functioning in Xcode
 
When I wrote the following code on my iMac Xcode, it does not write anything into the file "data.txt...
[10 replies] Last: Get that, thanks! (by Deng)
by FayZ
Appending to a doubly linked list
 
I'm trying to append an array of characters to a doubly linked list and this is what I have so far. ...
[3 replies] Last: draw a diagram head is your first element head->next is your second el... (by ne555)
September 2021 Pages: 12345... 7
  Archived months: [aug2021] [oct2021]

This is an archived page. To post a new message, go to the current page.