Beginners (Page 8)

Error in 2d array index.
 
Good evening! In the code bellow, why i'm getting that output instead of 5, 2, 3? #include <std...
[3 replies] Last: err.. well, you could try it with pointer. see http://www.cplusplus.c... (by rjvc)
by leo255
Function using dynamic mem. allocation - getting seg. fault
 
Hi all, I pretty much just want the nonzeroCopy function to return a pointer to an array of somet...
[1 reply] : What is the value of nonZeroElsIn just before you call nonzeroCopy()? ... (by keskiverto)
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)
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]
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)
Need help identifying errors please
 
I am having some trouble on this, can you you help please? Identify 5 errors, syntax or logic, ...
[2 replies] Last: Number 7 array can only have 3 characters not 5. 8 because array was n... (by Fr0zen1)
Pages: 1... 678910... 130
  Archived months: [sep2014]

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