Beginners - October 2021 (Page 3)

How to add simulator
 
solved.
[3 replies] Last: This is a problem of windows. min/max are defined as a macros. So dire... (by coder777)
>> operator not working for ifstream
 
So I have this function I'm working and I've been stuck on it for hours, in short I'm trying to impo...
[2 replies] Last: Consider this: template< typename V, typename W > void Digraph<V, W>::... (by coder777)
Out of range error on substr
 
Error: terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::s...
[3 replies] Last: Ganado -> Hey thanks for the tip, the ignore placement seems to have g... (by Volapiik)
Blackjack: Issues with repeating integers in array (1,2)
 
I've been making a blackjack program to refamiliarize myself with the C++ programming language; I ha...
[22 replies] Last: A std::deque might be better suited for a deck of cards than a std::ve... (by George P)
Sorting a List With Nodes
 
Hello All, I am working on a small program for classes in C++. For the program, we have to write ...
[5 replies] Last: bool node::operator > (const node& n) { return n < *this; } but eve... (by ne555)
changed address of variable in the heap segement
 
#include<bits/stdc++.h> using namespace std; int* A( ){ int* a = new int; *a = 3; co...
[1 reply] : why does the address of a changed? Because each time you call A() ne... (by coder777)
Program Eror!
 
I have this error in visual studio, and i dont know what does mean Link for picture for the error ht...
[1 reply] : This is your friend declaration: friend std::ostream & operator<<(std... (by Ganado)
Convert numbers into letters and multiply the number by itself
 
If I Input 8 5 12 12 15 23 15 18 12 4 It should Output helloworld 8:8-16-24-32-40-48-56-64 5...
[6 replies] Last: @kazeroth900, Your "secretCode" doesn't make much sense. Most codes a... (by lastchance)
by Jhokuu
Cleaning up output text in proper columns
 
I was wondering how to square up columns so my output looks cleaner instead of it being jumbled like...
[4 replies] Last: Simply, L14 you need setw() for name like you have for the other fiel... (by seeplus)
C++ Output 3 letter word forward/backward
 
Hello all. Back yet again with another brain puzzler. I'm having trouble with another playaround p...
[4 replies] Last: C++11 introduced the range-based for loop. C++20 allows the range-bas... (by George P)
by hasane
How do I check for correct GUID from .txt file?
 
I have a GUID list in .txt file like this {4120cb22-c194-41bf-a221-49b0952e349e} {83cc03cc-80d7-4...
[3 replies] Last: Contains would be welcome, that was a big miss. Ive been using strstr... (by jonnin)
How would I order the names alphabetically?
 
You're supposed to be able to enter the amount of classmates (in the first line) and then write thei...
[2 replies] Last: Perhaps: #include <iostream> #include <string> #include <algorithm>... (by seeplus)
Sorting total and average score of the students and their ranks in ascending order
 
Hello! The code below is horrible. I know that. But it's just my assignment and here is the help I ...
[5 replies] Last: Despite that and the fact that the code is C rather than C++ ... lets ... (by keskiverto)
Error when using file handling in C++ project
 
I just learned file handling and now developing a restaurant management system with 2 different cred...
[1 reply] : For deleteStaffByUsername: You open a file for reading called database... (by Ganado)
Recipe for target failed. Error
 
Aahhhhh! Tried compiling this class and the error "Recipe for target 'Calculator.hpp' failed." poppe...
[4 replies] Last: His account now has limited functionality...probable due to posting ju... (by The Grey Wolf)
Decimal Division function
 
Hi, I need some help with my Calculator class' function. I have it to add, subtract, multiply, and d...
[2 replies] Last: @lastchance Thanks for the fast response! Will try! (by OcoIncs)
Pyramid pattern based on NUMBER OF STARS
 
* ** *** **** ***** I have an idea how to do it based on numer of rows, but i dont know how t...
[12 replies] Last: [quote=dio123321]print this pyramid reverse? What is that supposed ... (by lastchance)
Alternatives for "using"
 
I was wondering if there are any alternatives for "using"? #include <iostream> #include <fstream...
[6 replies] Last: LOL (by againtry)
Is there any Alternate of <dos.h> ?
 
//to use 'getdate' & 'delay' we include #include <dos.h> As we know there is no dos.h header file ...
[4 replies] Last: uh, you have to include the required headers for stuff. If you want to... (by Duthomhas)
C-string not accepting new input within switch case?
 
Hi, so I've spent hours pouring over different forums and documentation and I cannot for the life of...
[2 replies] Last: Salem, thank you so much. I feel really dumb. I knew about that too. I... (by mresli99)
October 2021 Pages: 12345... 7
  Archived months: [sep2021] [nov2021]

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