Beginners (Page 2)

Can you create an instance of a class using a variable?
 
Duplicate of http://www.cplusplus.com/forum/general/283588/
[no replies]
Creating Class Objects and Pushing Back to a Vector
 
Here I wrote some wrong code to tell my problem. I want to create a class object and at the same tim...
[4 replies] Last: For JLBorges, thanks for your kind suggestions. I still don't know abo... (by bydrachen)
Is it normal that smart pointers can't solve a problem?
 
Hi! I was wondering how normal it is that a problem can't be solved with smart pointers? On my curr...
[4 replies] Last: A better question might be: "Is it normal that pointers can't solve a ... (by George P)
Character/ASCII - Question
 
I am fairly new to C++ and still learning. I understand the first code is casting a char into an...
[4 replies] Last: as a side note, char is already a 1 byte int. cout is 'smart' and pr... (by jonnin)
A beginner's class and assignment. May a little bit help?
 
Hi! Currently, I'm learning C++ classes and object oriented programming. It's hard for me to learn b...
[3 replies] Last: Thanks for your kind suggestions jonnin and seeplus. I tried to apply ... (by bydrachen)
Writing a function
 
Write a function, computePrice that receives two parameters: the first one is a character variable i...
[2 replies] Last: thanks , So I was kinda on the right track at the beginning (by blackpanther35)
NumDays Class
 
Essentially I was creating a class called NumDays where I convert the number of hours into a day...
[4 replies] Last: The pre-inc/dec operators are still not as expected by convention. pre... (by seeplus)
issue with a loop and maybe sentinel?
 
My instructions were to make the program run until a sentinel was entered, in this case my sentinel ...
[11 replies] Last: It's easier if you make input as a function: #include <iostream> i... (by seeplus)
by kingsy
Newbie - Tips needed
 
Hi, I am new here. Just started learning C++ out of interest. All helpful tips to succeed in this...
[4 replies] Last: Thank you seeplus. That was really insightfuil. (by kingsy)
Find the right root
 
Hello everyone, may I ask that given size, nodes and edges of a tree. How can I find the correct nod...
[14 replies] Last: Greetings, thank you for your help, solved now. (by satsat111)
Segmentation fault in code
 
Good morning. I'm new to programming and need some help. I'm getting segmentation fault in the if st...
[14 replies] Last: keskiverto thank you for your help, but the code is now fixed. I corre... (by plastic)
C++ Oscillator not confirming finding sound source or emitting wave
 
I'm trying to follow along in a tutorial of how to code to an oscillator on youtube. Idk if I can li...
[3 replies] Last: A meta-search link might be helpful to find easier to use ideas. http... (by George P)
Outputting each instance value.
 
Hello I have a problem outputting each value for the getIndvCost() function and I wanted to see if...
[6 replies] Last: There is more than two valid syntaxes, are there? (* ptr ). addPrice... (by keskiverto)
Calculate Average
 
Complete the CalcAverage() function that has an integer vector parameter and returns the average val...
[9 replies] Last: I think it depends how many numbers you have and how big those can get... (by kigar64551)
Weighted graph
 
Hello everyone, I got problem putting the weights of each child's and getting the max weighted child...
[4 replies] Last: Hello, actually I discussed with my friend and a friend of mine gave m... (by satsat111)
Displaying data from file
 
So i have a dat. file that holds 500+ user data information. I want to be able to sort the data into...
[12 replies] Last: And, in that vein, here is a solution looking for a problem using tupl... (by againtry)
How do I loop this?
 
I have to use a function getData aswell as displayOutput and make a for loop so so that it can loop ...
[9 replies] Last: Notice the detail: if (volume < 100) { std::cout << "Size: small\n... (by keskiverto)
list<T> within a template ?
 
#include <iostream> #include <list> using namespace std; template <typename T> void Display...
[6 replies] Last: > I know what the rest does, but still trying to figure out what.... >... (by JLBorges)
Find Lowest and Deduct
 
Write a program that calculates the average of a group of test scores, where the lowest score in the...
[3 replies] Last: I have corrected it , it works now! (by Anonomys)
by jNc
OpenCV related, get item from vector of cv:Point
 
Write your question here. string path = "man.png"; Mat img = imread(path); Mat matrix,...
[3 replies] Last: solved, thank you (by jNc)
Pages: 1234... 12
  Archived months: [mar2022]

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