Beginners - September 2021

by jabeh
Structs
 
What is the purpose or point of using Struct in coding?
[4 replies] Last: A struct is a data structure. They're used for storing multiple attri... (by agent max)
by jo8et
Passing constant pointers to functions
 
Hi all, I have two member function definitions below, I am having trouble as one accepts a non const...
[3 replies] Last: Thank you, it is now solved! There was a typo in the header file... (by jo8et)
As someone who never learned a coding language before how do you recommend learning C++? (1,2)
 
Is it possible to learn a low-level machine language like C++ as a first language? Been going at it...
[27 replies] Last: You've had some good advice in these posts, I'll try to avoid repeatin... (by Niccolo)
by jabeh
Classes and Objects
 
What is the purpose of using Classes and object in codes? as a beginner what do i have to do in orde...
[3 replies] Last: Keep coding - solve coding problems. Codingame.com (by zapshe)
'Class' was not declared in this scope
 
Hi, so i've got this error when i compile my program and i don't understand why ...In function ...
[6 replies] Last: Nevermind, i've searching for the dependency with other class but in f... (by travelskid)
Reading in one character at a time
 
Hi! We have to find out that in chemical formulas how can we read and the use of binary search fo...
[16 replies] Last: @ salem c None of the solutions presented here are usable by the OP f... (by Duthomhas)
Building A Online Compiler
 
Hey everyone, I’m a beginner programmer, but I have an idea for a long-term future project I want ...
[4 replies] Last: OP disguising spam in text again. Everyone of their posts pushes the s... (by salem c)
by jo8et
Serial Library class method
 
Hi all, I am using the Serialib serial library, but am having trouble understanding how to use th...
[4 replies] Last: glad you got it working. if that readchar is max number to read, it ... (by jonnin)
Ending a program with while loop
 
Hi I am struggling to make this program repeat until the user types -1. Does anyone know how I can d...
[2 replies] Last: #include <iostream> bool isPerfect(int number) { int sum {}; for... (by seeplus)
valgrind
 
What will valgrind --leak-check=yes complain about in this program? Anyone describe the steps to...
[4 replies] Last: > Anyone describe the steps to carryout the procedure to use valgrind ... (by JLBorges)
Autofilling a variable in C++
 
Hi! I want to learn c++ and want to use binary numbers for my project. From Decimal to binary tr...
[3 replies] Last: #include <iostream> #include <string> using namespace std; string bi... (by lastchance)
blocks 17.12 does not on C++
 
Hi!   From codeblocks.org, exactly 17.20 mingw.setup.exe I have installed code: blocks 17.20 and...
[4 replies] Last: The current version of Code::Blocks is 20.03, 17.12 is old and outdate... (by Furry Guy)
How are the __cplusplus directive defined in various compilers?
 
199711L (until C++11), 201103L (C++11), 201402L (C++14), 201703L (C++17), or 202002L (C++20) https...
[1 reply] : Note that for MSVS, you need to configure the compiler for this. See: ... (by seeplus)
C/C++ hackerrank question
 
Hi! I have hackerrank for sorting out problems but it’s instructing C stuff in c++ stuff, I have...
[2 replies] Last: heh "i am not getting the error" means he didn't understand the messag... (by jonnin)
button print string?
 
so i just learn new thing on youtube that if i press button once it can print 3 char. so i was think...
[1 reply] : So what is this button? It looks like you mean key (as in keyboard)? ... (by coder777)
Going back to loop
 
Hello everyone, I've managed to tackle my assignment and complete it with the exception of one requi...
[2 replies] Last: You could put the menu into a value returning function - when the cond... (by zapshe)
enter employee info using class
 
Write the code that declares a class called Employee. Provide the following functionality: a. Data...
[2 replies] Last: This is a typical skeleton class for getters/setters: #include <str... (by seeplus)
by PK Dey
How can I remove the following error?
 
How can I remove the following error? #include <iostream> using namespace std; int rever...
[4 replies] Last: Thanks To all of you (by PK Dey)
Simulations with 2D arrays
 
Hello! New biological triggering device are being tested by government organization. The genuine ...
[1 reply] : 1. Show what code you have tried. 2. Find a better translator. But I... (by lastchance)
Order of operations in C++ vs MATLAB
 
Hey! I am having an issue converting simple expressions from MATLAB to c++. I believe maybe my or...
[9 replies] Last: look for an off by 1 then. matlab indexes from 1, c++ from 0. Maybe ... (by jonnin)
September 2021 Pages: 123... 7
  Archived months: [aug2021] [oct2021]

This is an archived page. To post a new message, go to the current page.