Beginners - December 2009 (Page 15)

adding values returned from functions
 
I am trying to create a series of fuctions for the 4 weeks in a month that will return the average length of a workout. My problem is I don't know how to call o...
[1 reply] : int week1 = calculate_week_one(); int total = week1 + calculate_we... (by Disch)
extracting email addresses from text files
 
Im trying to figure out how to filter out emails from a form. Its working to a degree in that if the email address is staggered from a name it works and pulls...
[no replies]
by btripp
Linked List Copy Constructor troubles.
 
Hey, Im working on adding some operators to my linked list class. I did the += operator and works fine. However im attempting to make a copy construtor but i...
[5 replies] Last: good idea. I will do that. Thanks alot (by btripp)
delete a char *
 
I have a class "Meeting" with two data members, one is of type "Date" which I defined myself,the other represents a description and is defined as a char *. I...
[9 replies] Last: hm nice, didn't see that before. Thanks for the tip. (by joeriMJ)
by Jynks
Problem with user input....
 
Hi.. I ma just starting to learn programming in my spare time as a hobby kind of thing.. so I do not have a teacher.. just a few books I am reading. Anyway, ...
[2 replies] Last: ok thanks... I think i got it working now... . . . #include <iostr... (by Jynks)
indentation
 
How should this be properly idented? #include <iostream.h> #include<conio.h> void myFunction(int,int*); void myFunction_secondForm(int, int&); void mai...
[2 replies] Last: And also, conio is unreliable and poor style. See the articles for hel... (by tummychow)
American Roulette
 
Okay I'm doing a roulette assignment for my C++ class. Anyhow I'm in the process of building my menus. I went all out to include every possible bet type for the...
[1 reply] : PROTIP: If you find yourself declaring numbered variables, it's time t... (by helios)
Accessing the hardware
 
Hi, I'm new in programming and I'm intersted in accessing the hardware of my computer like the parallel port, usb, com port. Can anyone help me on ...
[13 replies] Last: @kbw: That link is the coolest thing ever. Total WIN ! :D (by kevinchkin)
What is wrong with this code.
 
Its purpose is to read the contents of p6.txt and print them on screen. However, nothing prints when compiled. If you can tell me what I'm doing wrong, I'll gre...
[5 replies] Last: I do apologize for all the questions, but can i use getline() to count... (by spyke100)
Fibonacci
 
My partner and I is assigned to tell about the Fibonacci Program. We don't really know about it. So I was wondering if I can get some basic information about i...
[5 replies] Last: Wicked easy with the use of recursion. Back in my intro classes, I go... (by brightmatter)
QT on Windows not opening cmd
 
I am running QT Creator, Ver. 2009.04, on a Windows machine and I am trying to have QT run a command line program. It is simple because I am new to C++. It op...
[3 replies] Last: I think it should be used only for the Qt part, for anything else use ... (by Bazzy)
Question
 
I dont know how to make this program a.write a program that implements the definition of the function (power), (i) is the base and (j) is the exponent power(i...
[11 replies] Last: Something tells me he need's two starting points: http://www.cplusplus... (by mcleano)
chess implementation: removing a piece from the board
 
I have an exercise where I need to implement the basics for a chess game. It's not needed to have a fully working visual chess game, but it's more an exercise ...
[2 replies] Last: Is this what you mean with a 2D array of pointers to Pions ? Pion * ... (by joeriMJ)
by btripp
Trying to make a function to put a linked list into an array
 
Hey guys. I have a final wednesday and linked lists are on the test. So I am just making up things to do with my linked list class. He said we dont have to c...
[8 replies] Last: See the insertion sort Wikipedia article. (by helios)
Reading in a choice and dividing that by distance? What's wrong with this code
 
The output should be: When a user enters 5, the time traveled is: .0045 #include <iostream> #include <iomanip> using namespace std; int main() { i...
[6 replies] Last: 2 questions: are the cases, case sensitive? What if they spell AIR ... (by ashley19)
Reading only numbers from a file
 
I have a file containing multiple lines. Numbers on each line are separated by "," Each line is in set notation using "}". The files look like: {{1,2,3},{4,5...
[1 reply] : Look at functions http://www.cplusplus.com/reference/clibrary/cstdli... (by melkiy)
First time making my own Class
 
I have to make a class called Car with the member variables yearModel make and speed My constructor has to set speed to 0 and accept the year model and make ...
[9 replies] Last: My mistake. Completely valid arguement. (by Umz)
How do you memcpy a custom class? (1,2)
 
My teacher wants me to use memcpy to copy one of three derived classes. The 3 classes differ in the number of integers they have, and they all have a char s...
[20 replies] Last: That is not at all what the prof is asking for. He wants the space fo... (by PanGalactic)
How do they work: String streams
 
Hi, I've been breaking my head over this for quite a while now and can't figure out how and even more important why this code works. this is the input fil...
[4 replies] Last: You should read to a string, create a new stringstream and read the in... (by Bazzy)
by Regine
please give me some ideas or more ideas to start this machine problem
 
PROBLEM DESCRIPTION: Write a program that will simulate an ATM machine where you can access different transactions such as deposit, withdrawal and inquiry for...
[5 replies] Last: Give me the code of Problem Description? (by george23187)
December 2009 Pages: 1... 1314151617... 23
  Archived months: [nov2009] [jan2010]

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