Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! 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)
Variable Sized Arrays - hackerrank question
 
I am doing questions on hackerrank, and got to one i couldnt figure out so i had to look at the answ...
[3 replies] Last: yes. (by seeplus)
Testing atomic lock
 
Hello everyone, I tried to implement a mcs lock. Now I would like to test if it works and how it ...
[4 replies] Last: Ok, thank you for the explanation, I will try to keep it simple. (by qwertz88)
How to create a program to output a certain length of word
 
I am working on a program where it is supposed to output a certain length of a word whether it is mi...
[11 replies] Last: The goal is to get the program to output a word that is either min le... (by seeplus)
Calculate Total Price and Directly Insert into Database
 
Hi, I want to calculate total price but the variable is string. Reason why I use string is I need t...
[1 reply] : Well you store it as an int or a float, do your calculation using regu... (by salem c)
Question About C++ Stoi Function
 
Hi everyone, I was testing out the stoi built-in function in C++. However, the code gives me an e...
[6 replies] Last: You might have a recent code blocks / GCC installed, but you still hav... (by salem c)
RNG Function
 
It's been quite a while since I last programmed but trying to get back into it so I'm sure I'm missi...
[4 replies] Last: Thank you both - My world has been stuck in Excel/VB for the past few ... (by edge6768)
Release vs Debug
 
Hello everyone, I have more general question. I am runnig my code in Debug and Release version in ...
[2 replies] Last: default 2019 release on a modern machine is very, very fast. Its your... (by jonnin)
Movement script
 
Does anymore know how to write up a movement script for a box2d C++ code. I literally have no idea h...
[2 replies] Last: No this is for something else. I'm trying to make a 2d platformer game... (by Raees224)
insert a template class issue
 
hello developers, I have a problem. I'have a library about RedBackTree.h. It is a template class and...
[5 replies] Last: you saved my life thank you (by gkrm123)
Learning parameters and classes. Guide me to do this question.
 
For this question: Write a class with three integer attributes specified as public. Using a paramete...
[7 replies] Last: Initialization and assigment of basic types, like int , is not much d... (by keskiverto)
Cannot increment with greater than condition
 
I have two different random values, and each time the loop iterates a value will be greater than ano...
[3 replies] Last: Whether a variable is defined inside or outside of a loop depends upon... (by seeplus)
by levo
Help
 
Hello people i need help for an exercise. Im from greece so sorry if the translation is bad. A tab...
[10 replies] Last: When I did my school 'A' levels (at 18, Computer Science, double maths... (by seeplus)
Line2D Undefined Reference
 
I am writing a program that sorts data. Point2D and Point3D has no problem reading data and storing ...
[1 reply] : Where do you define the Point2D::Point2D() constructor? You have th... (by Ganado)
Error 0133
 
I keep getting error 0133 that says "expected a member name" for this piece of code and I dont know ...
[2 replies] Last: so my code as of now debugs the pong game but the paddles don't move a... (by Raees224)
. (1,2)
 
in this code, I've made the code to accept only two numbers to check whether the elements in the ar...
[20 replies] Last: Depends how long you want to spend searching for 1000001 elements of s... (by lastchance)
I NEED HELP!
 
Write your question here. Hello, im a student and im going to college this year i started c++ at ...
[4 replies] Last: you don't have to, to code. That is why we have references and tools... (by jonnin)
PLEASE HELP
 
Consider the following implementation of the node and linked-list: template <class type> class ...
[2 replies] Last: For the provided implementation, there are some issues. A copy constru... (by seeplus)
List Initializer in max - STL - C++
 
Hello, How can I fix it? Thanks #include<iostream> #include<algorithm> using namespace s...
[1 reply] : You want max_element. https://www.cplusplus.com/reference/algorithm/ma... (by salem c)
Pages: 123... 15
  Archived months: [mar2021]