Beginners - November 2013 (Page 65)

Normal Distribution, recursion, friend class
 
Build an object-oriented simulation of the probability demonstration given in class. Use linked lists. Define two classes: a tree class and a node class. Use se...
[no replies]
need help with two dimensional array
 
I want to convert the output screen vertically by using two-dimensional array. Can anyone guide me out ? //Reads data and displays a bar graph showing ...
[2 replies] Last: this is what i did so far, and i got stuck in the array in the graph f... (by tomnguyen103)
Error..not sure what I'm doing wrong
 
This is what I need to do: get 5 amounts, display & add a $10 fee if the amount is more than $500. This is what I have to far, but I keep getting error: "cannot...
[4 replies] Last: I was going over and over the code and was so "blind" he he he!! Thank... (by hascumar13)
by cshu
SUBSTRINGS!!!
 
When I run my program i get weird things, my file reads correctly I just need help with the substring so the file outputs correctly. I just need help this ...
[2 replies] Last: here is my output Added: Samuel Spade Fido Added: John Jones Rover Add... (by cshu)
how Iterate through a vector of lists
 
Hey, guys. I'm trying to figure this out. I have a implemented hash table, a vector of lists of pointers to objects, and I'm trying "dump", i.e. go through and ...
[5 replies] Last: since the table is a template class its going to require an argument l... (by pfunk35)
by Mayah
Sort an array with unknown length
 
Hi, I am writing a program that prompts the user to enter values that will be stored in an array. When user chooses not to add new values (by typing N), the ...
[2 replies] Last: Assuming you can't use a vector, the easiest way would probably be to ... (by naraku9333)
by ephekt
count and display unique characters
 
I am trying to display the unique characters in a string and count how many times each character appears in the string. my count starts at 0 and just increases ...
[1 reply] : So, I guess you didn't write the functions in your previous post: http... (by norm b)
using class
 
Write your question here. Im writing a code about plants by using class, after i wrote the header file and cpp file,and afert excute my code i had that kind of...
[3 replies] Last: Thanks a lot both of you 'johny31' and 'pfunk35' yes I made those chan... (by juvelover)
OpenGL help?
 
Hello everyone! I'm trying to code a 1980's Asteroids type game in OpenGL and I'm almost done, however one thing is really bugging me, and I can't seem to see ...
[3 replies] Last: Thanks for the help, the for loop worked fine. Going to kick myself no... (by taurine14)
by jer311
Help with arrays
 
Hello my fellow nerd lingers;). I am having trouble with one of my projects dealing with arrays. The assignment is to have the user write a phrase and then list...
[no replies]
Pointers to classes
 
On the page http://www.cplusplus.com/doc/tutorial/classes/ , in the article "Pointers to classes" there is example code: // pointer to classes example #i...
[3 replies] Last: So, I have one pointer d for a single CRectangle, but in works like i... (by MikeyBoy)
Using multiple functions.
 
Hi guys, My assignment is to use the following input data and print out a report of their salary. Miss Informed 12 5432 32560.0 Sweet Tooth 5432 9500 ...
[4 replies] Last: #include <iostream> #include <fstream> #include <cstdlib> #include <s... (by Whateverchan)
looping
 
my teacher told me my "name-in" string should loop from first name-in to las name-in i just need to ask how to make sure that the number of students names match...
[2 replies] Last: this is great thank you but the only thing i'm missing is trying to li... (by ramirez618)
Trying to make a nested loop program.
 
I have a program I am trying to do.. its a basic convert feet to inches or inches to feet. It needs to have a zero as the sentinel to boot out of the program an...
[1 reply] : Your tests to determine if 'unit' is 'f' or 'i' are incorrect. When yo... (by sherre02)
sort an array of type int arry[MAX] using stl
 
how to sort an array of type int arry using stl where MAX is defined already and we know the number of entries in the array? #define MAX 50000; int ma...
[6 replies] Last: thanks! (by hellcoder)
by Ax7
Simple question about output
 
Hi I'm trying to write a simple code that returns how many times a number was entered by the user. Problem is if I type in "1 1 2 2 3 3" it'll return everything...
[4 replies] Last: I'm just learning, so I want to learn how to do both. Initially it wou... (by Ax7)
help in combining objects
 
am having problems with using classes as a variable in another class.. someone should pls help..what is wrong with the code. #include <iostream> #incl...
[1 reply] : Add #include <string> and change the const_iterator 's to iterator... (by Fransje)
Comparing 2 char arrays
 
What my program is supposed to do is generate a random array of characters that is 6 letter. What the user then does is using the letters given try to make word...
[6 replies] Last: Sorry man. I want to help you, but I just can't see what's going on he... (by sherre02)
Complier Error on void function?
 
Can't seem to determine whats wrong with my void function. I keep getting a complier error. Anyone tell me whats wrong with this please? void areatriang...
[12 replies] Last: Oh woops! Glad you found the problem giblit and fahmankhan75 .... (by closed account 18hRX9L8)
Am I right?
 
1 ) In a switch-case statement, the expression following the word case could be a floating point literal or constant 2 ) y < x is the same as x>=y am I co...
[4 replies] Last: > 1 ) In a switch-case statement, the expression following the word ca... (by JLBorges)
November 2013 Pages: 1... 6364656667... 80
  Archived months: [oct2013] [dec2013]

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