
please wait
by anonymous156
win counter and list every winner in each game
|
I'm creating a program that has four games. Each game will have two team. In each game, there would be 3 rounds. Should there be a tie, there would be round 4 w... |
May 13, 2022 at 11:29am
[9 replies] Last: As a first refactor, consider something like this which has extra roun... (by seeplus)
|
by Cplusc
mpirun (1,2)
|
I am trying to run a code with MPI. I already have Microsoft SDKs and other mpi compiler along MINGW64 installed. I am trying to run the code using mpiexec -np... |
May 11, 2022 at 9:03pm
[23 replies] Last: Yes, it needs to be set when building the package. That's why I said w... (by Cplusc)
|
by guest89
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 set end points at which my motor should turn directions. int ... |
May 11, 2022 at 9:28am
[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 but nothing is printing out. I've tried playing with how I ... |
May 8, 2022 at 7:16pm
[1 reply] : duplicate: http://www.cplusplus.com/forum/beginner/283477/ (by deleted account xyzzy)
|
by Cambalinho
how can pointer a class?
|
heres my form class: /////////For EVENTS////////////// #if defined __GNUC__ #define EVENT [[gnu::weak]] #elif defined __clang__ #define EVENT [[llvm::w... |
May 6, 2022 at 7:52pm
[8 replies] Last: after several time and work and tests, i get it to work a simple test:... (by Cambalinho)
|
by tiogrand
Resource leak
|
Hello, I just create a helper library to prevent resource leak and posted at https://github.com/TarcioV/ResourceGuard check out and tell me what you think. |
May 6, 2022 at 6:13pm
[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-EXAMPLE.zip and also download the prebuilt libraries in relea... |
May 6, 2022 at 11:10am
[24 replies] Last: I got it worked. I again downloaded the clapack using curl -O https://... (by Cplusc)
|
by codernew
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 in Hex it is here in this code // Configure LEDSIG1 ... |
May 5, 2022 at 5:01pm
[4 replies] Last: @kigar64551 thank you very much (by codernew)
|
by Blueshark1
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)=2ln(3x) . I have a loop here to ask for a different amount... |
May 5, 2022 at 2:14pm
[6 replies] Last: If'n you have a compiler capable of using C++20 there is the <format> ... (by deleted account xyzzy)
|
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 board where every cell has one character. Find all possible wor... |
May 4, 2022 at 8:56pm
[4 replies] Last: Passing the vectors by reference rather than value improves efficiency... (by lastchance)
|
by JUANDENT
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<typename T> concept containerTypes = requires (T t) { type... |
May 3, 2022 at 5:43pm
[6 replies] Last: C++20: template < std::ranges::forward_range RANGE > std::ranges::ran... (by JLBorges)
|
by lampahome
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(){}; test() {cout << "test" << endl;}; } void noop(){ ; // noo... |
May 3, 2022 at 12:39pm
[3 replies] Last: alternately: class Hi { public: Hi(){}; void test() {cout << ... (by jonnin)
|
by Blueshark1
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 routine from x = -3.5 to x = +5.5. increment 0.1, by replacing t... |
May 3, 2022 at 11:46am
[8 replies] Last: And the fact that it is written as a power (exponent) ... doesn't mea... (by seeplus)
|
by NoobMaster96
Derived classes
|
hello,I am trying to use the derived method from a pointer to the base class without making the Base class knowing any of Derived classes. (Tried to simplify th... |
May 3, 2022 at 11:45am
[3 replies] Last: Lets have two shapes. Are they identical? If they are both triangles a... (by keskiverto)
|
by jetm0t0
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 that is supposed to read from a file and display it without ... |
May 2, 2022 at 11:30pm
[13 replies] Last: The C++ standard library copied over the C library for the most part, ... (by deleted account xyzzy)
|
my getter and setter function not working |
Please learn to use code tags, they make reading and commenting on source code MUCH easier. How to use code tags: http://www.cplusplus.com/articles/jEywv... |
May 2, 2022 at 8:48pm
[4 replies] Last: Do NOT remove the text you already had! Edit the post to ADD code tag... (by deleted account xyzzy)
|
by nini0la
Automatic Differentiation Library?
|
Hey people, I'm trying to get a library that does Automatic Differentiation. I've not successfully done this because of a few different command line errors from... |
May 2, 2022 at 7:09pm
[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 I'm trying to run a simple test to get more into Trilinos b... |
May 2, 2022 at 7:00pm
[7 replies] Last: Yeah, #include guards are the usual approach to avoid including th... (by kigar64551)
|
by Pickapv
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 unsure how to fix it I know I must change the data type in the ... |
May 2, 2022 at 8:55am
[3 replies] Last: As one file, consider: #include <iostream> #include <iomanip> #incl... (by seeplus)
|
by izzy531
Error: expected primary-expression before ‘)’ token
|
I'm getting this error when running this code #include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; struct s... |
May 1, 2022 at 11:28am
[6 replies] Last: You need to maintain a container of the entered data (eg a vector). Po... (by seeplus)
|