Beginners - October 2012 (Page 37)

Problem with postfix expressions evalutation (stacks)
 
I am solving this problem on evaluating reverse polish notation expressions or postfix expressions involving integers between -2000000 and 2000000. The procedu...
[3 replies] Last: long long is a type in C++. You can also have unsigned long long ... (by TheIdeasMan)
Define Previous array in loop
 
Here is part of my code. The rest is just the function definitions. .I have an array of 20 x 20 that outputs the temperature of a plate. I need to reiterate thr...
[9 replies] Last: I'd replace lines 7-16 with the following: for (int i = 0; i < ARR... (by AbstractionAnon)
Sorting a vector of structs
 
I've been searching Google for a while looking for a solution, but none of them seem to work and I'm over my head trying to figure this last part out. I have...
[6 replies] Last: I tried that, but it didn't work for some reason having to do with it ... (by tannerwj)
by Ch1156
How to make something like a jar file?
 
I was wondering how i would make somethign like a jar file, basically a folder that cant be opened without special software, something that holds files like exe...
[8 replies] Last: When I say "someone else's" I mean the person who is the physical poss... (by Moschops)
by Zach13
Array of Structs C++ Program Help
 
Hello, I am currently working on a C++ program for an array of structs and I am stuck. I have four input files, each one containing different parts of the data ...
[2 replies] Last: I finally got everything working with some help on another forum: http... (by Zach13)
by Aceix
Linking with inmport libraries
 
How do I link with import libraries in Code::Blocks with MinGW. I would have done that in MSVC++ like this: #pragma comments (lib,"winmm32.lib) . But how do I...
[2 replies] Last: Thanks!!! Aceix. (by Aceix)
Question meaning
 
Construct the main program to allow the user to decide the number of each type of objects to be stored in the array. Instantiate all the objects accordingly ...
[6 replies] Last: here is my main implementation #include <iostream> #include "Shippin... (by BasicNewbie)
by sul
interleaving definitions
 
Hi, in A.h i have a class C1 and a type T1 defined with C1. But A.h needs some definitions in B.h, but in B.h i want to use T1. Something like: A.h: ...
[1 reply] : You probably don't want to define global variables in header files lik... (by Peter87)
by skarla
sdl and opengl
 
SDL use opengl as i saw. So this is another opengl which is used with sdl,or it is the same as the OPENGL. hmm i can not expain it well. With less words i m...
[11 replies] Last: I think SDL and OpenGL is works very nice to me. I see no problem with... (by stoffe1100)
by mitt3n
Small Payroll problem
 
Hi everyone I am writing a small program that calculates payroll and writes the results to a text document. However, I am having trouble getting the second and ...
[2 replies] Last: Looks at that switch statement. Stares. Claps slowly. (by Moeljbcp)
cin (keyboard buffer problems)
 
Hello all, This is my first post. I am a C++ student and am having a really frustrating problem with returning for more keyboard input during a loop. All of...
[2 replies] Last: cin.clear(); // Clear flags indicating errors on stream cin.ignore(IN... (by Moeljbcp)
Fixing the box
 
This box is killing me I can't get this box formatted right. Under print formated addresss if it is less then it is supposed to truncate if it is greater then ...
[5 replies] Last: I'm not quite sure I get the question. If you meant the switch in the ... (by Chervil)
by xnorax
Extra hours (Please help!)
 
#include <iostream> #include <string> using namespace std; const int Paid_per_hour = 100; const int Paid_per_extra_hour = 150; void welcome_messege(); st...
[8 replies] Last: yeah it is easy step! I changed it before testing and it is work effec... (by xnorax)
im a complete beginner help!!!!
 
i really dont understand why its not working plz dont say how stupid i am. (i'm a complete beginner) // // // #include<iostream> using namespace std; int ...
[2 replies] Last: There are several problems with your code, here's a working example, s... (by newbieg)
Need code to print out X's and blank cells instead of 1's and 0's.
 
I am currently working on an assignment which tasks me with editing a simple gaming program that spits out 1's and 0's depending on the value of its neighboring...
[3 replies] Last: The ?: operator works as follows: Given x ? y : z it will test to se... (by Zhuge)
while loop college tuition
 
so I'm fairly new to C++ and I'm working this program to calculate the total of an individual students college tuition. I have to use a while loop, and at the e...
[1 reply] : I don't know quite what your code looks like, but I assume you use if ... (by tannerwj)
undefined reference to 'List::List()'
 
Hey everyone I'm trying to do a program where I overload operators such as *, +, / etc. so that I can add/multiply/subtract vectors/lists from each other and ad...
[3 replies] Last: this is helpful thank you (by nickcplusplus)
by rtom40
Help with Arrays (1,2)
 
Can you guys help me out with a program im trying to write... program that prompts the user for 5 prices. You are to store the values in an array. Im writing ...
[23 replies] Last: And please use code tags before "someone" gets mad at you--no offence... (by TheIdeasMan)
Feedback on program please!!
 
Hello everyone!! So I have been working on this program which ask to input dates as a sequence of three integers and checks to see if they are valid dates. the...
[7 replies] Last: ok thank you for your feedback (by ariana2608)
by arikh
simple 2D array question
 
I want to declare a 2D array whose number of rows is stored in a variable. The compiler does not allow me to do that. I was wondering if anyone could give me an...
[2 replies] Last: that also doesnt work in VS2010. It gives an error (by arikh)
October 2012 Pages: 1... 3536373839... 84
  Archived months: [sep2012] [nov2012]

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