Beginners - November 2013 (Page 51)

How to display stack?
 
Hello programmers. I am learning how to make stacks. The instructor wants me to display the stack after you enter the elements or pop them out. All the examples...
[5 replies] Last: Good reply, but I asked about top1 because it's the key to the output ... (by closed account D80DSL3A)
by layzer
Student records problem?
 
Howdy all, my assignment is to define a structure for student grade records. define a structure for student grade records. 2. declare an array of records and ...
[13 replies] Last: Got it all to work! thanks! I hope to one day be a wizard like you. :D (by layzer)
function and array trouble
 
Hello everyone I am working on a homework assignment. I'm having trouble with the last portion of the code that asks to input a number that corresponds to an em...
[4 replies] Last: okay I've rewritten the code but i'm still getting an error of; hw6.... (by valmaral)
Error C2883
 
I am trying to write a yahtzee program and I found a thread on here with a dice roller. I tried to compile it to see how it worked and it is giving me the follo...
[6 replies] Last: So that entire line doesn't need to be there? (by Opjeezzeey)
C++ Finding the mode of a sorted array
 
Hi! I have a function that needs to calculate the mode of a sorted array. The mode however, does not return the correct function. Anyone know how to fix my cod...
[1 reply] : If the array is already sorted, then you do not need nested loops. You... (by abhishekm71)
Help with thread lib working with header files
 
i have a header file that i made a class in, so i defined the class and such but when i try to use thread to access a function in the class error C3867: 'TT...
[no replies]
if statement with ordering numbers
 
Hey everyone, So I'm writing this program that randomly generates 3 numbers between 0 and 100 and then has to display them in order, low to high. I have this ...
[3 replies] Last: Try doing something like this: int tempValue = 0; bool swap = true;... (by Parasin)
Exercise Problem
 
I have been studying c++ from ebook of alex allian. I have recently completed loops. At last there are practice problems and one of them is. Write a program...
[2 replies] Last: Thanks for the replay..........................I got it.................. (by SarthakGhosta)
Trouble getting started
 
I am having trouble getting started on this programming project of mine, was wondering if someone could help lead me in the right direction. Problem Stat...
[1 reply] : Start by determining all of the elements you will need: 1)You need a ... (by Parasin)
Binary tree sort issues (1,2)
 
So i have this code here that reads in a file and then counts how many words are in it and then ouputs it "You should list only words of length four or greater,...
[21 replies] Last: You are a genius Thank you for taking the time to help me out. been ... (by ninthred)
A minor issue with the Queue code
 
There is a minor issue with my Queue code below and I would appreciate anyone who can point out where I possibly did wrong. The code is supposed to read integer...
[2 replies] Last: It does work now! Marvelous! Thanks so much! :) Do you mind also expla... (by vesperiaLSU)
stdin to string array
 
How would I take a single string and assign it to a string array? Example cout << "enter a string"; cin >> teststring; //my input "Hello World" //and...
[3 replies] Last: Try entering a single string, then have your loops only display a cert... (by Parasin)
Arrays and corresponding elements
 
#include <stdio.h> #include <iostream> #include <iomanip> using std::cin; using std::cout; using std::setw; const int SIZE=10; int i=0; int j=0; bool t...
[2 replies] Last: Please use use the code commands when posting and re-input your code f... (by Parasin)
by Garion
Deconstructors
 
I had a question about when exactly deconstructors are processed in a program. The example from this websites tutorial which I am looking at is on the bottom o...
[2 replies] Last: thank you for the answer :) (by Garion)
by leo255
Inputing integers from file: Last number is repeating itself
 
Below is my input. Everything works how I want it to, except the last number (369), gets repeated on the last sequence, as shown below. Would appreciate if some...
[5 replies] Last: Ok, got it...For some reason, my "fileIn >> num;" in the loop was belo... (by leo255)
Understanding Funtions-
 
I'm writing a program that requires 3 functions and I don't quite understanding yet. I tried everything with this program but can't get it work. ***************...
[3 replies] Last: http://www.cplusplus.com/doc/tutorial/functions/ While loop is kinda ... (by mobotus)
by jcrose
help please!
 
I have absolutely no idea where to start with this program. Please help in any way you can! Thanks, Julie Develop a C function named rotate90 that takes n...
[no replies]
by ozwizm
Text-Based RPG bug. Please Help!
 
Hey everyone. I'm not exactly new to programming, but I haven't programmed very much in a while, and the last time I did, the best thing I could make was a pong...
[2 replies] Last: Wow, thank you so much firedraco! that worked perfectly! (by ozwizm)
How to make a game in C++?
 
I've been making console applications for quite sometime now... And I would LIKE to start making games. I know about directX and STL and stuff, but what about u...
[4 replies] Last: personally i don't recommend unity as it isn't primarily made for C/C+... (by Cronnoc)
2D array copying last int twice
 
Okay, I am running into a problem with copying integers into a 2D array. I am making a sudoku table with 0's in the empty slots to set it up, then am taking a ....
[2 replies] Last: hahahhahahahahah, Thanks buddy, I knew it would be something simple I ... (by BRod423)
November 2013 Pages: 1... 4950515253... 80
  Archived months: [oct2013] [dec2013]

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