1,089 Topics

Member Avatar for
Member Avatar for sashaa

i have been given a project in c++ to write a program on quiz conduction in object oriented programming..... i want some help..

Member Avatar for daviddoria
0
39
Member Avatar for qingpete4

Hi My name is Peter aka Qing, I come from Uganda. That is in East Africa. I have this urge to learn alot [I]n programming but sometimes am lost in dreamng. I need some one to like mentor me or help show me the path. I have so fare been …

Member Avatar for ddanbe
0
99
Member Avatar for monmonsnow

hi guys i need help with my project. I am a beginner in Java programming,and recently I came across a project, i am having problem at the start...so i need some guide to tell me how i should do(the steps). My project required us to do a word game that …

Member Avatar for NormR1
0
261
Member Avatar for gendler.max

Hello, I have a question on how to use a class similar to the Grid Class included in the Lawerence Press textbook on C++. The question is, do I have to have the InitGrid function in every paint or no?

0
95
Member Avatar for eng hassan

HI everyone,,,i am a beginner in c++ & i have an a assignment that i cant even start & i need in advice that i can get so plzzzzzzz help,,, the assignment is about a game [B][U]The Predator‐Prey game [/U][/B]is a simple board game where a set of predators and …

Member Avatar for eng hassan
0
118
Member Avatar for mgn2683

I have an issue where my content has two different classes assigned to it: left and right. The left column is perfect, but the right column which holds my text begins at the bottom of the first column. Please look here for more: [URL="http://mgndesign.com/draft/"]http://mgndesign.com/draft/[/URL]. Feel free to look at the …

Member Avatar for mgn2683
0
128
Member Avatar for BLKelsey

Hi fellas, This week in class (2nd week), we are learning about classes. Our professor has asked us just to complete one simple class with separate files. My problem is when I go to compile, I get errors stating my variables aren't "declared in this scope." As far as I …

Member Avatar for Agni
0
4K
Member Avatar for iamcreasy

I am new new in OOP stuff.I have read the Herbert Schildt's C++ reference.But it just gave me the idea, about how it work.Not how to make it work. I am read few chapters from "Object-Oriented Programming in C++ by Robert Lafore"(old edition featuring UML 1, i guess).But it was …

Member Avatar for avarionist
0
171
Member Avatar for pratz

I have just started learning python, I am a Java programmer. I think python is more simple than java. What I wanted to ask is, where is python used? And if python does not follow the complete OOP concepts, then can it be used to design large / major applications? …

Member Avatar for snippsat
0
249
Member Avatar for b89smith

I have written two different classes that are in two different files one is LoadData.java and the other is csvReader.java both are in the same folder. In the class LoadData I try to use a public function in csvReader by calling csvReader.getData(), when I compile LoadData, which is after I …

Member Avatar for leiger
0
139
Member Avatar for stevebush

Hi, I am working on assignments that deal with Generics in java. I have a class Movie that have a String name variable. However I have to add a few more properties to Movie objects like Release year and Director name. So I created an Inventory class that uses the …

Member Avatar for JamesCherrill
0
106
Member Avatar for iamcreasy

This class when, it is not integrated with the main program, shows the following error....and I have no idea what it is trying to say.. :( :( [code] #include "character.h" Character::Character(DrawEngine *de, int s_index, float x, float y, int lives, char up_key, char down_key, char left_key, char right_key) : Sprite(de, …

Member Avatar for iamcreasy
0
161
Member Avatar for tyson.crouch

G'day, Just a simple question. Does MySQL Support Inheritance? I understand that both Oracle and PostgreSQL support Inheritance, but haven't seen anything in MySQL regarding this. Regards, TC

Member Avatar for griswolf
0
125
Member Avatar for vinsbg

pls help me with this one..everything is ok but when i add student and faculty number and then try to list them says "No added students'...:@ This is: main.cpp [code] #include <iostream> #include "Student.h" #include "Course.h" using namespace std; list<CStudent*> students; list<CCourse*> courses; CCourse* findCourse(string name) { CCourse* course = …

Member Avatar for vinsbg
0
123
Member Avatar for LloydFarrell

Hi, im still pretty new to PHP and I have just started looking into classes / functions and OOP - I have done loads of searching and watching tutorials and learning from others here on daniweb with great pleasure, I was hoping that someone could fix the problem im having …

Member Avatar for rajarajan2017
0
253
Member Avatar for zreed

I need to code a program for my friend and it has been giving me some difficulties. This needs to have two classes, one called Tester and another called Game. And the data in the Game class needs to be pulled to the tester class after the calculations are finished. …

Member Avatar for jwenting
0
295
Member Avatar for macca21

HEEEEELLLLLLP!!!! Here's what I have after hour upon hour of battling away at OOP... If anyone could fix my errors and help with a bit more of the development I'd be very grateful, I can't wrap my head around OOP despite the hours of reading and trying :( The task …

Member Avatar for snippsat
0
298
Member Avatar for xx_kandikidd_xx

Hi, I'm having trouble with my Java code. It's meant to read in from a csv file and update the elements on the GUI to reflect this e.g. as it reads in one line, images and text appear on the GUI reflecting the data. Anyway, to get the GUI to …

0
97
Member Avatar for marco64

Hello, I would like to know if you know any framework/classes for systems administration in windows/linux environment. Thanks for you replies! Bye, Marco.

0
144
Member Avatar for vivosmith

Hi I found this example on about.com . I understand most of this, but one part is giving me problems in genral. I tried classes before, and it did not go over so well. But since this is someone else code, it might be better than mine :). Thanks [CODE] …

Member Avatar for Fbody
0
105
Member Avatar for corby

hey guys/gals. i get a segmentation fault whenever the for loop in the print function is executed. any suggestions? im not sure what i did wrong. [CODE]//class member functions #include "experiment.h" #include <iostream> #include <fstream> #include <cstdlib> #include <iomanip> using namespace std; int Experiment::numberOfTests = 0; Experiment::Experiment(){} void Experiment::setExpName() { …

Member Avatar for Ancient Dragon
0
162
Member Avatar for dicksonkaranja

Guys i was wondering if any of you can suggest a book or a tutorial that i can use in object oriented PHP

Member Avatar for Virtualbase
0
83
Member Avatar for sah15

Hi, I'm supposed to create a program where I want to purchase tickets to a theater based on rows and columns of the seats. The program uses two-dimensional arrays and constructors, and is supposed to display somethine like this: "ASU Gammage Theater 1. View available seats 2. Request tickets 3. …

Member Avatar for Lerner
0
238
Member Avatar for enigmaYes

Hey guys. This is an assignment I've been given by my professor for a C++ course. The assignment description is below: [COLOR="Green"]Create a class ThreeDShape that has a default constructor and pure virtual functions double getSurfaceArea(), double getVolume() and void print(). Function getSurfaceArea() should compute and return the surface area …

Member Avatar for NathanOliver
0
246
Member Avatar for maddav

Hi, just a quick question (i hope!!), i'm working on an assignment where i need to build a user-defined library of shapes. The class structure is to have "shape" as a base-class with both 2d and 3d shapes as derived classes. I've handled this by storing them in a vector …

Member Avatar for maddav
0
628
Member Avatar for bibiki

hey there. I have been struggling with separating classes in java and figuring out what methods go in what classes. when i build my apps in one file, i do them right, but when i try to separate classes, i mess up. like for example: I have these two classes: …

Member Avatar for quuba
0
198
Member Avatar for Kevin_160

Hi Everybody, I have succeeded in parsing the values I needed from a text file and storing them in an array. The script I've posted works as a function, but now I tried to put it in a class and I can't figure out how to define the constructor. The …

Member Avatar for mrnutty
0
2K
Member Avatar for cyon

I have a bot that connects to a server. The server code is a base class and the code that processes the data from the server is in a class which inherits the base class. I have two conditions for this assignment: [LIST=1] [*]The entire code should be runnable from …

Member Avatar for cyon
0
156
Member Avatar for dragonflare

[CODE]#include <iostream.h> #include <fstream.h> #include <stdlib.h> #include <string> using namespace std; //const int MAX_SIZE = 10; //char determine_grade(int smarks); class student{ public: student(); //constructor ~student(); //destructor //char grade; //set values void set_mark(int); void set_id(string); void print_students_records(student, int); //get values int get_mark(); string get_id(); private: int mark; string id; }; //void …

Member Avatar for NathanOliver
0
167
Member Avatar for vivosmith

[code=C++]#include (iostream.hpp) class Stocks { public: Stocks( int price); ~Stocks(); int get_price() const {return pps;} int set_price() const {pps;} int the_price_is (int pps); int pps; } int main() { Stocks AMX (35) cout << " Hello, please enter a symbol.\n"; if cin>> AMX; cin.ignore; cin.get; AMX.the_price_is cout<<" 35.\n"; return 0; …

Member Avatar for Fbody
0
118
Member Avatar for sah15

I'm having troubles with a code for a program (involving classes) where I am supposed to input the three sides of a triangle and the program determines whether the triangle is a right triangle, equilateral, isosceles, and scalene, etc. I have only one error preventing me from compiling my program, …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for statutoryape

Hi all, I have four textboxes. I have a ContextMenuStrip that I want to apply to each of them. My dilemma is that one of the options in the CMS uses the CheckOnClick property, and when I apply the same CMS to all four textboxes when that CoC property is …

0
55
Member Avatar for myluvstefan

Hi, I've spent a lot of time on this program and I'm stuck. My assignment is to prompt for two input strings. Print out each string Concatenate string1 and string2 and store the concatenated string into string3 without changing what's stored in string1 or string2. print out the concatenated string. …

Member Avatar for mattjbond
0
355
Member Avatar for chaos123456

Hi all [CODE]import java.io.*; public class POManager { private static String posFname = "C:/ITM200/OOP-Advanced-Topics/src/po.txt"; private static String taxposFname = "C:/ITM200/OOP-Advanced-Topics/src/tax.txt"; public static void main(String [] args) throws IOException { PO[] pos = readPOFile(); writePOTaxFile(pos); } public static PO[] readPOFile() throws IOException { BufferedReader in = new BufferedReader(new FileReader(posFname)); in.readLine(); String …

Member Avatar for chaos123456
0
634
Member Avatar for melissa2185

What I need to do is using classes, design an online address book to keep track of the names, address, phone numbers, and birthdays of family members. The program should be able to handle a maximum of 500 entries. a. Define the class Address that can store a street address, …

Member Avatar for Ezzaral
2
261
Member Avatar for catcit

Hello! I am in the 11th grade and I have started with one of my colleagues to work on a file compression program based on Huffman coding. I have previously worked with python (a program that handles some .xls files) but this project is more complicated so I shall need …

Member Avatar for jcao219
0
150
Member Avatar for corby

hi in my drive file this is what my constructor looks like. im passing an array to it the constructor so that i can assign it to set[num]. what i want to know is what would this look like in the header file? drive-file: [CODE]IntegerSet::IntegerSet( int a[]) { for ( …

Member Avatar for Sodabread
0
209
Member Avatar for yapkm01

I have a Computer Science degree (long2 time ago) .. I do know Java OOP but i am now trying to pick up C++. I do have C and of course data structure using C or pascal. I have started reading Bjarne Stroustrup book (The C++ Programming Language - Special …

Member Avatar for mattjbond
0
159
Member Avatar for gnarlyskim

I'm working on a project for my first use of classes and OOP. I've read all our slides (only provided examples though) and two tutorials on classes, but I confused about a few things. I'll show first the assignment then I'll post my specific questions after. [QUOTE]You will need to …

Member Avatar for gnarlyskim
0
141
Member Avatar for jk8204

I need to design a class to represent an oven control unit containing: - Three constants (COOK, BOIL, SELF_CLEANING) with values of 1, 2, & 3. - Boolean value 'on' to represent oven is on or off - Int value for cooking temp, actual temp, and cook time (in min) …

Member Avatar for Katana24
0
123
Member Avatar for musikluver4

The code below is the file for the constructor method and the get methods [code] //Date: 3/18/2010 public class Taxpayer { private int socSec; private double yearlyGross; public Taxpayer(int taxPayer, double income) { socSec = taxPayer; yearlyGross = income; } public int getSocSec() { return socSec; } public double getYearlyGross() …

Member Avatar for javaAddict
0
178
Member Avatar for FlippA

Hi all, I have a list of Classes and I want to sort the list of Class by one of the Attributes held within the Classes does anyone know a easy way of doing this. Kind Regards FlippA

Member Avatar for FlippA
0
152
Member Avatar for yasir iqbal

How to use delay function in turtle class in java,oop when drawing an object

Member Avatar for stultuske
0
31
Member Avatar for ceyesuma

If I run my program. a GUI shows. clicking the combox. calls a series of classes that produce what text needs to be in the textfields so one of the classes calls fillSetters which is in a class that extends the GUI so "this" should be an instance of the …

Member Avatar for ceyesuma
0
76
Member Avatar for Compy

So, I'm still a beginner at python and OOP in general. But I had a question about the order of operations. Basically what I have is a module that contains a class that will reset all self variables for the object and give the object a card. The script I'm …

Member Avatar for Compy
0
147
Member Avatar for DifficultUsrnme

Hello people, I'm completely new to Python, and I mean new. I've had some experience with programming in Java and C++. Although, the truth remains that I haven't had any experiments with GUI. But that I will do.... Also, now the time for the doubts, 1.Is Python entirely OOP? 2.If, …

Member Avatar for DifficultUsrnme
0
167
Member Avatar for jonyb222

Good evening Daniweb, I have another idiotic problem which comes from making an arrival subclass out of Event. I have a few other subclasses of Event and they aren't giving me any trouble. I have tried to copy/paste/rewrite to eliminate any stupid typos. Arrival.h:7: error: expected class-name before ‘{’ token …

Member Avatar for jonyb222
0
558
Member Avatar for cog_bn

Hi, I've got a problem with a program that boils down to strange behavior by the vector container class. It seems to not want to call constructors enough but calls destructors too many times: [CODE] #include <vector> #include <iostream> using std::cout; int constructor_count=1,destructor_count=1; class obj{public: obj(){ cout<<"C: "<<constructor_count++<<'\n'; } ~obj(){ …

Member Avatar for vijayan121
0
637
Member Avatar for prockaz

Program not running I'm not sure of he problem [code]//Employee.h #ifndef CLASS_H #define CLASS_H class Employee { protected : char *firstName; char *lastName; public: Employee (); Employee ( char, char ); //accessors //retrieve const char *setfirstName (char); const char *setlastName (char); //mutators //return const char *getfirstName (char); const char *getlastName …

Member Avatar for thomas_naveen
0
307
Member Avatar for nukes88

Hi, i have a problem, i am using a library given by my university to create a game, these are my classes and cpp files, and i am getting this error: error C2512: 'Board' : no appropriate default constructor available, pls help. [code] class Board { protected: GWindow &Gwin; int …

Member Avatar for jonsca
0
170

The End.