Beginners (Page 3)

Most occurring element in vector<int>
 
As the title say how do I get the most occurring element. I sorted the vector because I thought it w...
[2 replies] Last: > I sorted the vector because I thought it would make things easier, b... (by JLBorges)
Need to change from max value to average
 
Hi!! i did a program with array and with funcion to find a max value ( got help with it a little) n...
[3 replies] Last: Well, I was hoping you would modify the function, rather than main(). ... (by Chervil)
Passing class name as arguments to member functions
 
I'm having issues with the last part of my code. I have to add the declaration of void multiply(Fra...
[18 replies] Last: Are you saying that's what I need to do? That would give the wrong ans... (by Guy1988)
reading file from last position
 
Hi The code successfully reads a file, line by line, up to a certain point, then does some processi...
[1 reply] : Well, if you don't use break at line 22, it will continue processing... (by Chervil)
Array Question
 
(first of all sorry if i make any mistake on my english) Well I'm new at programing , and the first...
[3 replies] Last: #include <iostream> #include <numeric> using namespace std; int main... (by lastchance)
Arrays
 
Hello, I'm learning about arrays in c++ and have two questions. I have created this program that's ...
[4 replies] Last: I've limited the range of your random numbers to 0 - (RANGE-1), that i... (by lastchance)
by radhio
Need assistance how to add title row data in excel
 
Im too beginner in C++. How i need add title data for this code : void ReportDefectPanel::ExportR...
[1 reply] : Please do not double post http://www.cplusplus.com/forum/general/2040... (by SamuelAdams)
Question regarding reading a file into an array using a while loop
 
How do I use a while loop to read the file into the names array? I know I'm supposed to use getline(...
[1 reply] : #include <iostream> #include <fstream> #include <string> using namesp... (by lastchance)
how to use a using
 
Hi I have a structure defined as an adjacency_list in the private section of a class. I would lik...
[3 replies] Last: Hi JBroges thanks for the help. Works! (by bluefrog)
More in depth explaination of inline funcs?
 
I am in the process of learning C++ and I have come to learning inline functions. I know their purpo...
[2 replies] Last: That is much simpler that I was imagining; your example really clears ... (by cmhubert)
Search in array
 
I'm playing around a little bit with arrays. At the botten of the code I'm searching for a specific ...
[6 replies] Last: Regarding flush/endl with file output. Normally I would avoid using e... (by Chervil)
by mgala
Simple question regarding operators
 
Hello I'm writing a program which runs a lot of functions that run based on the user inputted menu c...
[4 replies] Last: I assume you have closed the other one down. It would have made sense ... (by kemort)
Calling functions
 
Write a statement that calls computeMajorGpa and assigns the result to gpa. Note that this statement...
[1 reply] : Maybe something like this ... double gpa = computeMajorGpa(); ... (by Peter87)
Create a variable number of files
 
Hi guys! I need to write a short script that creates a variable number of output files according ...
[2 replies] Last: Oops! You're right! Thanks! ^_^" (by amivaleo)
making a queue of c-strings
 
I need to create a queue of c-strings, but when I push a new c-string onto the queue, all the item...
[1 reply] : You have only one buffer for the input so you overwrite it every time.... (by Thomas1965)
by mgala
Desperately need help with functions and arrays
 
Hello, can someone explain how functions and arrays interact? Specifically, I am writing a program w...
[10 replies] Last: http://www.cplusplus.com/forum/beginner/204040/ Don't double post and... (by kemort)
Dynamic Array and [] operator overloading issue.
 
Hello, I need some help from experienced folks on this dynamic array I'm creating. I'll get straight...
[10 replies] Last: And here is another example from "Data Structures and Algorithm Analys... (by kemort)
Array Allocation
 
There are 5 siblings. They are Bob, Charles, Ben, Darve and Jack. The gifts are a rice cooker, a cam...
[16 replies] Last: @keskiverto thanks for the reply once again. in this loop right. i tes... (by DesmondLee)
Does "unique" function work in vector<char> ?
 
I thought to find unique elements from a string data is straightforward. But it turned out to be not...
[4 replies] Last: Thanks. So the answer is to sort the string before unique it. (by landlord1984)
using a swap function with pointers to array as parameters
 
can someone explain if im doing this right? i need to use pointer artimetic to change the 3rd ele...
[1 reply] : Please use code tags. http://www.cplusplus.com/articles/jEywvCM9/ ... (by integralfx)
Pages: 12345... 53
  Archived months: [oct2016]

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