1,089 Topics
![]() | |
Does PHP Frameworks like CodeIgniter, helps a lot in buidling a websites?How? and the second question is Do I need to really a have depth understanding of OOP in PHP, so I can easily program in some php frameworks? and last is can a jQuery/AJAX work with the CodeIgniter?How? | |
I have to develop a Academic Automation System as College project in OOP C++. need your help in this regard so i can complete it. I already have defined the following classes, 1-CourseAdministrator 2-Student 3-Tutor 4-Course 5-CreateLogin 6-Security (For Validitaion, check for login and password) is there any meterial which … | |
Hi guys. I've worked on OOP before, and since in general 'get' functions are used to return private attributes in classes, I was thinking how I could make this test code work. [CODE=c++]#ifndef _testing_h #define _testing_h class Testing { private: char * name; public: Testing(); Testing(char*); ~Testing(); char* getName(); void … | |
can sombody give me a great example to make a connection php - mysql ( oop - best practice ) ? [ICODE]<?php /* Database Connection */ class db { private $db['host']='localhost'; private $db['user']='root'; private $db['pass']=''; private $db['name']='build'; public function connect($db['host'],$db['user'],$db['pass']) { $db['connect'] = mysql_connect($db['host'],$db['user'],$db['pass']); if (!$db['connect']) { printf("Cannot connect to … | |
Hi guys. I'm pretty new here. I was recently playing around with templates and found them to be really useful. I was wondering how I could check the data type of the variable that was passed into the function, and I heard about RTTI from my friends. I've looked around … | |
Hi all, hopefully my question is simple as I'm fairly new to OOP coding. I've found an RSS Parser on the internet (which is open source and I can adapt it to however I please yada yada). I want to hide certain variables. [CODE] <?php # RSSParser ## Using the … | |
Hi I'm just starting out with OOPin JAVA and thought i was getting the hang of it but i've been given an assignment and it's got me stumped. here is the code i have been given [code=java] public class FrogCalculator { private Frog operand1Frog; private Frog operand2Frog; private Frog unitsFrog; … | |
Hi all I'm learning OOP and I'm having a bit of trouble grasping the concepts. I'm trying to code a class that will connect to a database and have a function that will insert data into a table no matter how complex the insert is. For instance: Insert 1: INSERT … | |
[B]Please help me how to do it. Thanks![/B] A 5-star hotel has 3 room types below: - Room type A, Price 80 USD / day. - Room type B, Price 60 USD / day. - Room type C, Price 40 USD / day. Room rental is calculated by formula: Price … | |
Hi Everyone. I'm pretty new to C++ and C, but I have experience with other languages (not OOP). I'm working on a project that requires me to take a working source code in C++ and convert it run in C. Luckily the inheritance diagram isn't too bad, so theoretically, I … | |
Hi, I have created an pure OOP e-commerce web site with PHP. I want to make sure that my class files cannot be seen or downloaded by anyone. What do i do now? Other files html, css, js can be seen, no problem. My hosting company provides me a folder … | |
Hi, I remember from when I learned PHP, how easy and fun OOP was, and how to call member functions in conjuction (after eachother) on the same line, like this: [CODE=PHP] MyClass->Foo()->Bar()->Pancakes("flour etc"); [/CODE] To be able to do that, all you needed to do was make a return holding … | |
I'm new to C++ and I'd like to start correctly. But I need to know what are the best practices for code sharing, like: _ use [ICODE] int void (main) [/ICODE] instead of other statements; _ use standard libraries when possible; _ what are the naming conventions for C++? I've … | |
Hi, As i am new in OOP, i just want to ask those who are experts in OOP that can this my example be considered as OOP example? Thanks [code] dbprocess.class.php <?php class DBprocess { private $dbconn; private $db; public function __construct($host, $user, $username, $password, $database) { $this->dbconn=mysql_connect($host, $user, $username, … | |
Hi, I cannot find the solution for this example. It is to do with Static declerations. Help please. Error : "Fatal error: Non-static method ExecuteSql::executeSql() cannot be called statically, assuming $this from incompatible context " Thanks [code] <?php class DBconnection { private $host="localhost"; private $user="root"; private $username=null; private $password=null; private … | |
Hello Everybody! Am new on this forum, I apologise if am not up to the expected requesting mode. Well, my problem is that my website is set on IIS v5.1 (am not very popular with Web Development; am developper in OOP) and I must get the IP of all the … | |
I have completed an OOP course using C++ and each student has been asked to do an end term project, so that they make use of all things that was learned, like ( operator oveloading, inheritance , polymorphisms, files, templates) and every thing that can support the project. I want … | |
Hi there ! Im not liking my chances but I'm hoping someone out there can help me! A few seconds into startup i get a DOS screen saying file [B]<WINDOWS ROOT>\SYSTEM32\HAL.DLL[/B] is missing. Can I get around this or have I lost all my data forever? Pls pls help me.....!!?? … | |
I want to create a program that asks the user to enter two vector (size and direction), and calculates its addition through turning it into components (using OOP). here's what I've got so far (I don't know how to fix the errors), I'm not sure what's wrong/ to do next … | |
I just joined this site, to hopefully pick everyone's brain while learning the C++ language. I''m currently taking classes at a school I'm too ashamed to mention, and would love help while attempting to navigate through OOP (among other things). My name is Ryan (most call me Rodg) My height … | |
I am totally stuck. I have worked on this for a week. I clean up the bugs and find more. It didn't look too hard to start with. I have to write an OOP program that displays the default info and then asks users for input. I have two headers … | |
I am looking for a PHP tutorial or a script to write a small email contact form in OOP not the procedural method. I would like to use the mail server connected to my hosting services as opposed to sending it through Google. Thanks! WBR | |
Hi. I'm a programming newbie. I'm pretty comfortable with most of procedural programming and understand the basics of OOP. Do you think I should try GUI programming? Also I would like some good advice on the best GUI toolkit to use with python and a link to a good tutorial … | |
The code was written for fun, and it is by far the most complicated program I've written yet. It's also my first step from C into C++. I have some training in algorithms but almost none in coding. It is pretty long and I don't expect anyone to analyze the … | |
Hi Guys, I'm trying to write a simple game of drawing rectangles and circles in a window. I've created a different class for each shape: RectClass and CircClass. Each of these classes has it own DrawShape() function which suppose to draw the shapes in the window with given coordinates argument. … | |
hello everyone, im trying to make a theatre program and im at a dead end so im hoping for some help please. if someone can help see my problem clearer or post some sample code it will be much apperciated. the problem is i need to create a Seat class … | |
Hey Everyone! I have a question about oop. I am trying to write a MySQL class for managing my MySQL db's and calls. So far I have almost completed it, but I am missing lots of functions. These are the result functions (ie. mysql_fetch_array() or mysql_num_rows() etc.). Instead of creating … | |
hi Friends i have problam withe oop i have class : [CODE] class create { function CreateDiv($persian,$author) { $div="<div align=\"right\" dir=\"rtl\">" . "<p style=\"font: 12px Tahoma; direction: rtl; text-align: right; line-height: 20px;\">" . "test datebase" ."<font color=\"#0066FF\">$author</font> ".$persian->date('compelete')."<br>" ."</div>"; return (string) $div; } } [/CODE] and sample page [CODE] <!DOCTYPE … | |
hi i got my second assigment here for oop in c++. but i don't understand clearly. can anyone explain it to me? [QUOTE] ASSIGNMENT 2 INTRODUCTION TO CLASS [15 marks] Objective: 1.Learn how to write class which uses dynamic memory allocation 2. Learn how to invoke member function/send message to … | |
What is Broken Inheritence in OOP ? What are the reasons for it ? How can we correct such a problem ? | |
Is there object persistence in PHP 5? I ask because it seems that with all the associated memory overhead with OOP, I am wondering if there is another reason for PHP to go OOP besides maintainability. | |
all i can think i will type here and please explain the others.thank you this is just to enhance my knowledge about oop.The info i got now isn't enough... q1 Write a simple program to ask user to input five digits number. Using the input, output the five digits number … | |
Hi, I'm having trouble with using and updating graphics in a JFrame. I'll include my code below along with some classes. They're necessary for the program to work properly. The issue is that the paint method is painting over my UI. Then it won't display the graphics. I don't have … | |
I have setup a class that stores the data for my database connections. Inside the class I have several members that either set or get the variables. Inside my main I have set the value of the hostname. Now I have a second class that I am testing with called … | |
i am designing a few pages. the pages have a few main divs and that is how i am inserting the background(with css) i can render the whole background to the browser but i dont get how to nest divs inside divs with OOP. any help would be greatly apreciated! … | |
Hey everyone. My name is Jackie, I'm 24 and am new to programming. I am majoring in Computer Science and am currently taking and OOP with Java course. I have enjoyed everything so far, as it is all very interesting to learn. I only dream of mastering the skill of … | |
Hi, I have I am trying to create a program for my lecturer, who has asked me to create an application containing a number of different class that all inherit from an abstract class. This has been completed and encapsulated, however in writting the application that utilises these classes I … | |
THIS IS WHAT I HAVE DONE SO FAR (QUESTION BELOW IT) [CODE]class Customer { public: int noOfCalls; String custName; virtual Compute_Bill(); }; //define function, contructors etc by Customer::Customer() etc class Premium_Customer: public Customer { //premium specific function that inhereit from customer }; [/CODE] HERE IS THE QUESTION I need help … | |
I had this three classes: [code] Start.cs: --------- using System; using System.Windows.Forms; namespace Test { public partial class Form1 : Form { public Form1() { InitializeComponent(); } static void Main(string[] args) { Uruchom(); } public static void Uruchom() { Book written = new Book(); Book bought = new Book(); written.Author … | |
I am trying to learn some oop in java. What I am trying to do is building a binary tree to convert an ekspresion in reverse police notation to infix notation. The problem is that I have three classes, one abstract called [b]ArithmeticNode[/b] which represents a general node, a class … | |
Hi there, I'm looking for some feedback on a simple database class i've written. I'm just trying to get to grips with OOP, so any feedback would be appreciated. I do realise that PDO is available, and that this database class is really just a wrapper for mysql_* functions, but … | |
I'm just diving back into C++ after a while of being away. I've created a simple project. But its giving me these stupid errors when I've been trying to do some OOP: main.cpp [CODE=cpp] #include <iostream> using namespace std; #include "oopy.h" int main(int argc, char** argv) { Oopy awesome; cout … | |
After using MFC, I felt like throwing it away. I thought to move on to Win32 API programming (I work on Windows platform.) But then, it is all C. I dont say i dont like C, but is there any better OO alternative to MFC for Win32 platform? Or should … | |
Could someone check out the way the object are created? All the classes work independently but somewhere I think I am messing the display up when I call a new Class. I have two classes: one creates and loades a combobox and another class that creates and loads an UILoader … | |
Hi everybody, I'm used to C++ OOP principles but I've never really understood dll's very well. I'm working on a code segment as shown below. It's a dll function. What I need to know is can I compile it directly or do I need to do something special? I'm using … | |
Well the title pretty much says it all. I'm reading through a php OOP book and I'm having trouble understanding why you'd want to create an abstract class. Can anyone perhaps shed some light on this for me as I haven't found any resources that explain this well enough. | |
I have to make a project today itself on turbo c++ :- It should have OOP. Classes. and use of database i.e I/O on text files. Can anyone suggest a unique topic and I will be asking help related to the same here =) | |
ok basically what my program is about. I am to create a program that allows users to input aircraft/cargo details, add the cargo to the aircraft(up to 20), and a function to display all the cargo on that aircraft. So the main problem i am getting is with the listing … | |
Hello everybody, I'm back, started my 2nd year at Uni now and started programming in the wonder that is C++ and enjoying it tremendously. but I've hit a slight problem, not with code but with design. I'm not sure where to put the input/output, sounds weird but I'll elaborate. i … | |
Hello, I've been pulling my hair out trying to figure out how to fix this. I don't have a lot of experience with OOP, so I'm at a bit of a dead end. I am getting an error: [QUOTE]error: expected class-name before '{' token[/QUOTE] The header file is this: [CODE]#ifndef … |
The End.