Beginners (Page 3)

Help with a Loop
Hello, I'm currently making a program that reads off a file and prints a list of movies playing with...
[3 replies] Last: If I input 06/02/20 (no movies on my list for this date) as my starti... (by Ganado)
Palindrome (1,2)
Hello All, I need help with an assignment. Please keep in mind I'm a pure beginner. I really don'...
[33 replies] Last: You're getting very close. Explain what this code does. As you explain... (by dhayden)
How to do RegEx strings check in two files fast?
How do I check if some strings in file A is somewhere in file B (not in the same line number of each...
[2 replies] Last: > I used Python and it is incredibly slow... for a 2G text file it tak... (by salem c)
Reading in a text file into a string array while ignoring single characters
I am trying to read in a text file into a string array. I am using a for loop to do that. But i have...
[3 replies] Last: constexpr int max_words = 1024; std::string words std::string word; ... (by mbozzi)
Data segment
Hi everyone, so I have to create a Queue with elements and everything and I seperated part of the c...
[4 replies] Last: Well there's 2 words I didn't think I'd hear again haha. No worries, t... (by lekfanda)
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 -> (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)
Pages: 12345... 22
  Archived months: [nov2019]

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