General C++ Programming (Page 3)

by Cplusc
mpirun (1,2)
 
I am trying to run a code with MPI. I already have Microsoft SDKs and other mpi compiler along MINGW...
[23 replies] Last: Yes, it needs to be set when building the package. That's why I said w... (by Cplusc)
Calling an array in a if function
 
Sorry if this isn't enough information, I'm a beginner in c++ coding. So what I want to do is to s...
[4 replies] Last: I feel like something is missing. If the loop does 601 iterations, "s... (by keskiverto)
by SSDEEZ
accessing binary heap in loop
 
Hi, I'm trying to print out a binary max heap, that is made up of classes that I've created above bu...
[1 reply] : duplicate: http://www.cplusplus.com/forum/beginner/283477/ (by George P)
how can pointer a class?
 
heres my form class: /////////For EVENTS////////////// #if defined __GNUC__ #define EVENT [[gnu...
[8 replies] Last: after several time and work and tests, i get it to work a simple test:... (by Cambalinho)
Resource leak
 
Hello, I just create a helper library to prevent resource leak and posted at https://github.com/Tarc...
[2 replies] Last: To avoid resource leak when porting legacy code most time we have to ... (by helios)
by Cplusc
clapack package example (1,2)
 
I download the CLAPACK example from here https://icl.cs.utk.edu/lapack-for-windows/clapack/CLAPACK-E...
[24 replies] Last: I got it worked. I again downloaded the clapack using curl -O https://... (by Cplusc)
what is b3b2 mean in C++ ?
 
I am new in learning C++ , pls I need to understand what is mean b3b2 , I think it is mean a value i...
[4 replies] Last: @kigar64551 thank you very much (by codernew)
Making a loop and table for outputs
 
Hello, I have a program here that can calculate the area of trapezoids from a given function F(x...
[6 replies] Last: If'n you have a compiler capable of using C++20 there is the <format> ... (by George P)
by frek
A method to do lookup in dictionary with a M x N board
 
Hi all, The exercise says: Given a dictionary, a method to do lookup in dictionary and a M x N boa...
[4 replies] Last: Passing the vectors by reference rather than value improves efficiency... (by lastchance)
a template-argument cannot be a type that contains 'auto' in C++20
 
In C++20 we are supposed to be able to use concepts like this: //type requirement template<ty...
[6 replies] Last: C++20: template < std::ranges::forward_range RANGE > std::ranges::ran... (by JLBorges)
Possible to replace member function to a noop function?
 
I write c++ with c++11 and have a question as title. Ex. class Hi { public: Hi(){}; tes...
[3 replies] Last: alternately: class Hi { public: Hi(){}; void test() {cout << ... (by jonnin)
Constructing plotting routine for a polynomial?
 
Given this 4th order polynomial, x^4 - 3x^3 -15x^2 +10x +30, use lab 17 to construct a plotting rout...
[8 replies] Last: And the fact that it is written as a power (exponent) ... doesn't mea... (by seeplus)
Derived classes
 
hello,I am trying to use the derived method from a pointer to the base class without making the Base...
[3 replies] Last: Lets have two shapes. Are they identical? If they are both triangles a... (by keskiverto)
Struggling with C-string method again
 
Ok so I am using a class MyString, and I am having a hard time properly writing a readLine function ...
[13 replies] Last: The C++ standard library copied over the C library for the most part, ... (by George P)
my getter and setter function not working
 
Please learn to use code tags, they make reading and commenting on source code MUCH easier. H...
[4 replies] Last: Do NOT remove the text you already had! Edit the post to ADD code tag... (by George P)
Automatic Differentiation Library?
 
Hey people, I'm trying to get a library that does Automatic Differentiation. I've not successfully d...
[5 replies] Last: OK, so if you want a gradient based approach then you can get derivati... (by lastchance)
by Cplusc
Solving linear system of equations using AztecOO
 
After almost several days struggling with Trilinos eventually I built and Installed the library. Now...
[7 replies] Last: Yeah, #include guards are the usual approach to avoid including th... (by kigar64551)
Bubble sorting trouble
 
I just need to fix one thing but I am unsure what I need to do I know where to issue lies but am uns...
[3 replies] Last: As one file, consider: #include <iostream> #include <iomanip> #incl... (by seeplus)
Error: expected primary-expression before ‘)’ token
 
I'm getting this error when running this code #include<iostream> #include<string> #include<vect...
[6 replies] Last: You need to maintain a container of the entered data (eg a vector). Po... (by seeplus)
by ardsio
How to update data to members of a structure
 
I have a large structure defined that I need to regulary update the values to the members. Now I ha...
[19 replies] Last: kigar64551: The SimConnect_SetClientData function is used to write on... (by ardsio)
Pages: 12345... 7
  Archived months: [mar2022]

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