Beginners - November 2015 (Page 32)

class help
 
This is what i should do Implement class to represent Bank Account With Attributes: - Account Name text with spaces :char * - Account ID : unique value :in...
[2 replies] Last: In addition to what mutexe said, Withdraw() and Deposit() should modi... (by dhayden)
Passing arrays to functions
 
I have a couple questions about passing arrays to functions. I solved this problem sort of by accident, but I'd like to understand what's going on behind the sc...
[4 replies] Last: Follow up question, when the array gets passed to the findLargest fun... (by AbstractionAnon)
Urgent Help Need [Array]
 
I am trying to print a randomised array which is already working My next step is to swap elements with statements in my while loop. My only problem is that...
[5 replies] Last: ok, i see some of your confusion came from left,right. these are the ... (by Jaybob66)
Trouble with files!
 
My question is how would I go about opening an existing file, calculating the numbers in it and determining how many values there are in it lets say this...
[2 replies] Last: Thanks so much! I honestly wasn't expecting someone to answer me so fa... (by Tyler w)
Translation errors between IDE's? And how do I pause in Codeblocks?
 
I have WinVista. That means I'm stuck with Codeblocks. When I find a tutorial on YouTube in IDE like Microsoft Video Studio I get all kinds of errors. Like...
[1 reply] : I have WinVista. That means I'm stuck with Codeblocks. When I find a ... (by Kevin C)
Weird error with string
 
My program is supposed to take in an input file of names followed by test scores. At this point I am just trying to compare the answers someone gave, with the k...
[1 reply] : The problem is probably the loop on line 23. You improperly check the... (by coder777)
by Molly
Trying to make a simple game.
 
Hello everyone . So , there's a simple game which is our class project for this term and I'm currently thinking about it . The game is supposed to Spawn rand...
[2 replies] Last: well that was a bit confusing for me , as a starter! I found an easie... (by Molly)
Calculate average in array
 
I have most the parts to this code working but need some guidance for two last calculations or at least one and i can figure the other one out. I'm trying to...
[8 replies] Last: You are very welcome - have some sleep. (by Thomas1965)
by Needy
Issues with failed files
 
I want for the files to read, but no matter what it shows the error message #include <iostream> #include <string> #include <iomanip> #include <fstrea...
[1 reply] : ifstream fin(argv ); fin.open(flightFile.c_str()); argv is not t... (by Thomas1965)
2d array & nested for loops
 
I have the following array int myarray I would like to put 5 in the first row and then 10 in the remaining rows. 5 10 10 10 10 10 10 10 10 10 similarly 10 ...
[3 replies] Last: You need two nested loops. See: http://www.cplusplus.com/doc/tutorial... (by coder777)
What does this line of code do?
 
I'm trying to figure out what the below line of code is doing? AvlNode *oldNode = t; t = (t->left != nullptr) ? t->left : t->right; //Specifically this...
[3 replies] Last: Thanks for the help! (by JRimmer)
Display 4 numbers per line?
 
My assignment was to print out all the four-digit base-2 numbers the first digit being 0000 and the last being 1111. So I got the code all figured out, I got al...
[4 replies] Last: try this: #include <iostream> using namespace std; int main(int arg... (by DeathLeap)
my homework
 
This is my homework I thought that if I put this code would work but not. #include <iostream> #include <conio.h> float area(float X,float Y) { float F; Y...
[1 reply] : So what's the problem? Do you just want someone to do your homework? T... (by closed account 48T7M4Gy)
Heavy-handed code needs optimization
 
My program, as it currently sits below, accomplishes everything that the problem asks of me: (Write a program that has a function that prompts for three value...
[2 replies] Last: Thank you, I will attempt to understand all of it. Thanks again. (by PedInsp)
user input to determine array size
 
Hello, sorry for any unorganization this is my first post, here is my prompt: For this lab, you need to develop a C++ program that prompts the user for a ...
[1 reply] : You need to use the new operator which allocates it on the heap. Mak... (by integralfx)
File Separation
 
I have a problem in file separation. I'm using CodeBlocks and these are the codes for each of them for simple code that just print text out. If I include Happy....
[2 replies] Last: I didn't get your mean but I create 3 different file as I showed Also ... (by CodeOpen)
Struct
 
Hey guys, I'm hoping there is an easier way to do this. So Ive got 22 of these to do. Is there a easier/more efficient way to declare these??? struct Tria...
[2 replies] Last: I could use some help transferring these structs into svg format, with... (by b29hockey)
How to make this function...
 
Hi.. I need to calculate the 3 angles of a triangle using 1 function. How do I manipulate the function to do that? Angle A = arcos((b*b+c*c-a*a)/(2*b*c)) Angl...
[13 replies] Last: No problem. There's lots more but I'll leave it to you to get back if ... (by closed account 48T7M4Gy)
I know is something really stupid
 
I dont know why my return proto type is having a error. Im sure is something really simple, but iv'e been working on it for 45 min. and still cant find the erro...
[2 replies] Last: Thank you my good sir. (by nanopad)
More on functions.
 
Here is the scenario: Write a function named "getInput" that takes one parameter identifying whether the value the user is entering is the wholesale price OR i...
[11 replies] Last: I guess the question for you would be, if this is the result your look... (by ShiftLeft)
November 2015 Pages: 1... 3031323334... 53
  Archived months: [oct2015] [dec2015]

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