Beginners - November 2009 (Page 10)

Amateaur Problem
 
Hi all, this is my first post and I am new to C++. I am trying to write a simple program to convert binary numeral system to decimal. While I am aware of th...
[4 replies] Last: Thanks for the quick response. Changed switch(length) case '1': ... (by TJohnston)
by Akyrun
Again... Error. Linking Error.
 
I am just wondering, what is a linking error. How do you fix it?
[2 replies] Last: A link error is an error that occurs during link time. (I'm not bei... (by jsmith)
Scoring Students
 
I need to write a program using arrays and strings.Here is the question. A class of students takes a 20 question multiple-choice exam;each question has 5 choic...
[8 replies] Last: legend do i need to use void?? I did something like this C and C++ mi... (by thebeast)
ASCII Art in Arrays?
 
Greetings, Relatively new to programming here, so I hope you'll go easy on me. Not sure what else to say for now, so I'll jump right into it. Basically, I...
[7 replies] Last: Oh sorry I thought you were trying to do something a bit more complex. (by DrChill)
what is the idea in this graph
 
Hello everybody I am beginner in programming my lecturer give a sample in C++ as the following graph : http://www14.0zz0.com/2009/11/18/15/599417392...
[4 replies] Last: I agree. (by writetonsharma)
which container's iterator is competent
 
I want a container whose iterator can pointer to the right element as long as the element stay in it. I found that the iterator of a vector is invalidate immed...
[2 replies] Last: I think all of the containers except std::vector<> and std::deque<> (a... (by jsmith)
by gdsimz
debug assertion failure using pointer
 
Hi All, Attempting to read records from a txt file (space delimited) and having problems adding records on the heap. I get an debug assertion failed error (...
[3 replies] Last: [quote=Chewbob]You need to allocate the space for the array after you ... (by firedraco)
How to get out of this while-loop
 
Hi guys, I just started practicing C++. Right now I'm trying to put lines of text to a file one by one manually and then stop puting in text by typing end. The...
[6 replies] Last: Hi, thanks for your reply. But it seems like the problem persist. T... (by nunchuckie)
Operator overloading in combination with inheritance
 
Hello, I've build a Matrix class with several methods and also several overloaded operators. Next, I've created a Vector class which inherits from Matrix...
[3 replies] Last: You could get creative with templates... template <typename chil... (by Disch)
Quick Classes question..
 
Hi, I'm new to C++ and I have a question about classes. I'm trying to make a program from a book I'm working through. It is a Greyhound track where you can b...
[5 replies] Last: Thanks for your replies. MaikCAE's method makes more sense to me from ... (by Johnny T)
Problem with header file
 
I am trying to compile the following code to calculate the average of grades but I get the error that GradeBook.h not found. I am primarily a student of java an...
[4 replies] Last: Many many thanks everyone!! The problem was solved by placing 'header ... (by mgm2010)
expected unqualified-id before ‘int’
 
Slight compile problems. I'm Linux using g++ Here's what happens in terminal john@john-laptop:/media/disk/Cannon$ make g++ -Wall -O2 -c -o Enemy.o Enemy....
[5 replies] Last: Constructors don't return values, so do what AleaIactaEst said for eve... (by jsmith)
unary plus
 
I have rewritten bjarne stroustrup's calculator program to accept input from a file and parse it and evaluate it. Everything works fine except for the instance ...
[2 replies] Last: Sorry; mistake. Thanks for your help. (by cengineer)
Any ideas on my C++ program
 
I have a program that create an object that ask user to enter a number then the output is like this when the user enter '4': 1 22 333 4444 333 22 1 ...
[2 replies] Last: There have been various posts recently around here where it was asked ... (by jsmith)
Question about exceptions and classes
 
Okay my question needs to start with classes I think. It may sound like a simple question, but it is one I have never heard the answer to and is not in my books...
[3 replies] Last: That sounds ok to me. In fact, because the exception classes tend to ... (by jsmith)
how to detect whether two iterators point to the same element of a container
 
For some reason I need to store the iterators of a container and judge whether two iterators point to the same element. I found that whether two iterators point...
[3 replies] Last: No no no no no. You can compare iterators to see if they point to... (by jsmith)
something wrong with my array
 
trying to solve this problem to display my 3X3 input to - 128 #include <iostream> #include <iomanip> #include <cmath> #include <cstdlib> using namesp...
[4 replies] Last: so this is like i must input zero_zero i only can get the value but wh... (by bestnone)
C++ Graphique
 
Hello every body, i have really a serious problem with a homework: i have to create a graph, and i have the declarations in Graphique.hpp et I have to write ...
[no replies]
letter count
 
Sorry im new to c++ can some one tell me how to get this program to count the number of occurences of a letter in a string and out put that to the screen after ...
[10 replies] Last: That only sets the first element, you need to initialize all elements ... (by kbw)
by luvsom
Sorting an Array of characters
 
I am suppose to write a program using a bubble sort to sort an array of characters. I keep getting the error "error C2440: 'initializing' : cannot convert from ...
[5 replies] Last: I got it to work.....had to change it to a flagged bubble sort though.... (by luvsom)
November 2009 Pages: 1... 89101112... 25
  Archived months: [oct2009] [dec2009]

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