Beginners (Page 2)

Very simple array problem
 
I'm making a function that creates a pin (all one string) that is created from random ints. My probl...
[5 replies] Last: Maybe its just easier to create int variable that is like 10 digits lo... (by skimmer001)
Help with String Problem
 
Homework assignment and I'm at my wits' end with this. I'm new to C++ and need a little help. I'm lo...
[5 replies] Last: Ditch everything after line 19. Line 11 can be written with what you a... (by LB)
what does exactly do
 
What is the output of the program below, if the input values are 4 11 6 17 ? would it be the sum of...
[6 replies] Last: Try it for yourself and see: http://cpp.sh/2qk2 The initial value of ... (by Ganado)
Passing Multi-Array Data to a Function
 
I'm trying to pass data from a 3d array to an averaging function. Right now I'm getting an error whe...
[3 replies] Last: Your function calls for a two dimensional array as its first parameter... (by Keene)
cin, cout & enld not in scoope
 
What em I doing wrong #include <iostream> int main () { int t = 0, value = 0; ...
[1 reply] : You're using the std namespace without telling the compiler you are. Y... (by danghotties)
My code works as is, but how do I use the constructor?
 
Here is my code so far: megatron.h - In namespace megatron::utility template <class T> cla...
[7 replies] Last: > Are you redefining the original template? Or is this a new template ... (by JLBorges)
loop asking user to do program again
 
I have a program that asks the user to enter an account number and I have an array of numbers and it...
[4 replies] Last: Here try something like this: #include<iostream> using namespace std... (by danghotties)
Create a destructor and call it
 
I need to create a destructor for my class since i have a lot redundant obj. I have in my class cr...
[7 replies] Last: So do you mean that after calling merge() you want to delete the items... (by dhayden)
Help with Tetris Logic
 
I had the piece falling down the bucket correctly and then I implemented the following classes in or...
[no replies]
Structure string is invisible
 
Why is it that when i use a getline command to input a string for a structure it shows up as nothing...
[3 replies] Last: It worked. Thank you very much. (by skimmer001)
help with bool and const int array
 
Hey I got this program to create an array of playing cards and assign the values and suits and shuff...
[6 replies] Last: got it I understand that. I've changed the code but I'm still getting ... (by MrBond90)
stack push function
 
Hello, I want to use an STL linked list as a stack (I am not taking about implementing a List Stac...
[no replies]
Missing data from input file
 
Greetings, I am trying to get the program to display the contents of employee.in. I have 10 line...
[6 replies] Last: So I am making progress with my payroll program. However, I am runnin... (by Scythifuge)
const char pointer function help
 
I'm having some issues with changing a char pointer and can't figure out where I'm going wrong ...
[1 reply] : What do you set desc to in the default constructor? (by Keene)
a better way to write this?
 
Hi, I'm supposed to write a code which accepts an integer n(between 0-10) and then each character i...
[2 replies] Last: wow thank you so much!! thats exactly what i was trying to do! :) (by RocketGrunt)
Threads by C++11
 
I made thread array in 20 threads and need to perform function hundred times, how can I do that to u...
[5 replies] Last: [quote=Satansoft]And what if I have next writing to call the Class met... (by NT3)
Erasing file information
 
Hello, I'm not very good at coding. My assignment was to open a file and do different things to it. ...
[4 replies] Last: There's like 300 names so i can store each name so how would i go abou... (by kathay14)
using substring inc++
 
I have a function(double divide)that returns double (a/b) e.g 12/23 =0,52173913 I want to use the r...
[no replies]
reading data in columns from a file
 
hello I am stuck on one of my homework problems. im trying to make the program read a file from my c...
[1 reply] : while (InputFile >> hours >> payrate) { // other code here } ... (by Fr0zen1)
member functions of vector?
 
Why can't member function of vector be used, when i am using them on vector a class.. for instan...
[10 replies] Last: > but the iterator itself isn't it an integer? no. Iterators are used ... (by ne555)
Pages: 1234... 125
  Archived months: [sep2014]

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