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)
Constructing binary tree
 
Hello everyone, I need to construct a binary tree with the 0 and 1 values based on a condition star...
[10 replies] Last: Actually I would like to ask one more question to @seeplus and I would... (by learner999)
How do I properly return an object and set it to a new object?
 
Hey everyone, I'm trying to make a simple lexer that splits up a given string into tokens. As you ca...
[4 replies] Last: @Peter87 Thanks once again for the answer, I really appreciate it. I... (by gabriel11)
Check if an object has a member
 
Hello, I am trying to check if a given object has a member. For instance: #include <iostr...
[6 replies] Last: [quote=rudiHammad]In python it would as simple as writing hasAttr(c, "... (by Peter87)
While loop combined with input fail state loop
 
I am trying to run a while loop that has a range between 0 and 6 but if you input a character the wh...
[5 replies] Last: #include <iostream> #include <concepts> #include <string> template <... (by JLBorges)
by Mr Z
C++ Review Questions (1,2,3,...,6,7,8,9)
 
Restarting my review question list with hopefully shorter & simpler questions that I had when readin...
[177 replies] Last: CoreGuidelines: T.141: Use an unnamed lambda if you need a simple fu... (by JLBorges)
Decoding character positions into a message
 
Hi! I am trying to decode a text file that holds a pair of integers that represent [lineIndex, ch...
[3 replies] Last: Without file2 data checking: #include <fstream> #include <vector> #... (by seeplus)
Coding a Book Cipher C++
 
Hi, I am trying to code for a "Book Cipher". I need to write code that encodes and decodes. For enc...
[10 replies] Last: @d3sousa92, The following lines take the pairs of integers (represent... (by lastchance)
Book Cipher C++
 
Hi, I have read two previous posts on this forum about coding a Book Cipher in C++. I am very very n...
[13 replies] Last: Yes, thank you have been so much help! You are the best!!! (by d3sousa92)
C++ function array
 
C++, how do I add function where it can find the mean/med of an array? Please check my code, it giv...
[3 replies] Last: You don't say what you are being asked to do. However, the class name ... (by seeplus)
Dynamic allocation and functions
 
Consider the sippet below: char *func(void) { char *str = new char ; str = 'a'; str ...
[16 replies] Last: Thank you all for contributing to this topic, I learn so much from you... (by ninja01)
New to learn Cpp
 
Hello everyone i am in the First Year of my engineering and new to learn Cpp Programming language, c...
[8 replies] Last: My first book was a Sam's Teach Yourself & I love that book. The previ... (by Mr Z)
The worst case of quicksort
 
I have searched online about when will the worst case of quicksort happen, but there are many result...
[6 replies] Last: Thanks everyone for the detailed explanation ! (by IHaveSmallBrain)
I don't know why this isn't working?
 
Write your question here. #include <iostream> #include <string> using namespace std; //...
[6 replies] Last: if (op == "/") return numberTwo ? numberOne / numberTwo : !(std::c... (by seeplus)
I don't understand recursion in binary search tree
 
I have program that print the nodes of a BST in inOrder() traversal. void inOrder(Node* root) { ...
[6 replies] Last: Thanks everyone ! (by IHaveSmallBrain)
Program terminating after std::out_of_range while trying to find EOF
 
Howdy yall, I am trying to count the number of rows in a .csv file however I have repeatedly run in...
[8 replies] Last: However, I think the logic is not right for reading the csv file. I th... (by seeplus)
Binary Combination of a given N
 
Hello everyone, I need a small help. I need to store binary combination of a given a positive inte...
[10 replies] Last: using u32 = std::uint32_t; u32 constexpr avail_mask = 0b0001111; // ... (by mbozzi)
C++ class declaration
 
I often gets confused on this as I am reading some of the libraries that I am using in my code and h...
[8 replies] Last: x = y; x is on the left, in english, its the Left Hand Side (lhs) y is... (by jonnin)
by Tima11
I get many errors when including stb_image.h
 
Hello, I am working with stb library. This is my texture.cpp file: #define STB_IMAGE_IMPLEMENTATIO...
[2 replies] Last: Oh, it worked. Thanks! (by Tima11)
Pages: 123... 6
  Archived months: [jun2022]