General C++ Programming - December 2010 (Page 15)

Program Defined Value Returning Function
 
I need to remove both calculation functions from the code below and assign both to a program-defined value-returning function named getHypotenuse. #include...
[4 replies] Last: Thanks again! This code works now, do you see anything else wrong wit... (by scottie7580)
Array matching
 
I am making a program.
[9 replies] Last: I'm not sure what the error means, but there are a couple things wrong... (by Browni3141)
How to implement a smart class convert?
 
Hello all :P I started developing the regular "needs" I had with .NET, like split and path classes. I am now working on a "text" class to do all stuff like: ...
[12 replies] Last: Flame war commenced...lol xD Just for starters, are we talking of c... (by bergerkiller)
what is the best solution to keep legacy support
 
Greetings, Let me ask some advice I had to upgrade our test software when we built new systems because the DAQ hardware is obsololete. So far I have crea...
[1 reply] : First of all, congratulations to you for even planning this out! So m... (by kooth)
by mppk
else statement to correct filename
 
#include <stdlib.h> #include <stdio.h> #include <iostream> #include <string> #include <fstream> /* Mppk Date 10/12/2010 ...
[1 reply] : You have a common mistake in your if statement. One way to code it is... (by kooth)
Boost::Thread library question
 
Hi I'm trying to compile a simple test program to try and get boost::thread up and running. Unfortunately i'm getting the following errors: undefined referen...
[no replies]
create file Excel
 
Hi I would like to know how to create a file in Excel fomat, but not in. Csv, why not have as personalizing example: color, alignment, etc.. I found somethi...
[3 replies] Last: Don't try to code it from spec. You simply wouldn't believe how diffi... (by kbw)
Stuck on a problem
 
Good morning Create a program that requires the user to enter 10 student id numbers and the grade they received in a course. The program should then conver...
[1 reply] : http://www.cplusplus.com/articles/how_to_ask/ (by Null)
by adn258
Writing An Image Within C++?
 
So here is what I am trying to do and am curious about. I have been doing the text tutorials on this site using filestream and what not to read and write .txt ...
[2 replies] Last: In the same way that fstream makes it easy to use files, an image libr... (by kbw)
DVD Rental System
 
#include<iostream.h> #include<conio.h> #include<stdio.h> #include<dos.h> #include<string.h> #include<windows.h> float cash; typedef struct { cha...
[2 replies] Last: My bad kbw. (by FrustratedSE)
by migo07
Linked List with filestream
 
Write individual declaration and open statements that link the following external data file names to their corresponding internal object names. External Name ...
[no replies]
Inheritance Question...
 
This will be an easy one. How can I access a base class public method from a derived class method. I don't know why I'm having trouble with this. Here is som...
[3 replies] Last: Thanks to both of you. All worked out! (by NickPaul)
Counting charsin my 2d Array
 
I wrote a program like the game of life and i go through several generations. At the end of my program I want to count the number of * in the last generation(...
[no replies]
by kotoro
Need to reorganize data files into spreadsheet output
 
I much prefer c++ to scripting languages like perl/python. I have to do some bioinformatics work as part of my biomedical phd training in graduate school (la...
[7 replies] Last: Solution worked like a charm, with the caveat that it has dependencies... (by kotoro)
recursion binary search
 
I had to change this from a binary search to recursive binary search. I had the binary up and going fine. What I have(had) is to search out 45. The list is th...
[7 replies] Last: No problem, here's the complete code i came up with, try it and it sho... (by slicedpan)
Trying to read strings, separate them and store into vector
 
I am trying to read in a file, separate the file and store strings to different vectors. It seems like my code is alright, but i keep getting so many errors. St...
[2 replies] Last: i was trying to declare Movieline to be the first element in the MM ve... (by appleguy)
by MCN29
Vet Clinic Program??
 
I'm creating a program that will allow a receptionist at a veterinary clinic that services only dogs and cats to calculate the total bill for a customer. The pr...
[1 reply] : while (catChoice > 0 && catChoice < 4){ //... if (catChoice == 4)... (by ne555)
>> operator overloading error ambiguous
 
Hello, This is my operator overloading : istream& operator>>(istream & in, vector<int> & final) { string a; int aa; int num; in>>a; for (int i...
[4 replies] Last: Found the mistake. Some stupid typo... Thanks, Cheers (by kasmador)
Printing
 
I would like to know how to print a result or any type of output to an actual printer. Thank you
[no replies]
ATOI
 
I keep getting the error:error C2664: 'atoi' : cannot convert parameter 1 from 'char' to 'const char *' int main () { int totalChar = 0; int file...
[7 replies] Last: That wouldn't work, because &cTemp wouldn't be NULL-terminated. (by Kiana)
December 2010 Pages: 1... 1314151617... 24
  Archived months: [nov2010] [jan2011]

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