Beginners - April 2014 (Page 22)

by Pg0715
2d arrays
 
ok so I was able to initialize my array but not sure how to add the rows and display sum per row and...
[9 replies] Last: wow seriously thanks mxood i see what i was missing really helpful and... (by Pg0715)
by locolo
Switch menu does not call function!!
 
The switch menu does not call the function. compiler says undefined function!! Why??? Is the descr...
[8 replies] Last: Thanks guys, those were great ideas!! thanks for he help!! :) (by locolo)
by lays
question about type cast to reference or pointer, temporary reference or ptr be generated?
 
(type1 &)object1;//case 1 (type2 *)(&object1);//case 2 in case 1, is it that a temp refere...
[no replies]
Reversing integers in an array?
 
Hi, i need help reversing an integers while using an array.the code is already complete i just need ...
[8 replies] Last: nvm i got it already, thank you, instead of the counter that you said ... (by JulyZerg)
DEBUG ASSERTION FAILED!
 
Write your question here. Why do I get the DEBUG ASSERTION FAILED message (string substring out or ...
[4 replies] Last: You're welcome! Glad you got it working. (by abhishekm71)
how to stop going out of bounds without number of elements
 
I am doing a file input into an array and the I cannot change the function protos so I cannot add a ...
[3 replies] Last: it works the way i want until the input time is greater than the bigge... (by redsuns)
Purpose of destructors
 
What is the purpose of a destructor in a real life program? What happens if you do not have it in...
[1 reply] : The compiler usually creates one for you. This is compiler-dependent. ... (by PrivateRyan)
How do you use rand() to change as according to time?
 
Rand() itself is suppose to produce a random number but as i can see a computer will produce the sam...
[1 reply] : #include <iostream> #include <cstdlib> #include <ctime> int main() ... (by nvrmnd)
Help with program dealing with arrays! :)
 
Not as much of a question, more of a necessary peer review. I finished a program, but surprise! ther...
[no replies]
Codeblocks crashes when i enter the compile?
 
Both of my programs cause the window to restart when I select compile and I do not know why. P...
[1 reply] : Problem 1: If you want to allow the user to input as many times as the... (by PrivateRyan)
Problem Solving Help
 
Hey guys im usually good at problem solving but with this i am pretty stumped, well what i want to d...
[3 replies] Last: @bjcool4 Actually, I believe you would wind up with 2 and 5. The 5 in... (by whitenite1)
inputData
 
So Im writing this homework code to store information. I have to create a Base class along with a co...
[1 reply] : It means you need to give the user the possibility to enter a file pat... (by helios)
How do you implement a virtual function?
 
How do you implement a virtual function? What is the purpose of a virtual function?
[no replies]
VisualStudio to DevC++ problem
 
Hi guys. So i have this homework i need to make in DevC++. However, i normally just code in Vi...
[1 reply] : Actually adding .c_str(), ios::in and .c_str(), ios::app solved this ... (by Doobydu)
Can't open the .txt file!
 
So, I have the read function to my file set up, but every time I run the program to read the file it...
[2 replies] Last: Yeah, so I altered the destination upon realization that it didn't exi... (by sierranm)
Stack C++
 
I have the following code. But the problem is, it only accepts one integer. They told me I have to w...
[6 replies] Last: PS: I caught that idea from this Python script: http://inventwithpytho... (by iQChange)
txt file input to parallel array
 
I'm pretty green at programming. I've been trying to figure out how to do this for a few hours a day...
[9 replies] Last: Thanks so much! It worked! I was trying to build something based off... (by majortomdude)
a matrix code problem
 
Hi!I'm a beginner in C++ and I have a problem in working with matrix.I need help so could anyone say...
[no replies]
by Mike7
srand is not declared!
 
Hello, I am a pure C++ Beginner, I use dev c++ as my compiler. here is my code. Please take the ...
[3 replies] Last: Oh ok Thank you very much. I'll try it. I'll make sure I also use [co... (by Mike7)
Arrays
 
hey everyone im trying to write a program that generates 5 random numbers from the cpu and have the ...
[7 replies] Last: //for loop for the winning numbers for (int i=0; i<5; ++i) ... (by giblit)
April 2014 Pages: 1... 2021222324... 67
  Archived months: [mar2014] [may2014]

This is an archived page. To post a new message, go to the current page.