Beginners - December 2021 (Page 4)

Recursion
 
l is lower-bound. r is upper bound for the array part to search. This is binary search by recursion for a sorted array.
[4 replies] Last: :) :) :) (by seeplus)
Differents member functions and how to implement them in C++
 
Good day admin I need better explanations on how to implements the below c++ member functions. int get() {return x;} int& get() {return ...
[3 replies] Last: If a member function doesn't change a member variable and doesn't retu... (by seeplus)
Dynamic Queue - dequeue first element
 
Hello together! I'm currently writing a code to manipulate linked lists. For that I created the struct Node with a value of type const int and a pointer to t...
[9 replies] Last: Ahhh i see, i forgot to reassign 'last'. Oh wow thanks a lot, now it i... (by Mae4ashy)
array
 
The program was supposed to copy the user's input. However, the EAPP or the input where the user types numbers, doesn't show on the output. Only bunch of number...
[1 reply] : L6, 7 - do you mean to have name and nationality as only 1 char? L33.... (by seeplus)
getline wont work and being ignored
 
I tried to make a restriction input which restricts letters and spaces only on setx() and numbers between 100 and 200 only on sety() . While I need to use g...
[5 replies] Last: In the words of a white rapper: "NEXT TIME? THERE WILL BE NO NEXT TIM... (by zapshe)
I need an advice!
 
Write your question here. The problem is as follows. I need to compare the template with the flattened shapes on the template. I have the coordinates of the tem...
[6 replies] Last: OK, thanks for the advice. Agree with you on WinForms. (by chebyrek)
Decimal to Binary
 
What is your question? Avoid the use of <bits/stdc++.h>. It is not a standard headers. Use the standard headers instead. PLEASE ALWAYS USE CODE TAGS (the <>...
[1 reply] : What about: void decimalToBinary(int n) { static const int MSB_MA... (by kigar64551)
How can I "export" a variable declared within an if out of the if scope?
 
Hello. I'm trying to code a program that would prompt the user for whether it should assume a default resolution for the window or if it should accept width and...
[3 replies] Last: You can put the code into a function which returns say a std::pair. Yo... (by seeplus)
by Paul5
Read data from text file into linked list of type user defined and then perform specific operations on it (1,2)
 
Create a C++ based grocery application in which list of items along with their unique item ID, name, description and price per item will be displayed on screen ...
[28 replies] Last: Make it a class if you want. I was only giving you pointers for this. (by seeplus)
Structs vs Classes - What's the purpose?
 
If structs and classes are effectively identical, except for the default public/private declarations, what's the purpose of having both? Why muddy the water? ...
[16 replies] Last: I linked the core guidelines, for such things as invariants. here is ... (by TheIdeasMan)
Way to move punctuation back to end of word (pig Latin)
 
Hello, Pig Latin program here --- I am really struggling to come up with a way to move punctuation back to where it belongs .... (Ello!hay needs to be be -...
[13 replies] Last: Just a comment to assist with future programs. Before starting to code... (by seeplus)
char[] vs string (1,2)
 
In various places and code snippets, I see some people use strings, and some people use char arrays. I get the sense that the string object was created for new...
[25 replies] Last: I love sprintf. I love snprintf() even better! The snprintf funct... (by seeplus)
by abuh
please help me
 
i want function to inorder traversal code (non recurcive) for this code #include<iostream> using namespace std; struct node { int data; node* ...
[11 replies] Last: Much of the so called C++ code taught (and still available via the Int... (by seeplus)
How do I move a decimal?
 
Hey guys Am trying to move a decimal towards the left side but to be am finding it so difficult. I know am supposed to do a multiplication or even a division b...
[8 replies] Last: You can use basic numeric operations to change the decimal values of y... (by Suffben)
Been Having a hard time with arrays
 
Write your question here. Hi im coding graphs and it keeps on saying its not constant Pu#pragma once #include <list> #include <iostream> #include <ve...
[15 replies] Last: https://www.geeksforgeeks.org/arrays-in-c-cpp/ : Please check the foll... (by Suffben)
Chapter 07 Rock-Paper-Scissors(-Lizard-Spock)
 
I have a program and I know there's probably a lot of mistakes so it may not be an easy fix but it's the thought that couts... Format: Your task is to modify...
[11 replies] Last: https://github.com/PragmaticWays/cplusplus1/blob/master/rock-paper-sci... (by Suffben)
by PonPon
Just started looking into C++
 
I want to make a simple game in C++ and maybe later use OpenGL for the graphics Are there any tutorials for C++ beginners?
[5 replies] Last: https://www.tutorialspoint.com/cplusplus/index.htm this the place you ... (by Suffben)
compile a program
 
Hi! I need to compile a GitHub program but I don't know how to program. Could someone generate the .exe for me to use this program please? Thank you very m...
[11 replies] Last: https://stackoverflow.com/questions/19287273/c-how-to-create-an-execut... (by Suffben)
[MFC] How to read txt files words by words?
 
I am trying to read only txt file word by word. I succeed reading txt file and add whole contexts(txt file contexts) to listbox(m_list2). I want to use fscanf...
[2 replies] Last: https://www.geeksforgeeks.org/cpp-program-read-file-word-word/. I hope... (by Suffben)
Program terminates with no errors and no output
 
I am new to C++ (great fun so far) I am trying to get my code so that it will take a password from a user, validate it to the conditions for invalid, weak, medi...
[9 replies] Last: You can use an advanced IDE like Android studio to check which steps a... (by Suffben)
December 2021 Pages: 1234567
  Archived months: [nov2021] [jan2022]

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