Beginners (Page 9)

File output is null
So I have a programming assignment from class, I've coded everything how I believe it should be done...
[5 replies] Last: @ Enoizat This prompted me to reread the chapter on functions. Thank ... (by trisket)
The iterator invalidation rules Problem.
can an iterator be valid after insertion in vector ? i tried this code : vector<int> vec1 = { 1...
[2 replies] Last: Thanks for replying @dhayden. I think it's now clear 😆 (by AhmedEl3agamy)
Save () function
Hi there, I have received a piece of code I intend to use in a library but can't understand the foll...
[1 reply] : The first "Save" line declares the save function. That means it tel... (by dhayden)
by sven
rational number
hi guys i need your help... i have my own library of rational number and now i want to found Arithme...
[no replies]
Why a garbage value is showing at the index (0) after sorting the array in ascending order?
#include <iostream> using namespace std; int main(){ int t; cout << "Enter the array size: "; ...
[2 replies] Last: Thank you so much (by r13ayan)
Using cin.getline() with files
Hello, i'm taking a fundamental c++ course and a part of my newest assignment is asking me to read 1...
[3 replies] Last: To do this from within the program (convenient if you are dead without... (by JLBorges)
Runtime Error Help
So, my code is running without any compiler errors. However, when it outputs the results to the scre...
[2 replies] Last: UPDATE: I believe that my issue would be that I need to de-allocate t... (by bacardiman)
Program crashing at random points
I've been beating myself up over this, it's so frustrating. I'm using SFML but it should matter, ...
[1 reply] : It returns vector subscript out of range Since there's no use of t... (by mbozzi)
How to push_back a vector <struct> ?
Let's say I have the following code: #include <iostream> #include <vector> using namespace std; ...
[4 replies] Last: I would like to avoid using emplace_back since it was implemented in C... (by Oriol Serrabassa)
Searching arrays that are a class.
How would i go about doing a sequential search on an array that is a class? This code is not workin...
[1 reply] : A C-style array, such as the one you're using, can't be adjusted for s... (by gunnerfunner)
Instantiating object with function pointer as paramater
Basically I have class B, that in the constructor is creating two class A objects. One class A objec...
[1 reply] : First, an outline of the approach below: 1. have a template baseclass... (by gunnerfunner)
Array with 10 objects and trouble with 2 errors
Hello everyone, first i apologize for creating multiple threads i will make sure to keep everything ...
[5 replies] Last: Hi, caltice. Please, have a look at the following code and ask if spec... (by Enoizat)
A pointer with every word from a sentece
Hi there, I was trying to make a chat bot, that learns from human and generate a sentece, etc, etc, ...
[6 replies] Last: I just want to show me, where in my code is a mistake, and how I can c... (by DirtyBlasion)
How to rand produce a c output.
Write your question here. #include <iostream> #include <string> using namespace std; ...
[2 replies] Last: Awesome thank you so much gunnner! (by aspaceg)
by Boidoh
How to Implement these operator overloading into a class?
Hello. I have this code I wrote myself where I overloaded operators to add, subtract, multiply and d...
[2 replies] Last: Oh I thought that it would be able to work with fractions. Do you thin... (by Boidoh)
How to feed info from file handling into a struct
Hi this is the first time that I've posted on this forum and i am a big beginner at C++ so if my inf...
[2 replies] Last: It depends where the information is coming from – if its from a file... (by gunnerfunner)
by Dagr
Hi guys i have found many topics and references about big int and i want to know for what i need it ...
[3 replies] Last: (by mbozzi)
No matching function call to class member
Hello to day as the title says i'm getting a "no matching function call to 'ParkedCar::ParkedCar()' ...
[2 replies] Last: OMG thank you i completely forgot i had commented them out to later ma... (by AnimeByDay)
write line function
is there any function that allows writing to specific line? ex. #include <iostream> #include <cstd...
[1 reply] : Hello Lopus312, Not that you should use a "goto" in your program your... (by Handy Andy)
Shifting array elements
I have to write a program that reads 10 values from an input file and stores them in an array. It sh...
[3 replies] Last: Thank you guys it worked (by rockandrollhead)
Pages: 1... 7891011... 68
  Archived months: [feb2017]

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