Beginners (Page 2)

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 Furry Guy)
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)
Copying more than one variable continuously to clipboard
Hi! I'm new to both C++ and this website, and I haven't yet explored advanced C++; I've just learned...
[1 reply] : Get comfortable for a nice long read. (by salem c)
by Jhokuu
Extracting specific data without the rest in a .txt file
.txt file: Johnson 60 12.50 Aniston 65 13.25 Cooper 50 14.50 Gupta 70 14.75 Blair 55 10.50 Cla...
[2 replies] Last: Your second number is a double not an int. You don't have to ignore() ... (by againtry)
by Shizzy
Reading only numbers and not letters?
Hello beginner question, I had a similar problem before. I'm trying to get this program to not crash...
[5 replies] Last: Oops! I didn't read @OP's problem as thoroughly as I should. The input... (by againtry)
byte representation of program objects
Can someone help me with this topic " byte representation of program objects" using pointers in Cpp ...
[1 reply] : Leo2505 (1) Can someone help me with this topic " byte representation ... (by jonnin)
Why is it not printing the names
I am trying to put information from a file into arrays but I am not getting it right. The data is no...
[3 replies] Last: (by againtry)
Pages: 1234... 13
  Archived months: [aug2021]

Cannot post in this page. To post a new message, go to the first page.