Beginners (Page 4)

2D vector declaration Seg fault core dump
 
Hi experts, Please help, I do not know why this code Seg fault core dump. #include <iostr...
[4 replies] Last: @lastchance, Sorry for late reply, thanks a lot for the instruction... (by Beherit666)
Splitting linked list
 
Create a function to split 2 singly Linked Lists according to following rules. Split 1 linked list ...
[5 replies] Last: i tried the previous code there is a problem when you input a diffren... (by dhayden)
Array Assistance (1,2)
 
I have this array program, I need some help with reading in. Per instruction my program should handl...
[32 replies] Last: The second block of code above looks right, assuming counter is size o... (by jonnin)
I can't find what's wrong
 
#include <iostream> using namespace std; void welstudent() { cout << "Welcome to University Dea...
[4 replies] Last: Hello Usama911, The beginning of the program now looks like this: #... (by Handy Andy)
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 -> http://www.cplusplus.com/forum/beginner/267366/ (by salem c)
by nonso
error
 
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 . http://www.cplusplus.com/doc/tutorial/control/ 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)
Pages: 123456... 22
  Archived months: [nov2019]

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