126 Posted Topics

Member Avatar for Phil++

If you were asked to describe the techniques to C++ would you talk about like, Inheritence, Re-use etc or something else? I don't understand :( Help please!

Member Avatar for mrnutty
0
91
Member Avatar for Phil++

Hey, I need to create some pseudo code for a class and I dunno if I've done it right or not. Any help? [code] Begin class Employee Initialise empty constructor Employee Initialise constructor Employee with parameters Define prototype for method getID(as integer) Define prototype for method getFirstName(as char array) Define …

Member Avatar for mrnutty
0
152
Member Avatar for Phil++

Hey there, please could you tell me if the CRC cards that I've created for my classes are alright please? There are 4 classes: Employee Manager Game Platform Manager inherits from Employee Game assocates with Platform Employee + Game are super classes Thanks :) P.S please find document attactched.

0
47
Member Avatar for Phil++

Hey, I'm applying to University to study Computer science and need your opinion on my personal statement: [I]From an early age I have always been extremely interested in computing. From playing games, doing School work and discovering the inner workings of computers and what else they could do. I remember …

Member Avatar for BestJewSinceJC
0
164
Member Avatar for Phil++

Hey, I'm trying to put all the objects of my class into an array so it will be easier to display.. It doesn't work though! Here is the code: [CODE] #include <cstdlib> #include <iostream> #include "manager.h" #include <windows.h> using namespace std; void displayManagers(); int main(int argc, char *argv[]) { displayManagers(); …

Member Avatar for Grn Xtrm
0
199
Member Avatar for Phil++

Hey there, I'm wondering if it is possible to read a PHP file (on the web) through C++? For example, I have a system that allows people to enter some information online (stored in a database) I then want that to be displayed through a console application. Is this thing …

Member Avatar for Phil++
0
78
Member Avatar for Phil++

That I can get the street name from a post code in PHP? For example, someone enters their post code and it comes up with the street name rather than them having to type the whole thing out? Please help

Member Avatar for almostbob
0
154
Member Avatar for Phil++

Hey there, wonder if you can help me.. I have three classes: 1. Person 2. Accounts 3. Purchases (Accounts and Purchases both inherit from Person) You don't need an account to make a purchase but if you do you'll enter your: name, address etc.. The problem I'm having is association. …

Member Avatar for VernonDozier
0
114
Member Avatar for Phil++

Hey, I've created this class, it compiles OK but when I go to use the class it fails. It comes up with a pop-up saying something like 'Unexpected Error' 'Class' [code] class Person { public: Person(); Person(char theName[], float thePay, int theHours, bool Isworker); char* getName(); float getPay(); int getDepartment(); …

Member Avatar for pecet
0
59
Member Avatar for Phil++

Right, you're going to think I'm crazy but is Association like "Has is" For example: I have 2 classes, Teacher and Classroom, to create association would be: Teacher has a Classroom? Thanks

Member Avatar for boblied
0
153
Member Avatar for adam20091

Please at least make a start with the program, and someone will assist you. Asking someone to do your work isn't going to help you.

Member Avatar for zohal
-1
107
Member Avatar for Phil++

Hey, I need to create a search engine that searchs through a database but the wild card doesn't work for me: [code] <?php include ('header.php'); $s = $_POST['search_term']; $by = $_POST['by']; if(!$s && $by) // Check that the details are entered correctly { echo '<p>You have not entered the required …

Member Avatar for liamfriel
0
193
Member Avatar for narmeen
Member Avatar for new programer
Member Avatar for VernonDozier
0
171
Member Avatar for james16

Don't rush things but on the other hand set yourself goals (As long as they're manageable) Obviously, saying [I]I'll develop a operating system that will beat windows 7 within 3 months[/I] is a little bit too crazy.. Try learn the concepts of the language, that's all C++ is about. Any …

Member Avatar for William Hemsworth
0
99
Member Avatar for nevets04

It really depends on what you want to do, software development, web development etc.. I know, that it isn't "healthy" to think about what you will do in 10-20 years time as a job. A lot of software developing jobs now are not associated with coding more on designing because …

Member Avatar for hawash
0
198
Member Avatar for bui520

[QUOTE=bui520;1024714]# include <iostream> using namespace std; int main() { Any can help me? give me some ideas? and guide me . Thank You[/QUOTE] This is not an adequate effort. I'm sorry but your place of study wouldn't have sent you away with this kind of assignment only teaching you half-done …

Member Avatar for mrnutty
-1
134
Member Avatar for khitab12

I don't know what the question is, I'm guessing you want someone to create the program for you.. If this is the case, you'll find it pretty hard to find someone who actually will. But some advice: [QUOTE] 1) Insert the record of new employee 2) Delete the record of …

Member Avatar for Phil++
-2
108
Member Avatar for raigs
Member Avatar for kenji
0
84
Member Avatar for Kimmelivim
Member Avatar for TechComm

Hey (I usually get shouted at for giving code) But wouldn't you just put it in a cout statement? For example: [code] string code; code = "// the code"; cout << code; [/code] I think that's what you mean. Sorry if this is no help to you.

Member Avatar for TechComm
0
494
Member Avatar for Phil++

Hey, I have to create class diagrams for each of class that I have created. I have currently create 4.. Please could you have a look at the example class diagram and tell me if it looks alright or have I done it completely wrong? Thanks for any help.

Member Avatar for Phil++
-1
83
Member Avatar for Phil++

Hey, I'm currently learning about classes and I am wondering how to implement a sub-class into a class. I have a class atm called "Person" but I want to create a sub-class called administrators. So would it be: [code] Class person { public: // class methods // class methods private: …

Member Avatar for dkalita
0
149
Member Avatar for geg13

[code] #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { system("cls"); //int Object; why are you declaring Object twice? string Object; cout << "Enter the object you wish to create: "; cin >> Object; cout << "Initializing \" << Object << "\" << endl; cout << "Initailization …

Member Avatar for Phil++
0
109
Member Avatar for zemly

[code] #include <iostream.h> #include <windows.h> char customer_name[255]; char description; void output(char customer_name, char movie_name, char nights, char output); int main() { char movie_name[255]; const int regular = 40; const int children = 30; const int english = 50; const int new = 100; int nights; int total; cout << "Please …

Member Avatar for mikiurban
-4
450
Member Avatar for Phil++

This might seem really, really cheeky (shout at me if you want) but if anyone has the time and wouldn't mind reading through my assignment, telling me if the information looks OK (it's only for a pass so not much detail is required) I'd be more than grateful. Thanks :) …

Member Avatar for Ancient Dragon
-1
121
Member Avatar for edwar

I'm not a C programmer but why are you declaring a function inside your main? For example: [code] void number() { // function content } int main() { number(); } [/code] Not: [code] int main() { void number() { // function content } } [/code]

Member Avatar for Ancient Dragon
0
93
Member Avatar for Phil++

Hello, I'm wonder what static references are. Are they like: [code] static int number = 0; [/code] I'm really confused. Thanks for any help.

Member Avatar for Phil++
0
150
Member Avatar for CppBuilder2006

Right, this might be really stupid but do you mean like exception as in [code] try { // code //code if(expression1 == expression2) throw Exception("Errrror"); } catch (Exception e){ cout << e.msg; } catch(...) { cout << "Undefined Error"; } [/code] I'm really stupid :P

Member Avatar for Nick Evan
0
122
Member Avatar for infern0

[code] #include <iostream> #include <string> using namespace std; int main () { char sign; string input; int total=0; // No need for a string, is there? cout << "Current total is 0" << endl; do { cout << "Enter an operation: + - * / (or enter X to exit):"; …

Member Avatar for Phil++
0
89
Member Avatar for Phil++

Hey, I'm creating a kind of database for a College project that stores values in a txt file. The thing is, it's currently set to "values.txt" and everytime the program runs, it over-writes it. Basically what I want it to do is ask create a .txt file depending on the …

Member Avatar for Ancient Dragon
0
102
Member Avatar for mayanktalwar

Couldn't you just use string? [code] using namespace std; int main() { string variable; cout << "Enter some information: "; cin >> variable; } [/code]

Member Avatar for mrnutty
0
115
Member Avatar for hustler#27
Member Avatar for just_me

Might be wrong but here's a suggestion: [code] $q= "select * from supplier_report order by report_value desc"; $result=mysql_query($q); $rank = 0; $points = 0; $rankIncrement = 1; $user=mysql_fetch_array($result); if ($user['report_value'] == $points) { $rankIncrement++; } else { $rank += $rankIncrement; $rankIncrement = 1; } echo "$rank"; echo "<br>{$user['report_value']}</br>"; [/code]

Member Avatar for just_me
0
98
Member Avatar for dangutdavid

First off, please put your code inside [b]tags[/b] -- It is in the rules!!!!!! [code] #include <iostream> #include <string> int main() { int p; A=0; int j; int R; int D; int I; int A; int M; int P; int j; cout << "enter cost of stereo purchase \n"; cin …

Member Avatar for csurfer
-2
92
Member Avatar for Phil++

Ok, so I'm working on my school project and I have a class that stores the Customers information, in the main file it then asks for the customers ID number and then checks to see if the value is true or false from the criteria entered. However, it is just …

Member Avatar for VernonDozier
0
109
Member Avatar for sumantbang

-- set height AS float -- set weight AS float 1. Ask the user to input their weight 2. Ask the user to input their height 3. Calculate the results (weight/(height*2) 4. Display the results :) If you make an effort with your code and are still stuck, someone will …

Member Avatar for Phil++
-1
53
Member Avatar for Phil++

Anyone know a decent one for Mac? I use Dev cpp atm at college but I'm a mac user at home and have no way of compiling the my projects. Any suggestions would be grateful, thanks

Member Avatar for jbennet
0
61
Member Avatar for sgour03

Or ask your tutor? I'm sure they must have included a specification, pretty dumb if they haven't :)

Member Avatar for vmanes
0
217
Member Avatar for Phil++

Right, so I'm trying to create like a login system and my overall goal is to do it in classes but for the meantime, I won't. So this is my main file: [code] #include <cstdlib> #include <iostream> #include "functions.h" using namespace std; void checkDetails(string user, string pass); string usernames[10]; string …

Member Avatar for vmanes
0
154
Member Avatar for shashanderson

Not only have you posted this in another thread, you have yet again ignored the fact you need to put your code in tags.

Member Avatar for Phil++
-1
155
Member Avatar for shashanderson

[code] #include <iostream> #include <fstream> #include <string> #include <cstdlib> // for exit(1); using namespace std; void Login(); int main() { Login(); return 0; } void Login() { char login_un[50], login_pw[50], username[50], password[50]; int c; ifstream uin("user.txt"); ifstream pin("pass.txt"); cout<<"Main\n\n" <<"(1) Login\n" <<"(2) Quit\n"; cin>> c; if (c==1) { uin.getline(username, 50); …

Member Avatar for Phil++
-5
129
Member Avatar for web3

The way I'd do it, allow someone to upload to a directory "Images/" and then put the link into a PHP script.. For example: [code] $query = "INSERT INTO images (user, link) VALUES ('Phil++', 'http://www.yoursite.com/images/image-name.png')"; [/code] And then to display the image would be: [code] $query = "SELECT user, link …

Member Avatar for Atli
0
106
Member Avatar for web3
Member Avatar for clue.less

[code] #include <iostream> using namespace std; int main() { int side[255]; cout << "Enter a number: "; cin >> side; for (int i = 0; i < side; i++) { int j = 0; while (j <= i) { j++; cout << '#'; } cout << "\n"; } } [/code] …

Member Avatar for Phil++
1
99
Member Avatar for Phil++

Hey, I'm working on a College project that means you have to re-do the database each time you work on your assignment. So, what I'm hoping to create is a file called "sql_connect.php" which will check if the table is there, if not.. It will run the function that creates …

Member Avatar for forzadraco
0
124
Member Avatar for hopeful man

I honestly don't know what you've done here :S anyway, I don't think we can [B]do[/B] flow charts on a forum o.O

Member Avatar for Phil++
0
94
Member Avatar for froggy1976

shashanderson - Are you asking for the project to be developed for you in someone elses thread that have actually needs help and not someone who wants their work to be done for them? :) Atleast make your own thread to ask

Member Avatar for shashanderson
0
1K
Member Avatar for Phil++

Hey, what I'm trying to do is create a mysql_connection script that includes a exception handling statement that trys to connect to the database and the table, if one isn't created it goes to a file and the database information is stored there. <?php // this file contains the database …

0
60
Member Avatar for frn

[code] int numbers[5]; for(int i=0; (i<5); i++) { cout << "Please enter number: " << i << endl; cin >> numbers[i]; } [/code] There's a start :) Pay more attention in class (if this is for homework) good luck

Member Avatar for Phil++
0
79

The End.