Search Results

Showing results 1 to 20 of 20
Search took 0.01 seconds.
Search: Posts Made By: blcase
Forum: C++ Apr 28th, 2008
Replies: 2
Views: 397
Posted By blcase
bool fun1() {if (root) return doFun1(root); else return false;}

bool doFun1(Node *ptr){
if(ptr->left) doFun1(ptr->left);
if(ptr->right) doFun1(ptr->right);...
Forum: C++ Mar 31st, 2008
Replies: 1
Views: 527
Posted By blcase
Hey,
i dont need any specific help but i was wondering if anyone could help me generate an idea for my project. basically i have to use queues, deques, and stacks in a programmable way. The...
Forum: C++ Feb 28th, 2008
Replies: 3
Views: 1,056
Posted By blcase
ok exploring the STL <set> if you entered the values say 1 to 1000 in order would it auto balance?....i thought no but then a friend of mine told me about this "red and black" tree and if i test the...
Forum: C++ Feb 9th, 2008
Replies: 5
Views: 1,776
Posted By blcase
i'm stuck could anyone help me start?
Forum: C++ Feb 9th, 2008
Replies: 5
Views: 1,776
Posted By blcase
1>c:\users\brandon\documents\visual studio 2008\projects\project two\project two\collect.cpp(29) : error C2451: conditional expression of type 'Id' is illegal

at:
if(c.id[i]=b){

also i edited...
Forum: C++ Feb 9th, 2008
Replies: 5
Views: 1,776
Posted By blcase
i am trying to overload subtraction between two separate classes. Class Id is basically several strings such as the information of a voter database. Class Collect would be the collection of several...
Forum: C++ Feb 8th, 2008
Replies: 14
Views: 1,495
Posted By blcase
its a progressive project it used to be as you said but now i have been asked to overload the operator and i feel as if i have searched everywhere and am just stuck
Forum: C++ Feb 8th, 2008
Replies: 14
Views: 1,495
Posted By blcase
Forum: C++ Feb 8th, 2008
Replies: 14
Views: 1,495
Posted By blcase
i didn't have the complete program loaded and i had it split between 2 posts....the full code is loaded in the post before the deleted post
Forum: C++ Feb 8th, 2008
Replies: 14
Views: 1,495
Posted By blcase
Forum: C++ Feb 8th, 2008
Replies: 14
Views: 1,495
Posted By blcase
#include <iostream>
#include <string>
using namespace std;

#ifndef MOVIE
#define MOVIE

class Movie {
private:
string director, title, genre, rating, release;//private part of class
Forum: C++ Feb 8th, 2008
Replies: 14
Views: 1,495
Posted By blcase
c1+m1;c1+m2;c1+m3; (etc)
Forum: C++ Feb 7th, 2008
Replies: 14
Views: 1,495
Posted By blcase
I am trying to overload the + and - operator for my class Collect

class Collect is an array of movies (class Movie) so i need to add a movie to the array and subtract a movie from the array.
...
Forum: C++ Feb 7th, 2008
Replies: 1
Views: 434
Posted By blcase
#include <iostream>
#include <string>
#include "Movie.h"
#include "Collect.h"
using namespace std;

int main() {
Collect c1;
c1.setTitle("BestofBest");
Movie m1, m2, m3("John Ford",...
Forum: C++ Jan 24th, 2008
Replies: 13
Views: 2,982
Posted By blcase
yea i have that i just forgot to type it....i paraphrased and just forgot to type it in

like i said the program all compiles correctly it just gives me a warning about the default constructor and...
Forum: C++ Jan 24th, 2008
Replies: 13
Views: 2,982
Posted By blcase
class Movie{
private:
string director,title,genre;
public:
Movie(){
director="";title="";genre="";}

int main(){
Movie a();}
Forum: C++ Jan 22nd, 2008
Replies: 5
Views: 1,795
Posted By blcase
string Movie::show(){
string s1;
s1=getTitle();
return s1;}
int Movie::showtime(){
int time1;
time1=getLength()/60;
return time1;}
int Movie::showtimem(){
int time2;
Forum: C++ Jan 22nd, 2008
Replies: 5
Views: 1,795
Posted By blcase
thank you very much i knew i was just missing something...its been 2 years since i have had c++
Forum: C++ Jan 22nd, 2008
Replies: 5
Views: 1,795
Posted By blcase
also i know all my definitions are outside of the class it was a requirement
Forum: C++ Jan 22nd, 2008
Replies: 5
Views: 1,795
Posted By blcase
#include <iostream>
#include <string>
using namespace std;

class Movie {
private:
string director, title, genre, cast, rating, release;
int length;
public:
Movie(){
Showing results 1 to 20 of 20

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC