Beginners (Page 17)

by newGrl
remove duplicates and shift to left
Hello, I'm working on a program for school and I'm a bit stuck. I read through a bunch of similar p...
[3 replies] Last: One could cheat^H^H^H use the "easy way" and implement the remove with... (by keskiverto)
by ema897
putback line
is there a method to put back line after a getline(file, line), like putback(char)? I mean, I wan...
[5 replies] Last: > I still don't think you need to read any line from the file twice. ... (by JLBorges)
validating different input types
Currently writing a switch menu system and I'm looking into validating each input that the user ente...
[3 replies] Last: infatuating (by againtry)
How to count a new line
I am writing a program for a class in which I need to scan a text document for a word, insert the wo...
[2 replies] Last: I am writing a program for a class in which I need to scan a text doc... (by Enoizat)
cstrings and how to use them question
Hello all. I'm working on a project for a beginner c++ class. I'm tasked with taking a text file, fi...
[5 replies] Last: How do I extract just one word from a cstring array?? You don't need... (by jonnin)
get pixel color values from image.png
1. how can i link to an image that's on desktop? write a path to it or include it into my project s...
[4 replies] Last: thanks, i know really basics of c++ and made some game prototypes with... (by darlock)
std::move for pointer?
I came across some strange code while reading a textbook (C++ Templates: The Complete Guide 2e) toda...
[5 replies] Last: So the initializer list constructor would make a copy anyway? Then w... (by mbozzi)
by ema897
segmention fault with pointers (1,2)
I received error for bad practice with pointers: that's my code class Component { public: ...
[26 replies] Last: Clones -> (by salem c)
by nonso
I have again the problem. Please, help me. Component.h #include <stdlib.h> #include <vector>...
[11 replies] Last: Like I said, fix all these things before trying to run the code. $ g... (by salem c)
Reverse Diagnal of matrices
Write a C++ program that inputs a square matrix and reverse the contents of its diagonal values. E...
[2 replies] Last: All good programs start with a plan, maybe circle the elements, maybe ... (by againtry)
function call trouble
I'm prepping for class. Brand new to this. Trying to do a basic fucntion decleration, function cal...
[6 replies] Last: Well done for finding it through your own efforts and not just copying... (by againtry)
Wondering what kind of data structure to use for a project (1,2)
Hello, I am getting back into programming after many years off the grid. I am a cook and I want t...
[25 replies] Last: I think I should make more typos Perhaps not. The siren was for Coo... (by againtry)
by ema897
minimum and maximum path
Hi! I have an oriented graph made with class myClass{ public: myClass* left(){return a;} ...
[2 replies] Last: Sorry, but I don't understand how to adapt the code to mine (by ema897)
input problem
I want to take iser input of two numbers sepperated by a "/"
[2 replies] Last: yabi, DO NOT delete your posts. It is solved for you, but not for any... (by Furry Guy)
Repeating methods
Guys i have question how i can start methods from beginning once again when 1 variable gets value of...
[1 reply] : Use a loop . You need... (by Ganado)
Confusion about static
Hi, I'm gonna keep it short and straightforward because I'm sure I'm missing something really obvio...
[6 replies] Last: Yea I get it now, all I needed was some sleep haha, thanks for the ans... (by lekfanda)
by abs361
Type Conversion issue
Hello. I am trying to write a polynomial class that will implement basic polynomial addition, subtra...
[4 replies] Last: Maybe reconsider the name of the parameter in Polynomial& Polynomial... (by mbozzi)
by ema897
file reading
If have a line: (.a=m, .b=x,.c=o) how to extract each token ignoring space, not knowing how lo...
[1 reply] : See: The... (by againtry)
by Ganado
typedef with array without size
Quick question for anyone that knows... is the following standard C++? ( I know, it might as well b...
[6 replies] Last: Makes sense, thanks for the examples. (by Ganado)
Problem with binary tree
Hi, I have a problem. I have created a function that takes a (Node* root). But in main I do not kn...
[6 replies] Last: I agree, but, this sounds more like a how to compile or set up a proj... (by jonnin)
Pages: 1... 1516171819... 23
  Archived months: [dec2019]

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