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)
How can i approach this problem. (1,2,3)
write an algorithm to extract all nouns from random text. The biggest problem with this is there...
[47 replies] Last: Well, another rage quit. I did not expect that... On the original top... (by Duthomhas)
putting together iterator, std_max and lambda expression
Hello I'm trying to find the biggest area size (width * height) of a list of objects inside a vecto...
[2 replies] Last: Furthermore, the std::max compares two values (or values in initi... (by keskiverto)
Code::blocks 17.12 does not on C++
Hello, I installed code::blocks 17.20 from, exactly 17.20 mingw.setup.exe, and it wo...
[5 replies] Last: If it is by Malik, then it is bad anyway. /opinion If you have good a... (by Duthomhas)
How can I add iteration to my code?
I have a text file like this: {4 <1,-1,-1> <1,1,-1> <-1,1,-1> <-1,-1,-1>} {4 <1,3,-1> <1,1,-1> <1...
[1 reply] : 1. Don't complicate matters by reading from a file. 2. Don't complicat... (by salem c)
Random number generator
I am working on a code that generates 35 random numbers between 0 and 199. Here is what I have so fa...
[9 replies] Last: Returning to your original code, you seem to have a bug: it allows dup... (by dhayden)
Question on time complexity!
int a = 0; for (i = 0; i < N; i++) // Here the order is N { for (j = N; j > i; j--)// Her...
[5 replies] Last: I'm not following. The link you gave shows 4 possible choices for ques... (by Ganado)
by JLaw21
Delete an element in an array list
I am attempting to delete an element in an array version of a list. When I use the function, it dele...
[11 replies] Last: Use it (line 5), then change it by adding 1 (so that you move to the n... (by lastchance)
File isn’t changed.
I have a class called 'SaveStream' that takes data and saves it with a name next to it as a label, b...
[10 replies] Last: Hello highwayman, I started testing your revised program today. Ended... (by Handy Andy)
Hello, Could someone help me.
In the Programming principles and practice using C++ book Chapter 7 recovering from errors. I am v...
[1 reply] : An exception means “something went wrong that I can’t fix”. Im... (by Duthomhas)
Creating a Min and Max, question
Hi, my program is supposed to get a number of students with entered gpa's and then after that find t...
[4 replies] Last: Float, I just figured everything out, thank you everyone (by Jason112)
Why does 3%100 work.
Hello,i do not need help with any code but i came across a problem which contained something along t...
[1 reply] : a % b is simply the remainder of the integer division a / b. The remai... (by helios)
by neguse
Why does new int[x] disappear after leaving func scope?
I want to check if an int pointer parameter is nullptr and if so, I want to create an int array, fil...
[14 replies] Last: Thank you everyone for all your help. It has been a great help, I have... (by neguse)
short sample only
hello everyone .. give me example of java using switch please... and Explain why ... Netbeans .. how...
[4 replies] Last: Sorry .. i think C++ and Java They are same.. but they are not they sa... (by Lastprince00)
by Hay9
Instance object of a class
Hey all, I am on a early beginner level. Last week I did my first exercise to create a password val...
[2 replies] Last: thanks (by Hay9)
by colt
Initializer list with inheritance
Hello. I wish to create a constructor that simultaneously uses a initialization list and calls the c...
[2 replies] Last: Try C++17 aggregate initialization #include <cassert> struct Vec3f ... (by Thomas Huxhorn)
hello everyone in community
Nice to meet everybody
[1 reply] : Hello. You should put stuff like this in the Lounge. You can move... (by Duthomhas)
variable scope
I'm aware of the "avoid global variables" rule (and how you can still use them in specific cases and...
[3 replies] Last: So my first question is: on the second example, is variable a still a... (by dhayden)
std::unique() to compare two vectors?
Is it possible to have std::unique() compare two separate vectors? For example: - Vec #1 = {1, 2...
[17 replies] Last: Well you asked it to output the number of duplicates ... so it did! Th... (by lastchance)
Pages: 123... 15
  Archived months: [jul2019]