by admin
Welcome -- read before posting!
Welcome to the beginner's forum in! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
by Pen72
Hi everyone, This problem is very tough for me, would be glad if there's any advice to solve it prop...
[18 replies] Last: @ElusiveTau, I presume it was one of the more advanced testing sites l... (by lastchance)
by Geckoo
Play a wav data Hello community. I hope that all is good for you. ...
[9 replies] Last: That link to libsndfile is a bit outdated, here's a link with newer li... (by George P)
Pushing Back Class Objects to a Vector
Here, in the code. While I'm pushing back that obj2 to vector, is it creating another class object? ...
[9 replies] Last: > With std::unique_ptr , there can be only one! Ensuring that there ... (by JLBorges)
Call to Overloaded Function is Ambiguous?
Specifically on line 9. //John 3 #include "MathVector.h" #include <iostream> int main() { ...
[2 replies] Last: The code you posted seems to give: In function 'int main()': 132:27:... (by keskiverto)
How to select number format when writing to file
I'm modifying someone else's longer code for work, and I'm very new to C++. I have this section wor...
[8 replies] Last: I can print it to the terminal screen this way: printf("UO_Slope %e\... (by thmm)
Smaller c++ questions
I am going to be reviewing my C++ from scratch and will have smaller and sillier questions. Instead ...
[8 replies] Last: This article may be of interest: (by seeplus)
what does this small line of code mean?
I don't think you can make a string stream == to something, so I'm wondering what function, this lin...
[2 replies] Last: The "long" from of the very same code would be: std::stringstream tem... (by JLBorges)
Coin Flip Script
Hello I'm new to c++. I was wondering if someone here could do me a favor potentially. I'm somewha...
[14 replies] Last: If you throw a coin 10 million times the probability of getting exact... (by lastchance)
by jNc
get columns quantity for each row of array
Greetings! I have some data included in array with 100 rows and 100 columns. i need to roll thr...
[16 replies] Last: You could just have a regular 2D array with a maximal number of availa... (by Duthomhas)
Can you create an instance of a class using a variable?
Duplicate of
[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)
Pages: 123... 11
  Archived months: [mar2022]