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 display the total of all the rows could use help or explana...
[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 description on top of the functions right for doxygen?? makes sen...
[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 reference of the type "type1" be created other than a temp object ...
[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 to reverse the output. Please help me thank you. i have some...
[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 range)? The program quits after encrypting the second chara...
[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 number of elements variable. I am calculating thrust from t...
[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 your program?
[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 same set of random numbers. I heard that using rand() with som...
[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! there's an error and my compiler cant catch it, please help me f...
[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. Problem: should include a while loop that allows the use...
[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 do is run through this code which is used to solve a sudoku. ...
[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 couple derived classes. I need help understanding the directio...
[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 Visual Studio 2013 then copy+paste everything into DevC++. It ...
[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 will not open, and it displays: "File not open". What am I ...
[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 write ONE stack that accept TWO integers. So basically, I'm s...
[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 for the past few days. The professor hasn't emailed back ye...
[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 to me where is the problem?The code is: #include <iostr...
[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 time to look it over and tell my why its not working :/ ...
[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 user input 5 numbers. depending on the user's input if the n...
[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.