199,114 Archived Topics
Remove Filter ![]() | |
[php]#include <iostream> using namespace std; class Wheel { public: Wheel(int size); int getDiameter(); protected: int diameter; }; Wheel::Wheel(int size) { diameter = size; } int Wheel::getDiameter() { return diameter; } class Bike : public Wheel { public: Bike(int f, int b); int getFrontsize(); int getBacksize(); bool operator==(Bike ); private: Wheel … | |
Reference reading directly related to this post: http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/ErrorLab2/LZCompressor.html http://www.math.princeton.edu/matalive/Error/ErrorLab2/LZCompressor.html Hi all. I've just started learning the ways of compression. I decided to start with the LZ algorithm. The resource I use is: http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/index.html I understand the fundamentals of parsing the incoming text. Let's call the container that … | |
what is the header to time code isnt it; #include "pctimer.h" i keep gettin an error saying no such thing | |
Hi, I really need some help. I need to write a structure to disk in c++ builder. I have been trying now for a couple of weeks and I am now about to give up. I have tried fread,fwrite etc. fstream as well as TFileStream with no luck. I have … | |
HI!!, can anybody tell me how to create a hit counter using Javascript. The hit counter should increment a number stored in a file (on the site) each time a user visits it. For reference such Hit Counters can be added to Websites built with Microsoft Frontapage (Tools -> Web … | |
i have written a console application in c using borland c++. i want to include mouse capabilities in the program ie. run the program using the mouse just like in norton disk doctor(dos-based version). any help? :?: | |
The application I am writing involves creating a dos batch file and executing it using the 'Shell' command. The batch file is used to zip up multiple files. The zip file that is created is them emailed. :?: My problem is - creating a pause within the application so the … | |
Greeting , it will be helpful if any one can provide me with Round Robin algorithm code in c/c++ thanks in-advance | |
can any one provide me with the round robin algorithm code in c/c++ hurry up!!! | |
Hi everyone! I am trying to develop an application to communicate with a Microsoft Acces database. For doing that I import the java.sql package to use the DrvierManager class to get a connection. The problem seems to be the application doesnot find the java.sql package. I have the 1.4.2_08 version.. … | |
At my PHP: Mastery Boot Camps I'll have a segment on consulting and contracting that will contain a panel of contractors who have successful businesses. If you're a contractor making more than $100K, manage multiple clients, are good at getting contract jobs quickly, are in a long-term contract, or are … | |
Can anyone tell me why this is printing doubles out to the output file? [CODE] IndexFile.seekp(20, ios::beg); for (i = 0; i < NumOfSlots; i++) { if (RandomFile.peek() == 42) { Position = i; RandomFile.seekg(37, ios::cur); //cout << Position << " "; } else if (RandomFile.peek() != 42) { RandomFile.get(R.SSN, … | |
I write the folowing code which is taking RAM and Hard disk capacity from user by using structures and than saving it to a new file after the user complete entring data it is displaying data entered by the user by opening that file. Problm is that i want to … | |
Anyone has an idea on how they can achive the every new registration has its own subdomain? I have WildCard DNS enabled. | |
Hello again everyone. We have completed a project after a few months and a lot of help but for some reason we are still having problems. The project compiles properly without errors but the results are incorrect. Basically we are using 4 sorting algorithms in order to calculate how much … | |
Hi, here i enclosed my coding.i want the dom objects price,qty,oselect,name,sku and upc in the html body tag so that it can be submitted into another pages. here i want each and every element in each row to be collected and sent to the next place not the last element … | |
Hi, here i enclosed my coding.i want the dom objects price,qty,oselect,name,sku and upc in the html body tag so that it can be submitted into another pages. here i want each and every element in each row to be collected and sent to the next place not the last element … | |
Hi there! I have installed CuteNews without ANY problems... However... When I posted the code into my webpage for the news to display on it, it did that, but one problem... The news will NOT update itself! I added and even deleted posts, but the changes never take affect! The … | |
What is the difference between include() and require() ? | |
I have a project where I must use pointers to do a search on some accounts I've built up into a vector. My problem is whenever I try to pass the vector to a pointer I get an error. I've tried many different things but to no avail. Maybe one … | |
I have a program due and I cannot figure it out! I have read about 30 tutorials to no avail! I need to have data read into python from an input file. The data is suppossed to be info from a pretend university that only has 10 students. Once I … | |
Private Sub connect_Click() Winsock.RemoteHost = ipadd Winsock.RemotePort = 10101 Winsock.connect End Sub I'm pertty sure the problem is on line two the ipadd if thats supposed to be ipadd or if its supposed ot have something else added. | |
The page below works perfectly as intended in IE 6.0 but, it does not work in Netscape. Can someone shed some light on this and help me make this work in netscape 7.x? Thanks...... <HTML> <HEAD> <TITLE>Document Title</TITLE> <STYLE> .conts {visibility:hidden} .tab { border-top:solid thin #E0E0E0; border-right:solid thin gray; border-left:solid … | |
I need a little assistance with finding the square roots of each number entered by the user in a array. I'll copy and paste what i have so far in my function, but i get an error when i try to run the program and it would say: sqrt was … | |
Hey guys, My task is to write a perl program that will read in names/passwords from a text file and from that create user accounts and all sorts of stuff. Now I have been able to do the "stuff" and the only part giving me jip is how to overcome … | |
Hi, all. Thie following is an additional step in the program I previously mentioned [and, by the way, thanks for the responses; most helpful!] The final part of this project is to create [I believe it is called a histogram] of the grade frequency distribution. The program asks for grades … | |
I need to insert a control-break in an array after every third line. Can someone help with this? Thanks so much. -R | |
I want to change cursor position in my C++ program. As you know, C++ does not have any command to do this. By I think, one of the h files can be used for this purpose. My Bloodshed compiler has lots of "*.h" files. But I don't know how to … | |
Hi Guys, Kindly help me Solve this. I have already worked on the classes that were inherited and attached after the question is the main part of my program. I have bolded the part in the question below where I need help. Thank you so much. The question is: Make … | |
I am looking for the most basic hover over text tip javascript. I found some but were rather odd, one for example required a "transparenet image" therefore messing up the column width. Another didn't like me :) I simply want perhaps a gray border/white background/charcoal gray font color (arial 9px) … | |
ok, call me stupid, maybe i forgot my math: but if a C++ program spits out this: -bash-2.05b$ g++ markoff.cpp -bash-2.05b$ ./a.out x = 1 y = 1 z = 2 x = 1 y = 2 z = 5 x = 2 y = 5 z = 29 x … | |
Hi, I am new to ASP.net and I have inherited a web application. Now I have to change the gui and hence the whole navigational flow. I have a top banner. Then I have left side menus and then on click I want to display on the right side some … | |
I am a complete newbie in C++ programming. After a very basic introductory class I am now reading a little more advanced book and trying to teach myself and I am slowly learning. Anyway, the book mentions a method for calculating the cube root of a number but it doesn't … | |
Hello ladies and gents, I wanted to ask if this piece of code can be written differently then the way I did: [code] template <class V> void sequence3(V &a, V &b, V &c) { V w; while (a > b || b > c) { if (a > b){w = … | |
I apologize up front; I'm a VB Programmer trying to pick up C++. I have a very simple program that takes a string input from the user. How can I look at a specific character in that string? VB has the Left(), Right(), and Mid() Functions. Is there something similar … | |
i have a vector initialized without a size. vector<int> Vector1; i initialized the first 5 values via .push_back() and i am supposed to do this next: Externally initialize(using a single cin statement) the next four items to: 50 65 77 32760 This doesn't seem to work: cout << "Enter these … | |
This program is calculating and displaying the average of 3 groups of numbers in output file. Data is arranged in file so each group of numbers is preceded by number of data items in each group. It works for 2nd & 3rd group but calculation for 1st group is wrong. … | |
Hello, I am studying C++ at Uni and my coding is not very strong. More to the point I am having issues with my header taking in this string. The code works in a linear non object oriented code but as I am new to data abstraction I as mentioned … | |
Hi all, I have quite a few testimonials I would like to rotate. Each testimonial is just a block of text. As it stands, all are displayed on every page. I want only one to be displayed. [b]Currently:[/b] I have about 20 pages that all have an include of "testimonials.php". … | |
Hello, I was hoping that someone could help me with this question. We received an extra credit queston which completely bombed on. That wasnt the problem, the problem was that I still cannot explain the questions below and since this was extra credit the professor would not give us the … | |
I got this assignment to do, but i cant so it, i have tried everything i know in C++ programming and its not working. Can someone help me please. Write a Graphical User Interface program that simulates the activities of a vending machine. The program should allow for full user … | |
Well I got the password code right, I think. I have a few problems 1) it wont close properly 2) Can someone point me in the right direction to find a tutorial that teach me how to only let the user have 34 tries before it close and also to … | |
So I need to write a program that requires getting data from an input file (first name, last name, Student ID, and 4 test grades) and create an outputfil with the first and last names and ID, and then the average of the grades and the final letter grade - … | |
How can I use "cin" to allow entry of an enum type in C++? My code is as follows: enum Cards {TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN, JACK, QUEEN, KING, ACE}; Cards hand1 = ACE, hand2 = ACE; cout<<"Player#1 - Pick a card (2 - A): "; … | |
I want to check someone's ip address when they come onto my website, is there a way that I can do that using c# and asp.net? | |
Hi all, I have a C project consisting of five files as follows: main.c file1.c file1.h file2.c file2.h I have defined an array in file [B]file1.h[/B] as follows: [CODE]static struct prnc keys[MAXP];[/CODE] the array was populated in file [B]file1.c[/B] Now I need to use the contents of this array again … | |
Hey all, For sort of a final project, I want to build a program in Java (if it's possible) that works much like the GMail Notifier except I want to make it popup a notification if I receive a new email in my yahoo, hotmail, or google accounts. Does anybody … | |
I need to create a log in page for new customers, where in they provide their address in the US based on the zipcode. Essentially, if a user fills in a zip code, it should automatically populate the city and state. For some situations, I also want to create a … | |
I have made original Dani instructions in phpBB mode like format that i hope will be of use to you. Here it is: [quote]############################################################## ## Hack Title: vBulletin 3x mod_rewrite ## Author: Dani [url="http://www.daniweb.com/"]http://www.daniweb.com/[/url] ## Contributor: Gandalf [url="http://www.gandalfdir.com/"]Forums Directory[/url] - remake into phpBB mods like format ## Description: make your … | |
hi there i have some python coding which i need to convert to java can ne1 help me please email me back if you can help then i will show you the coding much apprieciated or can ne1 give me some complted java code to look at |
The End.