Beginners - April 2011 (Page 25)

Problems with my New Car Price Calculator code!
 
I am in an online introduction to programming class and my instructor isnt helping me at all with my problems! This program has a main module that utilizes sub...
[3 replies] Last: Thank you guys, I figured it out like a couple of minutes after I post... (by shackdiesel04)
MORE Confusion with Functions
 
Im having trouble understanding the difference in formal and reference parameters.. If anyone could help better explain these to me, I'd greatly appreciate it
[2 replies] Last: okay basically when you send arguments to a function you arent sending... (by ascii)
by Asele
Inifnite sentinel controlled while loop
 
I'm having an issue using two nested sentinel controlled while loops. I just finished up an intro programming class and this is teh final assignment that I am ...
[7 replies] Last: Have a working product. From what I understand, it's not an ideal way... (by Asele)
by Tabby
Help troubleshooting
 
Hi, I wrote the following program to compute a running average, but it will not compile in DEV C++. It is pretty much straight out of a c++ user guide, so I th...
[2 replies] Last: ughhh! My bad. Thank you! (by Tabby)
Reading an XML - Writing to a TXT
 
Hello! It's been a while since I've programmed in C++, and I need some help. My goal is to read certain values from "map.xml" and then output them to a text...
[no replies]
Simple Function Question
 
I'm pretty new to C++ (hence posting in the beginners form). I'm making a text based adventure game, and one of the functions I have set up is a Battle class wh...
[2 replies] Last: Thank you! Yeah I got myself confused a little, I know it's a class, b... (by Cptsmith1)
Inheritance in C?
 
Hello, I am trying to do simple inheritance in C. Please view the short sample code below ... =========================================== #include <st...
[2 replies] Last: Hello Duoas, First and foremost I would like to sincerely thank you... (by RobCplusPlus)
Help With Doubly-Linked Lists
 
In the test case I'm using, I'm inserting 3 and a 5 into my list, and then I remove both of them. If I use the method removeFront both times, everything goes fi...
[9 replies] Last: I think that last bit of code was just what I needed, and it seems so ... (by alanthreonus)
by mobat
Multidimensional arrays
 
I need help in developing this array which will show my map and shows the current position im in with a 0 or something and i can move around by typing N S E W a...
[4 replies] Last: I have tried that. I have a structure named character which has xCoord... (by mobat)
friend operator <<
 
Hi, I'm having trouble with the friend operator <<. Here is my code: ostream & operator<<(ostream &os, const list<pair<string,int>> &data){ list<pair<st...
[2 replies] Last: thank you, works perfectly now. (by chrisbodders)
input file !
 
hi, how to make the program reads a list of students marks from an input file,the name of the file from the user. I have to create any list of studen...
[1 reply] : in general, how to read a text from an input file? , and the name of ... (by Thuraya)
Confusion with Functions
 
I am having a hard time understanding in when functions do and don't need a parameter list. Recently, I had a programming assignment in which I had to create tw...
[4 replies] Last: I don't really understand how my example wasn't clear, I mean this is ... (by TheNoobie)
How to check on menu item in a dialog?
 
Hi guys, I would like you to help me. I have figure out that I will get the errors of 'Form2' : undeclared identifier as if I included the "#include Form1.h"...
[3 replies] Last: My point was that if you implement functions in cpp files, you don't n... (by hamsterman)
having problem with switch statement !
 
this the code that i write and it always execute "Error" ! #include <iostream> using namespace std; int main() { int grade; cout<<"Enter the number of ...
[6 replies] Last: wow ! thanks guys ,but because i wanted to try it with switch statemen... (by ro0ody86)
Newbie level: Binary Search Tree Insert function not working
 
HEY i am trying to resolve my problem here is the code and the error 2 PA4 2768 exception::handle: Exception: STATUS_ACCESS_VIOLATION 2331 PA4 2768 ...
[4 replies] Last: void BinarySearchTree::Insert(int val) { BSTNode *node, *p; ... (by Breadman)
by marx
Is it possible to use getline(cin, str) without having to press enter twice on input?
 
So I use this code to accept user input that is more than one word: string str; getline(cin, str); The problem is, at runtime, when the user enters the input,...
[5 replies] Last: I Solved it actually. Its because of the bug in Microsoft Visual C++ 6... (by marx)
read file in 3d array of character
 
hi, i have to read a file containing email addresses of different people in following format name@domain.com:40 after reading i have to maintain 4 arrays ...
[1 reply] : You don't need four arrays, let alone a 3D array - one is enough: Use... (by Athar)
Upgrading my code to include pointers
 
Hi all, For my university assignment I need to include pointers in my work (I'm making a battleships game). I currently have the following multi-dimensional ...
[4 replies] Last: If you want to use first variant -> use: nums or *(*(nums+1)+1)... (by fandox)
by Kocoo
problem with winbgim.h
 
Hello! i'm trying to make some simple graphic problem for school, but i keep getting errors.. Conio.c Multiple definitons of 'delay' and wingbin.cp...
[1 reply] : Your code does not reflect the problem you are having. Don't #include... (by Duthomhas)
Changing int to char
 
My problem this week is to manipulate char arrays using C-style, I have been struggling all day with this one. Basically what we have to do is design a program ...
[3 replies] Last: cin.ignore(numeric_limits<streamsize>::max(), '\n'); will clear the ... (by hamsterman)
April 2011 Pages: 1... 2324252627... 55
  Archived months: [mar2011] [may2011]

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