Beginners (Page 13)

(C++) Not printing to output correctly?
I set my values I want to print out on line 54 but it doesn't print out my values and also never ask...
[7 replies] Last: I can see that and I appreciate your help mate. (by TravCode)
by obeeey
Why program stops after reading into an array?
Hi, I'm just trying to figure out how to read into an array (word ) properly and there is something...
[2 replies] Last: It's a weirdness of entering an overly long word on the N-1th iteratio... (by salem c)
by Tyncho
Non-zero values
Hi. I am trying to solve an problem like this: */Enter non-zero values in the array*/ #includ...
[7 replies] Last: Hello Tyncho, The link I provided is a recent discussion on the subj... (by Handy Andy)
by Walkup
Deference Operator
I can't for the life of me figure out whats going on with the deference operator for mi in the if...
[3 replies] Last: Thank you so much! (by Walkup)
Errors when explicitly deleting move assignment operators
Today I came across this code: #include <string> #include <vector> #include <iostream> st...
[5 replies] Last: @TheToaster, despite the name "std::move", the function doesn't perfor... (by Niccolo)
Binary shift is "too big" but isn’t
I’m making a floating_point class and am trying to access the last bit in an unsigned long by ma...
[7 replies] Last: Note that numeric_limits<>::digits is the number of non-sign bits in a... (by dhayden)
Question about r-value reference with function call
I saw the sample code on Stack Overflow. (
[2 replies] Last: > every functions' return value is treated as r-value. Is it correct? ... (by JLBorges)
by Ch1156
Pointers vs references for class objects (1,2,3,4)
So in a class using virtual, I see some examples use pointers like so: Weapon *w = new Weapon...
[62 replies] Last: I was just wondering if that was the best way to do it, it seems like ... (by Ch1156)
help with search
Hi everybody, I want to print out the qualified items in a vector if a user decides to search for it...
[2 replies] Last: #include <vector> #include <algorithm> #include <iostream> using name... (by anup30)
string and file
Hi! I'm trying to read lines from a text file. The file is like: name1 surname1 number number_1 num...
[6 replies] Last: LearnCpp's tutorial page on std::stringstream : https://www.learncpp... (by Furry Guy)
by RicoJ
Making my own iterator: how to convert a non-const iterator to a const-iterator?
Hi all, I am trying to implement a custom container and I need to make an iterator for it. I want...
[1 reply] : > I want to squish const iterator and non-const iterator in one class... (by JLBorges)
Shuffle Algorithm for my Poker application
I am in doing a school-related project which requires that I incorporate various elements of what we...
[12 replies] Last: It sucks being a noob at c++. Some of us still are. Self-taught and... (by Furry Guy)
vector of unique_ptr
I tried to make a vector of unique_ptrs, but here I get a compiler error when I try to dereference t...
[3 replies] Last: Also a quick tip. When making a unique_ptr, you can also use the std::... (by KishoreG)
Tic Tac Toe AI
The program just crashes after a couple of go's and i can't figure out why # include <iostream> #...
[4 replies] Last: You have a lot of code that is nearly identical. That's always a good ... (by dhayden)
Debugging in Visual C++
I am having a hard time debugging in Visual C++. Most of the time, the element I want to watch is op...
[5 replies] Last: Debug code is often a hefty multiplier slower than release code so d... (by Repeater)
Rectangle Sum with array2D
I've been giving this code several tries but it keeps crashing. Input 2 integers n,m, and the next...
[5 replies] Last: Pardon me for piling on here, but I'm going to expand on @jonnin's and... (by Niccolo)
Program Is Outputting Data as an int not double?
I made a program that converts money from yen, kroner, and/or pounds to USD. However, for some reaso...
[5 replies] Last: Here are some examples of output: Input the balance of money you woul... (by PiggiesGoSqueal)
This has been asked before by others....
But it seems I can't apply the solutions given to them for some odd reason. My issue is the age o...
[19 replies] Last: "Problem Solved." Then please tick the box so the thread is green che... (by Furry Guy)
Digit Extraction
Can someone help with my digit extraction our Teacher ask us to do like this, WRITE A PRGORAM THAT ...
[11 replies] Last: Thank you Sir, @lastchance, i finally submitted to my teacher. (by philipmorries3)
Pages: 1... 1112131415
  Archived months: [jul2019]

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