Beginners - April 2012 (Page 50)

by EeAA
reverse linked list using a stack
 
Hello! I have to reverse a linked list using a stack and then print it, but having problems with it, it does not print in reserve order. It would be grea...
[2 replies] Last: Not sure where do I put that... After a while loop? Thank you! (by EeAA)
Read data from file and put into vector
 
I need to read data from a file, which contains integers representing date and time, and insert the data into a vector of array pointers. My data file for ap...
[no replies]
Using Google Code Jam test cases
 
Hi, I can't seem to figure out how to use the test cases provided in problems for Google Code jam. A newbie question I guess, but I have no clue. I'd ...
[1 reply] : I'm assuming you need to compare the output of your program with the e... (by georgep)
by rootzu
Two complement's program in C
 
Hi all, I am a beginner C programmer and I'm currently practicing on Linux environment with a series of programming exercises. I'm struggling with a program tha...
[3 replies] Last: Yes, I had written previously in my original post that it was just a d... (by rootzu)
I need help parsing some input
 
I have a command line that I need to be able to read and break into parts. I don't quite understand the string library and all the get statements. I'm trying to...
[no replies]
Template to display dice in text format
 
I have written a program with a function to generate random numbers and another function to display the die face that corresponds with the random number. My ins...
[no replies]
Stack of Tokens will not "pop()"
 
Hi, I am currently writing a program that converts an infix notation expression to postfix notation. Part of the program involves using a linked list to tempor...
[4 replies] Last: Yes, you were correct. I added a default Token constructor and remove... (by tjp1588)
Search for a name in a structure
 
#include <iostream> #include <iomanip> using namespace std; // Making a data type structure of "person" struct person{ char name ; char number ; float s...
[7 replies] Last: and yes result was 0 on my watch list, but it did not print out the in... (by ctittle)
Very beginner string question
 
Hi, I am just starting to learn C++ and am working through Accelerated C++. I wrote the following code to practice creating strings. I keep getting error mess...
[1 reply] : Wait. I'm dumb. I changed the equals signs in the if statements to d... (by Rubikkon)
OpenCV related C++ problem
 
Hey guys, so I am trying to use a particular class in OpenCV but I have never seen an operator like this so I am having trouble figuring out how to use it. Th...
[8 replies] Last: Alright so I just added some of the libraries I needed for these class... (by howard28)
by EeAA
stack linked list
 
Hi Guys, I am new to C++ ...and need some help... I have a stack array template class, aslo in main I created a linked list by entering numbers from a text file...
[3 replies] Last: it's supposed to move on the stack...I changed the code a little bit ... (by EeAA)
ofstream, find next line
 
Hi, I would like to know how I can find the next available line in a text file using ofstream. For example, if I were to make a text-based game, I'd like to ...
[6 replies] Last: [quote=awesomeprograms]how would I go about editing the line that file... (by closed account zb0S216C)
by klae
Basic Grade Calculator
 
#include "stdafx.h" #include <iostream> using namespace std; int main() { int grade ; int outof ; int gradeTotal; int outofTotal; float finalG...
[2 replies] Last: Alright thanks i appriciate it! (by klae)
Adding elements to an array?
 
Hi. I'm trying to make a sort of text "shop". Here's the code: #include <iostream> #include <cmath> using namespace std; void Shop(int); int Gold = 1...
[17 replies] Last: Okay. Confusion confusion lol. Someone mentioned vectors and I resear... (by TheJabre)
just a bit of help
 
Ok, ive literally started learning to use C++ today and have bought Herbert Schildts "C++ A Beginners Guide". The book so far is extremely good so far for someo...
[7 replies] Last: As I said, I'm away from home. I just wanted to make sure I was doing ... (by waggy44)
debug
 
I think I am getting a message about the formal parameter list (an array). Am I not introducing it into the function correctly. The following are messages tha...
[4 replies] Last: The values will still be there, because when you pass the array to a f... (by long double main)
by Rei
Help needed
 
Hello so I'm having an issue with this program I set the user to input up to 20 grades once the user has inputted let's say 8 grades they can exit if the like o...
[no replies]
by Moni33
software engineers with C++
 
Hi everbody? Can you please help me? We are looking for sotware engineers with Java EE and C++ knowledge in Budapest, Hungary? Where can I find such people and ...
[3 replies] Last: Try placing an add in the "Jobs" forum with details regarding the job.... (by Stewbond)
by EeAA
reverse linked list
 
Can you please check my reverse linked list function? does it look okey? thanks. void ReverseLinkedList (nodeType *first) { nodeType *q,*r,*s; q=fir...
[no replies]
by Ch1156
Getting variables from different functions
 
Ok so im making this dinosaur battle game and i need to get: A from A = rand() because i need to use it in a different function and i dont know how to do that...
[1 reply] : You can't use a variable from one function in another. That is why the... (by hamsterman)
April 2012 Pages: 1... 4849505152... 66
  Archived months: [mar2012] [may2012]

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