Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
Populating a linked list
 
Hi, Basic question. I'm trying to rekindle my C++ skills and I'm working through online problems. I...
[3 replies] Last: Thanks, I'll give those a try. (by Thunderchook)
Visual Studio: Opening Windows
 
OK. Weird question. I want to make a program in C++ that can open a exe that the user probably alre...
[14 replies] Last: @Grust697, Your code doesn't even mention notepad - why on earth do yo... (by lastchance)
int *y = malloc(100);
 
Can someone explain line Nr (9) and what is malloc function? #include <stdio.h> #include <stdl...
[5 replies] Last: if you care, this is C code. C++ usually uses new instead of malloc. ... (by jonnin)
HTTP GET winsock
 
Small HTTP client console app trying to understand GET requests. It always connects every single tim...
[5 replies] Last: Ah right memset addr to zero, now I get it. Thanks for the code a few... (by lostdog)
namespace issue with scope
 
Hello, I am a beginner at writing c++. In the code below, I am trying to include this namespace b...
[6 replies] Last: @seeplus ahh, I see, I will add that to the code instead of the int th... (by SemogEnaz)
As someone who never learned a coding language before how do you recommend learning C++? (1,2)
 
Is it possible to learn a low-level machine language like C++ as a first language? Been going at it...
[20 replies] Last: I will wait for VS 2022 to be officially released, out of preview sta... (by seeplus)
Inverting modulas???
 
In equaltion, x%3=2 how can i calculate x??
[6 replies] Last: I think its a "remainder operator" not a "modulo operator". Restrict t... (by lastchance)
memory-user.c
 
Can someone write comments on this code to be more understandable #include <stdio.h> #include...
[4 replies] Last: It can do something that surprises us; the program may engender undefi... (by JLBorges)
How to write this as a forloop program?
 
It goes like this, If the input is 5 it should output this. 1.2.3.4.5 2.4.6.8 3.6.9 4.8 5 Any ...
[5 replies] Last: ah, the single loop was not so bad with the extra variable. I was thi... (by jonnin)
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)
BMR Calculator for chocolates
 
I'm somewhat new to programming and have been assigned to see how many chocolate bars it would take ...
[1 reply] : Are you sure 655 shouldn't be 65.5 ? (by seeplus)
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)
Pages: 123... 10
  Archived months: [jul2021]