Beginners - March 2012 (Page 19)

by keiiy
Averages using arrays by calling a function
 
Even the title of it sounds confusing to me... This is the assignment and what I have so far. Which isn't very much since I'm having a hard time understanding ...
[1 reply] : Keiiy, if you have some time, meaning if it isn't due in a few hours,... (by Incis B)
Calculating the mean and standard deviation using array
 
[I have to create a code to calculate the mean and the standard deviation with array. This is my very first time to use array, so I keep having problems but don...
[2 replies] Last: I went over the source code and fixed some mistakes but I keep having ... (by skhailie716)
by reff
LinkedList problem
 
Hi everyone, there seems to be a problem with my hw project but i couln't find out what it is. before posting the code here (the code is a mess, hard to underst...
[no replies]
I need some hw help please
 
I am having trouble getting my program to run. I was wondering if i could get some help fixing it. I do not know how to fix some of the errors. I am also open t...
[2 replies] Last: First, I suspect you'll need to use BASE as a fnc arg inside BINARY() ... (by Incis B)
crash upon execution
 
I have been working on this for practice to help my skills and i have run into a bit of a snag to where the exe crashes every time it runs. can anyone help my? ...
[1 reply] : The main problem is that an array of size 50 has memory addresses 0 - ... (by Lowest0ne)
by er0850
String of length zero
 
I was given an assignment in my C++ class to write a code to take an user inputted string and test whether or not the string inputted was a Palindrome or not......
[5 replies] Last: Okay, thank you very much. I will start having to use getline() more ... (by er0850)
by moot1
error
 
What does this error mean. C:\Users\Desktop\New folder\2cdcalc\main.cpp|20|warning: 'total' is used uninitialized in this function|
[2 replies] Last: you have to do either int total = random_number; or... int total; cin>... (by Timothy Palmer)
Class Constructor Error Help
 
[Edited: 2:34pm. Changed topic name to more accurately reflect problem.] Hi everyone, I have a very simple program that gives a runtime error. I have ide...
[4 replies] Last: Just for completeness, cout << vV.size() << endl; is NOT the sa... (by Moschops)
Using a pointer to add an object to an array (1,2)
 
That's pretty much it. I need to use a class with a private data member pointer, and use that pointer to create an array and then use that array to put the obje...
[20 replies] Last: It will not cause problems outside your IDE unless you use up so much ... (by Moschops)
Function that returns sum of negative array elements.
 
So, problem is "Find the sum of the negative elements of the a array." I can write the function but I don't know how to use it in a program to test if I've do...
[2 replies] Last: Y, I got it now. stdatfx is from the compiler, conio is because i want... (by Legjendat)
Segmentation Fault Issues
 
While debugging I keep getting a segmentation fault when I come to this portion of my .cpp file. Is there anyway someone can help me fix this error because it's...
[4 replies] Last: The segmentation fault came as a result of having string sizestring ... (by thechad90000)
Help with searching an array
 
I have an assignment to do, where I have to write a program that reads some names from a file, then prints them in an out file and on the screen. Then I need t...
[6 replies] Last: Thank you very much, Incis. (by paulthepenguin)
Compiling with a Makefile
 
I'm a Windows user. I'm using Code::Blocks, and my c++ program utilizes and outside library (gmp). That means that I can't simply compile my program within Code...
[4 replies] Last: You don't necessary need Cygwin to use GNU Make because you already ha... (by ddd)
Homework help?
 
Hello. I am having trouble with my homework. If anyone could help me and and walk me through it that would be great. The assignment was to: Write a program ...
[3 replies] Last: To add, you declare the variable Seconds in two places, once in main a... (by Lowest0ne)
getting error in reading value for a class variable .
 
Here is code that I have written , class record { char *name,*usn,*age,*sem,*branch; public: record(void) { name=NULL; usn=NULL; age=NULL; ...
[no replies]
Why are both these functions not const?
 
The purpose of this code is to return a value @ location in a valarray of doubles (ArrayDb is an alias for valarray<double>) double & Student::operator (i...
[1 reply] : If you want to return a reference from that method and have the method... (by shacktar)
how to access a value?
 
i'm trying to access the x, y, z values in a vector. the driver of the sensor sets things up like this... cloud2_.height = height_; cloud2_.width = wid...
[7 replies] Last: You need to look for the type of the elements contained in fields. Pr... (by cire)
Error: Vector subscript out of range
 
Hi, I think I'm really close to solving the Josephus problem for my beginning programming class, but I am having one problem with my playGame method. I need ...
[no replies]
*** glibc detected *** error
 
I've narrowed down my problematic function to the one below: void SortedType::InsertItem(ItemType item) { NodeType* newNode; // pointer to node being i...
[4 replies] Last: It shows up to let you know you're doing something wrong that, if it h... (by LB)
by TrAnMu
Prime Number Program
 
The objective of this program is to determine whether a number is prime or not. I've read the program through over and over but for whatever reason, the output ...
[8 replies] Last: fahadmunir32 your logic are good if you want to determine if one numbe... (by Shinigami)
March 2012 Pages: 1... 1718192021... 71
  Archived months: [feb2012] [apr2012]

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