126 Posted Topics
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! | |
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 … | |
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. | |
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 … | |
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(); … | |
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 … | |
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 | |
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. … | |
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(); … | |
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 | |
Re: 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. | |
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 … | |
Re: Try Lua, or there is a way to do them in console using for loops. | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: comment it? [code] // line of code [/code] or have I missed the point? :P | |
Re: 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. | |
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. | |
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: … | |
Re: [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 … | |
Re: [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 … | |
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 :) … | |
Re: 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] | |
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. | |
Re: 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 | |
Re: [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):"; … | |
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 … | |
Re: Couldn't you just use string? [code] using namespace std; int main() { string variable; cout << "Enter some information: "; cin >> variable; } [/code] | |
Re: 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] | |
Re: 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 … | |
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 … | |
Re: -- 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 … | |
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 | |
Re: Or ask your tutor? I'm sure they must have included a specification, pretty dumb if they haven't :) | |
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 … | |
Re: Not only have you posted this in another thread, you have yet again ignored the fact you need to put your code in tags. | |
Re: [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); … | |
Re: 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 … | |
Re: [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] … | |
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 … | |
Re: 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 | |
Re: 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 | |
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 … | |
Re: [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 |
The End.