Beginners - October 2010 (Page 20)

Creating a header file
 
Does anyone know where their is a simple example of how a header file is created? My textbook explains what it is, and when to use it, but I don't understand if...
[3 replies] Last: Usually when you start a new project you can select a project type. Bu... (by rrosario)
by Maerle
what's wrong??
 
my program complains about the lack of a ';' i can't find. The problem is between line 15 and 19. HEEELP!! #include <iostream> #include <conio.h> #inclu...
[4 replies] Last: it was lacking an ')' before : no more problems (by Maerle)
by jleach
DLL Function Arguments problem
 
Hi all, I'm trying to work out my first DLL (my first anything in C other than hello world). My intent is to call a DLL function, including arguments, from ...
[2 replies] Last: Sorry to keep posting, but I did have some (little) progress. I rea... (by jleach)
by ShiHao
Custom input stream function
 
Hello there, i am currently working on a custom istream function for a school assignment but i am not quite sure if i am heading towards the right direction or ...
[no replies]
Pointer Problem
 
I am trying to do an exercise from Stroustup's book. The task is to create an array of 7 ints, assign its address to another variable, then print out the array...
[2 replies] Last: Thank you very much, Disch. It did not occur to me that omitting the ... (by nathan10)
by mmyers
Rewriting the string class
 
As an assignment for school, I'm attempting to rewrite the string class. I've gotten a little bit of a block on inserting a string (array of characters) within...
[no replies]
Reading in data and putting it in an array
 
Hello, I need to read in data from a file and store it in an array. I however need to keep my array of an unspecified size until I start reading it in. I want t...
[2 replies] Last: So the idea with that is that I basicly create an array of size 0, the... (by WilliamERoberts)
Program doesn't work, but gives no errors.
 
I'm trying to get this program to display rows of '.'s (as a blank map in a roguelike game), but it doesn't show anything. Here's the code: #include <iost...
[13 replies] Last: Also, when you call a function, you don't need to include the return t... (by LB)
For loop and while Problem
 
Thank you for looking at this. SO my problem now is that the for loop won't run for the amount given. it also wont do the find the sloution to the the pr...
[5 replies] Last: system("pause"); can be replaced with cin.ignore(); cin.ignore();... (by Albatross)
by Kness
Count Controlled Loops and File usage.
 
I've been working on this for a couple of hours now, rereading the textbook and tutorials to try to help, and I can't seem to graps this section (though I am pr...
[17 replies] Last: My quotes file is in the same directory. I'm going to try it at school... (by Kness)
factorial related problem
 
Hi all, I'm on a new assignment. Im suppose to write a code that prompts the user to enter value for "n" and "r," where n is the total number of items in a g...
[2 replies] Last: ne555, I've adressed the overflow with my professor, and he w... (by wreidan)
by sbk
exchangeing the values of two instantces of a class
 
Hi guys. I would like to exchange the values of two instances of an object. To make my self clear to others here is an example for int number ... int a...
[no replies]
Int Array trouble
 
#include<iostream> #include<string> const int MAX_A = 3; const int MAX_B = 4; //declare two dimensional array int numbers ; int main() { // d...
[2 replies] Last: my prof wants me to use a two dimensional array. if it was one i would... (by jpperera)
getline-istringstream troubles
 
Hi! I've run into a problem which has taken hours from me, and I still don't get any closer to a meaningfull result... The Problem: Read in a set of graph...
[no replies]
by invfo
Constructor with parameters makes program crash
 
Hello. I wrote a constructor with parameter char * for a class, whose objects are much like strings. And the program aborted, when it came to the part in the m...
[9 replies] Last: That line was just another typo. String seems to be very useful class... (by invfo)
IDE Compiling Issues
 
Hello everyone. I am looking at a Beginning C++ Game Programming book, and it has been talking about the Arithmetic Operators. I copy the code from the book a...
[3 replies] Last: Actually I am having another problem... Using the wxDev-C++ IDE, I ... (by RialnisMada)
by janeD
Writing in a random access file
 
I'm trying to create a program that writes in a random access file and I'm having trouble getting it done. Can you please tell me what's wrong with my code? ...
[2 replies] Last: Thank you soo much! this has been a great help for me:) (by janeD)
Problem with a simple queue class
 
Hi! For an assignment I have to implement a simple queue using a class. I'm having problem with this assignment though. The queue I wrote actually handles...
[3 replies] Last: You may want to modify your queue so get() an put() work in constant t... (by ne555)
loops
 
Hi all i am using visual studio 10 also am using c++ i need to out put the following pattern: . * * * * * * * * . * * * * * * * *...
[2 replies] Last: #include <iostream> using namespace std; int main () { for... (by janeD)
by Kyon
Another way to get an abstract class?
 
Heya, I've got another dreaded problem once again: I have a class that is so generic that it should only be used for derivations. An abstract class makes ...
[3 replies] Last: +1 coder777 Don't make the user pay for what they don't use/need (v... (by jsmith)
October 2010 Pages: 1... 1819202122... 42
  Archived months: [sep2010] [nov2010]

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