Beginners - April 2013 (Page 39)

Debug question for class
 
I have this debug assignment which tells me to locate six errors within the code for the program. My instructor doesn't tell me what the code does once running ...
[5 replies] Last: I find that having it display it's status helps a lot. So, run it a f... (by IWishIKnew)
by rynx93
error with if-else inside for loop
 
I'm trying to have it display the error message when the name is not found. But coding it as below will have many error messages displayed. i know it's because ...
[5 replies] Last: Dear Zereo, Unfortunately I just started learning C and I can't reall... (by rynx93)
Code Blocks compiling errors
 
I recently started into the world of C++. I downloaded and installed code::blocks (the one with mingw). I was following a tutorial and made a very simple progra...
[5 replies] Last: Footknight, you have probably moved on greatly in the last 6 weeks, bu... (by Donnie)
When you dynamically allocate memory...
 
...how do you ensure that the memory was available and properly allocated? This is something that really confuses me. Here's an example of some code that I p...
[3 replies] Last: No, that check is useless: if allocation succeeds, sPtr is not null an... (by Cubbi)
by Rae
C++ Assignment
 
A Airline has just purchased a computer for its new automated reservation system. You have been asked to build the new Application using C++. The company has a ...
[18 replies] Last: I don't care if someone reports me - I stand behind what I have said 1... (by TheIdeasMan)
Usiing While Loop to display the contents of an array
 
Usiing While Loop to display the contents of an array except for numbers less than 20 #include <iostream> using namespace std; voidprintfunction(int d ,...
[4 replies] Last: The compiler is your friend. You should read its messages because it t... (by vlad from moscow)
C++ OOP begiiiner question/problem
 
Hi. I just started with Object Oriented programming in C++ and i got a book from the library which has some exercises but sadly no solutions for them,... and i ...
[4 replies] Last: Oh, ye, i got it now... Thank you. (by Fromar123)
Why return 0; and not return x;?
 
Hello everyone, I started learning C++ today and I want to get a good grasp of it asap *lol*. Well I have no prior knowledge of programming languages at all...
[2 replies] Last: http://en.wikipedia.org/wiki/Exit_status (by keskiverto)
Function not returning what I need it to
 
So the function is working. I'm trying to search for a Node of zip codes in a binary tree created from a file. and it finds it. However, when I try to return ...
[1 reply] : your problem is this: if(temp==NULL) found=false; // you set... (by coder777)
Homework help please
 
Write a program that tells what coins to give out for any amount of change from 1 cent to 99 cents. For example, if the amount is 86 cents, the output would b...
[1 reply] : I think, you need to make your compute_coins a bit generic. Also, a bi... (by writetonsharma)
Help with inFiles and Functions
 
I have a beginner c++ project assigned where I must prompt the user for the name of a text file and use it to output directories. Heres the prompt: Thi...
[1 reply] : Divide the whole problem in small parts, like opening/reading file, co... (by writetonsharma)
by Jace
Remove dependenceies
 
I've tried to send my friends programs, but when they open them they report an error. When I checked to see if my program had any dependencies, there were't any...
[1 reply] : Is this fixed ? (by writetonsharma)
NULL in comparison
 
In my code below, assuming l was either initially created or was initially NULL, void createList(LinkedList* l){ delete l; cout<<"\nWhat will yo...
[1 reply] : //void createList(LinkedList* l){ // 'l' is passed by value; the func... (by JLBorges)
by Kariss
Help with classes! (1,2,3)
 
I need to create a class to store distances. I've stored the distances in the private section of the class (at least I believe I did) and I believe I got the Ge...
[47 replies] Last: +1 MikeyBoy This all goes back to what I said at the start: setx1 ... (by TheIdeasMan)
by jidder
Not a real problem
 
i have been learning about classes and decided to create a blackjack game. It's not quite finished but everything works up to now. I was just wondering if there...
[8 replies] Last: Hi jidder, I was asking if i had done it properly before making more... (by TheIdeasMan)
Pointers?
 
Okay, I am relatively new to programming in C languages, and I am not stupid but I can't seem to wrap my head around this... What is the point of pointers? Is...
[7 replies] Last: Ok. Let's say Im writing a game and I have a class table for my charac... (by TutorIndia)
Namespace
 
So I'm getting some errors I can't account for in this code I'm writing. It's only very simple code, and I haven't been learning C++ for very long so I know som...
[6 replies] Last: Even where he says cin << "You have selected standard mode" << endl; ... (by crimsonzero2)
Quick Scope Question
 
The methods badOp, and createList are outside the scope of main? Well according to my compiler they are. #include <iostream> #include "LinkedList.h" ...
[2 replies] Last: ah i see. this has been an informative night. (by billycro)
Quick question?
 
If I have a program that stores 7 numbers in an array and values
[1 reply] : You mean that you want the user to guess 7 times? (by pogrady)
Help with class. Power Functions
 
Write a function called Power that takes 2 numbers as arguments. It returns the first number raised to the power the second number. So for example: If it ...
[1 reply] : There is a function within <cmath> called pow() that does this already... (by crimsonzero2)
April 2013 Pages: 1... 3738394041... 83
  Archived months: [mar2013] [may2013]

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