General C++ Programming (Page 5)

Conditional configuration of a C++ module
Hi, I am looking for ways to configure a C++ 20 Module. For instance: in ordinary (pre C++ 20) cod...
[1 reply] : It depends on what you are trying to achieve with this condition. Nor... (by coder777)
Has anyone used emscripten?
I've used other virtual c++ compilers before, mostly ones to be able to write c++ on android. I kno...
[3 replies] Last: OK, so saving files feels a bit hackish on emscripten. A lot can be c... (by newbieg)
When input is obtained - such as a book's title - then convert it to say lowercase and store. Then w...
[2 replies] Last: Are you writing C or C++? Pick one. When possible avoid mixing them... (by AbstractionAnon)
by Cplusc
Let's say I have two vectors a and b and I am going to get the result vector c =a *b . Each part of ...
[4 replies] Last: thanks for your answer. (by Cplusc)
Search word in text file in print that role of context
So I need to let the user to input any words he wants to find. For example, in a row of a name list,...
[3 replies] Last: my home-rolled program like this prints the line number & the line if ... (by jonnin)
c++ console program with html
Hello, I am starting out on programming and I got an assigment to make a console program with c++ an...
[2 replies] Last: Thanks ! (by arnas1132)
C++ Reading variable names and values from a file
Hello So I have a text file that looks some thing like this one = 1 two = 2 three = 3.3 name ...
[3 replies] Last: Cool thanks guys, l'll make one of these solutions work (by WarrenW)
Writting in a saved File.
Open the file in append mode. Run this program a few times and observe its output: #include <iostr...
[no replies]
Assigning local lambda makes for dangling reference?
Hi, I have a local lambda that is assigned to a field of an object called storage. This lambda will...
[7 replies] Last: > How do I know it is moved assigned? The standard specifies that st... (by JLBorges)
Conceptual: Assigning threads to different CPU cores , Mutexes vs Semaphores
Hello, I am trying to figure out some things relating to a learning exercise in Operating Systems. W...
[2 replies] Last: 1. What is the disadvantage of always assigning a thread to a differe... (by kigar64551)
recursive (1,2)
could someone explain how to do the recursive portion on this #include <iostream> #include <iom...
[34 replies] Last: From JLBorges post above: int mul( int a, int b ) { if ( b == ... (by seeplus)
using classes for calendar helper (1,2)
looking for help on this code I have no idea how to continue from this point #include <iostream> #i...
[22 replies] Last: I've tried to make my code less confusing I have Set Day done..( case... (by ocKiNOsIi)
Elaborated type specifier syntax
I need a simple "Elaborated type specifier syntax" example and when to use it?
[no replies]
memory mapping
i am trying to map an exe file in memory than write to its text section and than write it back to di...
[9 replies] Last: thought mapping a PE will sort of emulate how a PE looks in memory ... (by kigar64551)
by Cplusc
Metis for finite element triangular mesh partitioning
I am trying to use Metis to partition a finite element mesh. however, In the metis manual I read som...
[6 replies] Last: When I obtain eptr and eind according to what we have discussed here s... (by Cplusc)
by pika77
howw to pass user value using same variable between function to function
/* Given the following C++ program, #include<iostream> using namespace std; int main() { in...
[2 replies] Last: thks bro!! my code finally works XDD (by pika77)
by volang
I need a corresponding solution in C++ for an OpenSSL command
In , there is a section called "Server Encryption Keys Calculation". If you open it,...
[4 replies] Last: Thank you kigar, this helped alot. Finally I got it to work with the h... (by volang)
by Cplusc
array of pointer
In the following piece of code, I have a problem of reading memory. When assigning value to adjncy I...
[4 replies] Last: Thanks for you explanation. I got it. (by Cplusc)
and the c++ question is? There is the c++ std::sort() which can be used with an appropriate compara...
[1 reply] : #include <iostream> #include <vector> #include <utility> #include <al... (by lastchance)
Understanding pointer to a vector of pointers code
(I didn't write this code. This is an existing piece of code from UC Berkeley's parallel algorithms ...
[2 replies] Last: or, you misread it. new works like this: pointer = new type; //one it... (by jonnin)
Pages: 1... 3456
  Archived months: [nov2021]

Cannot post in this page. To post a new message, go to the first page.