General C++ Programming - September 2020 (Page 2)

Using Curl in C++ to get http response string after sending http string to server.
 
In a C ++ program I need to send an http message using Curl to another machine where is running a RE...
[1 reply] : What is your REST server saying while all this is going on? Is it gett... (by salem c)
template function that takes Vector T and Vector U and returns the sum of v1[i] * v2[i]
 
This is an exercise I am working on alone. The idea is too get familiar with auto, decltype, and typ...
[2 replies] Last: Okay I see some parts that need fixing. I must have misunderstood how ... (by closed account 26q2b7Xj)
Logical Operators + Ifs Small Problems (1,2)
 
Write your question here. PROBLEM #4 In college, each class typically counts as somewhere betwe...
[20 replies] Last: So I have officially finalized everything. #include <iostream> #inclu... (by closed account oG8qGNh0)
Can a const function accept member parameters ad reference?
 
Can I do this: class foo { public: void bar() { baz(num, 6); } private: void baz(int...
[2 replies] Last: Oh okay, so is it recommended? (by closed account Ey80oG1T)
by Zphip
void function error
 
So im trying to create a c++ program that executes the sieve of eratosthenes. I keep getting an erro...
[1 reply] : print_primes(myInt); On this line, you are passing in 1 argument, myI... (by Ganado)
Jacobi Method
 
#include<iostream> #include<conio.h> using namespace std; int main(void) { float a , b , m , n...
[15 replies] Last: I solved it. Thank you so much for you help @lastchance (by thanhquan1704)
assigning ojne string object to another problem
 
hi to all, I've centos 7 in VM, and trying to assign one array of strings to another. i did like thi...
[2 replies] Last: If you actually don't want a vector (which is certainly preferred) you... (by coder777)
Removing elements from vectors without erasing
 
I'm writing an inventory program that catalogs items based on quantity, price, ID number, etc. I nee...
[4 replies] Last: Does the order of the stored items have to remain the same? If they do... (by seeplus)
How to search a linked list for certain data
 
For this program I am not allowed to use vectors or std:: I have a function called findStudent tha...
[4 replies] Last: @dhayden bool LinkedList<TYPE>::retrieve(TYPE &dataIn) const note th... (by ne555)
nested private struct visible from outside??
 
Hi, I have a nested struct in the private sector of another struct yet is visible from the outsid...
[1 reply] : No, I am sorry ... Factory is a static instance of PointFactory define... (by JUANDENT)
by rnima
Display of a singlyLinked list using Queue with rear and front as pointers
 
So i am having trouble understanding how to display my queue, and if my implementation of queue is c...
[13 replies] Last: Please post node.h. Anywhere that rear can change, there's a good cha... (by dhayden)
Having problem understaning a concept in C++ 20
 
I have this concept: template <class T, class U> using CommonType = std::common_type_t<T, U>; ...
[7 replies] Last: thanks! (by JUANDENT)
Problem with finding exact int in array.
 
I'm trying to do a basic login system. The problem is, the first int in the array works just fine, b...
[7 replies] Last: thank you so much it helped in lot in my coding! https://teletype.in/@... (by RachelCulbertson)
How do I specify my OpenGL context to draw to an image array instead of a window
 
What I would like to know is how I would implement a camera instead of a window for my graphics draw...
[1 reply] : Your question doesn't really make sense to me if interpreted literally... (by Ganado)
Strange Output
 
Hey all me again. ' I' setting up a program for three separate functions and I've got them all d...
[8 replies] Last: Thanks for the help so far. I definitely am only three days into funct... (by JPetrucci84)
error for program creation for lower value and higher value in c ++
 
I'm trying to create a program that uses 4 ifs to make the operation with the highest value and the ...
[1 reply] : duplicate (by jonnin)
Newbie question
 
Hey all, new member. I'm working on a program to create an average of a set of arrays as well a...
[16 replies] Last: [quote=JPetrucci84]That's all it takes, though, amirite? No. (by lastchance)
Lambda returning decltype(auto) vrs auto
 
Hi, What is the difference between returning decltype(auto), auto and not specifyiung return type...
[6 replies] Last: thanks!! (by JUANDENT)
IF Else Statement
 
#include <iostream> using namespace std; int main() { int a; cout<<"Enter a:"; cin>>a...
[3 replies] Last: #include <iostream> using namespace std; int main() { int a; c... (by lastchance)
September 2020 Pages: 1234
  Archived months: [aug2020] [oct2020]

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