General C++ Programming - September 2021 (Page 3)

Need help starting/doing this lab
 
I need help with this problem, its supposed to read from an input.txt file, do what it says in the r...
[7 replies] Last: I really don't know how to do any of those things It sounds to me l... (by dhayden)
The understanding of the code. C++
 
Can you explain me please this code? I understand it in general terms. I need a clear understanding....
[14 replies] Last: Can it be true? You are just using (the results for) the standard E... (by lastchance)
by Maln18
Help me with this C++ code
 
I have to do this. These are the instructions. Write a program that queries the user for an odd in...
[6 replies] Last: the only issue i have with that code is if i enter a magic square nu... (by seeplus)
Help me fix my code.
 
EDIT: This was Maln18 's unnecessary thread originally - he/she is not worth replying to. This ...
[2 replies] Last: [quote=lastchance]For goodness' sake stop cross-posting. Well, the th... (by George P)
C++ App error .dll not found
 
I am new to C++ programming and I am using Visual Studio 2019 I have a project that uses a dll xerc...
[6 replies] Last: strange. if you built it on 2 different computers, you can compare th... (by jonnin)
by gadi01
call derived member functions (1,2)
 
I define a function in base class as virtual and I redefine it in the derived class. When I call thi...
[38 replies] Last: This page has a fully worked cpp example. https://coin-or.github.io/I... (by TheIdeasMan)
by shader
Kth stack permutation
 
A stack permutation of number N is defined as the number of sequences which you can print by doing t...
[1 reply] : A guess: https://www.researchgate.net/publication/220432014_A_Note_on_... (by keskiverto)
by Denvor
Linked list with templates
 
can someone please help me with this program?Im so confused i dont even know where to start. My prog...
[3 replies] Last: You'll find things easier when you come to code the list if you have: ... (by seeplus)
by Qsh222
Find the first n prime numbers using the sieve of erathostenes
 
The program is supposed to display the first n prime numbers, where n is inputted by the user. I onl...
[2 replies] Last: Use the prime number theorem to generate an upper bound on the nth pri... (by JLBorges)
Why am I getting inf for my output?
 
.
[5 replies] Last: Perhaps: #include <iostream> #include <cmath> using namespace std; ... (by seeplus)
by Qsh222
GCD of n numbers
 
The program is supposed to display the GCD of n numbers. I managed to work out the solution, but in ...
[5 replies] Last: Nothing wrong with your solution. Points off for: Dinking with std::c... (by Duthomhas)
Word Count
 
Can someone help me derive a program or to understand how to create a program that counts words? Tha...
[17 replies] Last: You got a problem with the venerable "goes to" operator? (by Duthomhas)
by Armanc
How to find all possible placements in a stack with using recursive function
 
I am trying to code a program that finds a target number by using six other integers and four mathem...
[3 replies] Last: it is perfectly *safe* to add () to RPN with a dumb algorithm that put... (by jonnin)
Finding discount
 
#include <iostream> using namespace std; int main() { int quantity; int price; ...
[3 replies] Last: int is for integers 90 is an integer literal operations between in... (by ne555)
Anyone can help me fix my code?
 
The matrix is being allocated on the heap as it is defined as static. To allocate on the stack, don'...
[no replies]
Compatible C++ libraries Questions.
 
I am trying to construct a cross compatible C++ Libraries platform, and I was wondering if anyone ca...
[9 replies] Last: I am trying to assemble a native C++ library set where types immediat... (by helios)
by Cplusc
how to find common elements between different matrices
 
I have 3 matrices. I want to find the shared elements within these matrices with the number of repet...
[4 replies] Last: what is a point, in the above? matrix 1,2,3 all ? I think you need a... (by jonnin)
C++ Programming Code This
 
Hello can anyone help me figure out this C++ programs I don't understand how to do it can anyone pro...
[5 replies] Last: Something like this: #include <iostream> #include <string> #include... (by seeplus)
by volang
winsock getaddrinfo
 
Hello. Hope everything is alright! I have a question about winsock getaddrinfo(domain_addr, "43",...
[2 replies] Last: thanks man! freeaddrinfo() <--- (by volang)
I am getting an error for no reason
 
It is saying "Member declaration not found" in Word.cpp, "undefined reference to `WinMain@16'" in Wo...
[4 replies] Last: The Word::getWord() declared in Word.h is const, but the one defined i... (by helios)
September 2021 Pages: 123456
  Archived months: [aug2021] [oct2021]

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