Beginners - March 2010 (Page 30)

display the contents of a stack in reverse order
 
/** Display the contents of aStack in reverse order. * * @pre None. * * @post None. * * @param aStack Is the stack to display in reverse order. */ ...
[4 replies] Last: oh, I think I see what you are saying.... (by kyleg033)
by gcr114
uninitialized local variable simple but aggrivating
 
Hey, im pretty sure that uninitialized local variable means that something isnt declared properly..im not seeing it though. if someone could just point it out t...
[3 replies] Last: If a variable was neither initialized nor assigned you shouldn't use i... (by Danielsson)
by Apex
Windows Form GUI Question
 
Hey, I'm making a form screen and one problem is that when I create a button, I want to link it to start another c++ program on its click. What I'm trying...
[1 reply] : Well to start another process (program) you can use CreateProcess() ... (by AlwaysLearning)
ifstream Need to read from file and output what's in it
 
Need the program to be able to find the .txt file, open it and read strings/what's in it. Then I have to printout out what is inside the file. ex: myFile.tx...
[2 replies] Last: I was able to fix it as shown below...thanks for all your help ---... (by rapduty)
A little info would be greatly appreciated
 
I am working on a school assignment that is a convenience store. I have posted the assignment below for you to better understand: This program is will be a...
[no replies]
using vector in fstream
 
i have a problem using fstream and allocating them into vector problem statement: create a program that uses vector called List using a structure called St...
[1 reply] : You need a function to read the data into a Student , and you need ... (by Duthomhas)
append() function
 
I am trying to use the append() function with a string: string my_string; char my_char = (char)(37); //gets the character from ASCII 37 my_string.ap...
[5 replies] Last: std::string is basically just an std::vector with a few functions for ... (by helios)
Need some advice
 
Sorry Here is my new post with code tags. New to the site. I am working on a school assignment that is a convenience store. I have posted the assignment belo...
[2 replies] Last: could you elaborate on this. I have worked with print functions, but h... (by CRBottini)
method Vs function
 
I'm a little (or a lot?) confused as to what the difference is, if they are indeed different, between a method and a function in C++. When someone says write...
[7 replies] Last: Function: a portion of code within a larger program, which performs a ... (by helios)
expected primary expression error
 
Sorry last post was kinda confusing. Here is the coding for the whole program. Its a school assignment of a convenience store. I switched the code to ==, but st...
[9 replies] Last: Thanks tummychow. Appreciate the help. and thanks everyone else... (by CRBottini)
Strange operator= bahaviour
 
I'm doing an assignement where I'm writing copy constructors and operator= constructors to copy objects with pointers in them. Every time an object is copied a ...
[8 replies] Last: ShipLoad::ShipLoad(const ShipLoad &obj) (by Disch)
stream string
 
I'm working on a project for class to make a kiosk for ordering items. One of my fellow students suggested a way to stop a user from inputting a Letter or othe...
[5 replies] Last: http://www.cplusplus.com/forum/beginner/13044/page1.html#msg62827 See... (by Duthomhas)
isostream not working
 
when i put in this basic code into borland C++: // operating with variables #include <iostream> using namespace std; int main () { // declaring var...
[6 replies] Last: You can still just double-click the exe files... that's a Windows feat... (by Duthomhas)
Functions...Again
 
How do I turn this into a function? #include <ctime> #include <iostream> using namespace std; int random (int min, int max); int main() { ...
[3 replies] Last: I think i get it now. thanks alot :) (by vection)
How is a friend function represented in a UML diagram?
 
I would assume it is identical to a constructor. So for example: constructorName(item_value: type) What adjustments would I have to make to display it as...
[no replies]
Combat system
 
hey... i'm working on a combat system and getthis error.... Error 1 error C2446: '==' : no conversion from 'const char *' to 'int' c:\users\www\documents\v...
[7 replies] Last: No if you make it either: char command; cin >> command; if(comma... (by gcampton)
What kind of variable declaration is "char&"?
 
What kind of variable declaration is it when you put the " & " sign right after specifying the type of a variable? In source code it usually looks something ...
[2 replies] Last: Now I see. Thanks Disch. (by neshtak)
Asks for a filename from the user using Character Array
 
I have a program that ask a user to give a name of a type of file such as .txt file, and then make 3 inputs and have those inputs save into this save file. H...
[3 replies] Last: Thanks Duoas...it worked perfectly... (by rapduty)
by Rizzla
Pass String Through Function
 
I'm trying to pass the contents of a the file (Assignment3.txt) into a string. The text in the file is Ole Miss Stinks. I am able to retrieve the contents of ...
[1 reply] : Look at lines 18,19 You're reading the string into 'str', but then ... (by Disch)
by dgirl
create a header file in c++
 
Can anyone help. I created a program and now I must create a header file to use with it. Here is the assingment and the code I have written so far. Any help wou...
[no replies]
March 2010 Pages: 1... 2829303132... 34
  Archived months: [feb2010] [apr2010]

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