Beginners - May 2015 (Page 14)

Help With Alphabetizing Using An Array
 
Hi there! I am a beginner C++ Student and am currently having trouble with alphabetizing an array. I have this code where a user will enter 20 book Authors/Titl...
[2 replies] Last: What's your final output going to look like? Because if it's Author/Ti... (by Momothegreat)
Comparing 5 numbers chosen to 5 random numbers
 
I'm working on a program where I have to create a game where the user selects 5 numbers from 0-9 to bet on. The five numbers are then compared to 5 random numbe...
[1 reply] : I'm a C++ beginner but I'm going to try talking this out. Okay so let'... (by Momothegreat)
ComputeAmount function
 
Assuming there are no deposits other than the original investment, the balance in a savings account after one year may be calculated as: •Amount=principal*(1+...
[5 replies] Last: Nah I don't have anything better to do... (by Momothegreat)
Guessing Game
 
Hi there. So I am supposed to write a program that plays a guessing game with the user. There are three pegs which the computer generates a 'colour' for (number...
[4 replies] Last: If the code below generates the random peg "colors" in the way you do ... (by andywestken)
by Winsu
Inteligent vector (1,2)
 
Hello everyone, I would like to do something with my vectors...I have coded an application to manage something like an store room. I have boards in stock, I ...
[30 replies] Last: I told you how you need to use the remove algorithm. With vector::eras... (by andywestken)
by Winsu
Get the maximun in a vector of struct
 
I want to get the maximun number of a variable which belong to a struct,so I have a vector composed by objects of that kind of struct,I want to analyse the vari...
[4 replies] Last: yes, thats true It's a cointainer not an array... Thanks!! (by Winsu)
Multidimensional Array
 
I want to know if I'm using the Multidimensional Array correct? I just learned it today. Decided to create Times Table by 10. #include <iostream> using nam...
[2 replies] Last: Thank you! I just play with your code and that is a lot easier instead... (by closed account yR9wb7Xj)
Useing user imput to determine the file name to scan in
 
I am trying to write a program that is dependent on the model number that the user types in, and then the model number is the name of the file that I need put i...
[13 replies] Last: (Edit: the post that this was a response to has gone AWOL (about faili... (by andywestken)
by Jean14
Binary Trees using dynamic arrays
 
Design and implement a class for binary trees, following the specification at the following URL http://www.cs.colorado.edu/~main/chapter10/bt_class.h Your desi...
[no replies]
by JayCee
Windows SDK
 
Probably a silly question but if I use Windows SDK do I still need Code:Blocks and the bits and pieces that go with it - or is it completely self sufficient in...
[1 reply] : is it completely self sufficient in linking and compiling etc. Not a... (by andywestken)
Help with switch statement
 
Having issue with switch statement and class functions. #include <iostream> #define MAXSIZE 10 //set maximum size of stack to 10 integers #include <coni...
[10 replies] Last: Given the way your while loop is coded, I expected to see: [code firs... (by andywestken)
Output character as a node
 
I want it to output Hi Hello I'm Good Hi Hello lel Hi How are you But it outputs 72 72 73 72 72 108 72 72 The tree: _________________Hi _________...
[11 replies] Last: Thank you for the code! I really appreciate it! (by Vandalism)
Story game using binary tree
 
I want to make a story game with multiple endings using binary tree. Is it possible? If yes, how to implement it?
[5 replies] Last: Ok, thank you! I'll try coding and make another thread if i had a prob... (by Vandalism)
Homework
 
1. Write a program that sorts five integers. The integers are entered from the console and stored in the variables num1, num2, num3, num4 and num5, respectively...
[2 replies] Last: http://mathbits.com/MathBits/CompSci/Arrays/Bubble.htm (by mutexe)
Having a small issue that I can't seem to figure out.
 
Okay.... First off I see a lot of posts on here and a lot of peoples concern... I AM NOT A BOT!!! now then!! I am having an issue with something.... I can't see...
[8 replies] Last: Upon further looking. I think I actually need ActionScript3!! Thank yo... (by Dexterfan101)
Need Help With Tic Tac Toe AI
 
The project is to build on the tic tac toe program that we made earlier in the year. I made the first program (human vs human) no problem but now I've been aske...
[3 replies] Last: Tic tac toe is such a small game that you can compute every possibilit... (by Geranimo)
Character as a node
 
It errors when i pointer the character to a node how to fix this? struct Node { char story ; struct Node *left, *right; }; struct node *newNo...
[5 replies] Last: Thank you! I have another problem but i think it's off topic so i'll j... (by Vandalism)
Stack Error Please Help Me..
 
Hii.. I was given an assignment to implement an Array based template Stack class... and after 4 hours of figuring out the problem.. I was about to die.. Beca...
[15 replies] Last: Thank You @jlb.. Thank you very much.. I could not have done it with y... (by ButchCavendish)
classes and Lists In c++
 
How to make a student class and student List class: Student class data member is roll no and student type should be pointer next to hold the adress of next stu...
[1 reply] : for your Student class: http://www.cplusplus.com/doc/tutorial/classes/... (by mutexe)
Void functions being wierd
 
Write your question here. So for some reason, #include <iostream> using namespace std; string name; void firstchoice (double firstbranch); int secondchoi...
[4 replies] Last: Firstly, this line didn't make sense No offence, but just because s... (by mutexe)
May 2015 Pages: 1... 1213141516... 40
  Archived months: [apr2015] [jun2015]

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