199,114 Archived Topics
Remove Filter ![]() | |
Hello, everyone. I need help with a bank account class. I was supposed to create a class called Account which houses an attribute called balance that is protected and returns a double data type. There are some other things required of me which have been completed in the coded below. … | |
Okay, so i have an idea...that looks like it should work. I'm supposed to be able to multiply for example: 1234567812345678912345678*1234562345673456. My idea was to put each number into a string, and then make a matrix to store the values of each digit multiplied by each digit... i'll put an … ![]() | |
Hello all I am beginner in C++ and i have some questions In many languages there are included libraries for many uses such as libraries for downloading files / uploading files using ftp connection ...etc but in C++ i cant find these libraries my question ....... must I use libraries … | |
hi everybody, i'm going to set the procedure for OnTimer event runtime but i don't know how... i've written the following (WRONG) program, can someone help me? var Timer1: TTimer; procedure PROC(Sender: TObject); begin .. end; begin Timer1.Create(Timer1) ; Timer1.Interval := 2000; Timer1.OnTimer := PROC; end; | |
Hey, could anybody lend me dijkstra's algorithm in pascal? (commented please). I have searched for it on Internet and I haven't find it. Thanks. | |
Hello, I have a page consisting of two frames. The top frame holds instructions, the bottom frame holds a form. I need the top frame to disappear after the form is submitted. Could someone kindly tell me how I can do this? Note: The frames are parts of the requirements. … | |
How do I set the session on a page, so that if I were to type the direct link for the page into the address bar, it doesn't display, instead the user would be redirected to the homepage or login page? | |
Hi, I have the following class and main method: [code=cplusplus] class Employee { vector<string> v; string name; int i; public: Employee(){} Employee(string &n): name(n), i(0){} void read(vector<string *> &vec) { string n; for(int i = 0; i !=3; i++) { cin>>n; Employee e(n); vec.push_back(&n); } } }; int main() { … | |
Hi I am wondering about the syntax to convert the value in address.sin_addr.s_addr into readable ip value (ie reverse of inet_addr?). btw I do know we can just use address.sin_addr to get the ip, but i need to use s_addr to pass ip infos between clients thanks in advance | |
Hello everyone, I realise this may seem like a log winded way of doing it but I need to insert data from a JSP into a database, here is the set up. I have an HTML form, that passes it's data to a JSP. The JSP acts as a bridge … | |
Can anyone help me how to populate dropdown box dynamically. i have two dropdownboxes based on the value which i select in first dropdown the corresponding values in second drop down box has to come. i have to get both dropdown values from database. the first dropdown contains Products assume … | |
Hi all, I wonder if it is possible that someone can drop me a code or something on this particular problem which I am currently dealing with. in_date out_date 18/03 30/04 20/04 So how am i supposed to pair up 30/04 and 20/04 as 1 pair and show it up … | |
if i use the query [CODE]SELECT iditem, CONVERT(char(20), dt, 105) FROM planeamento[/CODE] it works just fine.. but in this case the dt (date) field is not recognised.. [CODE]SELECT planeamento.iditem, idmodelo, item_planeamento.idproduto, item_planeamento.idpele, cor, ordemfabrico, qtd, CONVERT(char(20), dt, 105) FROM produto INNER JOIN item_planeamento ON produto.idproduto = item_planeamento.idproduto INNER JOIN planeamento … | |
Help - I am having the following errors repeatedly so I know it is a consistent mistake I am making but I just can’t see what it is. I already fixed many other errors and now it’s just this.....so close...... :confused: My errors are the following. I did not put … | |
I am confused as to display information from my contact table depending on who logged in. also, should I change my admin table name to users? Admin Table [code] `id` int(11) NOT NULL auto_increment primary key `username` varchar(40) default NULL, `password` varchar(40) default NULL, `level` char(1) default NULL, `email` varchar(255) … | |
Hi I have the source of a webpage that tells the weather and i want to extract the data and my only hurdle left to jump is to remove all the formatting HTML marks inside and including the <> bracket. I have the web page source stored as a string … | |
What are the major differences between C and C++ programming languages?? | |
Hello, I have been self-teaching myself Java for the past few weeks and I would like a little help. Without an instructor or ample code snippets that are readable to me, I've been finding it difficult to know if my coding lacks the polish and efficiency necessary. Here is the … | |
I am working on code to calculate the factorial using below function: int factorial (int num) { if (num==1) return 1; return factorial(num-1)*num; // recursive call } And I need to calculate the numbers from 1 to 255… The problem occurs when it reaches number 35 and above, it starts … | |
Hello All, first. I would like to say this is first time in forums, so if I show bad manners/form, please let me know. I do learn quickly! I have created a small utility that removes software from the system. At the present time, the app will download and install … | |
Just started practicing classes and boom my first try cant get it to work ... maybe im not seeing something ... can someone look and point out the thing that i might have misssed .. ?any help would be appreciated .. thanx here's the code : index.php <? include "page.class.php"; … | |
I have a code like below that when pressing a button, panel1 and labelText1 should be seen. Then I will put the process to "Sleep". After this, labelText1 should be emty ("") and labelText2 should write "TextMessage2": Then I wil put the process to "Sleep" again. And last put panel1 … | |
hi , i have this problem, which i cannot figure it out. This problem has been day now,and reached does not seem to help. How do u pass an integer value form one class to the other class. Here my code. The integer that summited by the user which is … | |
First time posting, this seems like a wonderful community. Okay, so I'm new to C++ (mostly worked with java) and I'm trying to write a program that will read in a plain text file (a short paragraph) and take and place each word in the text file and place it … | |
Hello, I have recently installed Microsoft Visual C++ 2005 Express Edition, and right off the bat when trying to make a new project I find myself unable to make a Win32 Windows Application, when I go to check the bullet that says "Windows Application", the option is grayed out. I … | |
Hello everyone, I'm currently building a cms system and have hit a brick wall in relation to the error I'm getting below. Any help would be greatly appreciated. Thanks James. The error: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\widget_corp\includes\functions.php on line 41 The functions.php: … | |
hi, thanku for your help. I need some more help with the perl scripting. i have to write a script which compares two files. now thw files have the data like File1:- .title 'title:VDDL_switched.meas0' max_rush_current = -5.4316e-02 at = 4.9415e-09 powerup_time_u_switch_ring/u2_hs65_ls_sw3l60 = 6.3951e-09 targ = 6.9051e-09 trig = 5.1000e-10 temper … | |
I'm searching some method how to backup the database to thumb drive while the database (system) is running It mean like once i click the button it automatic fire the events in vb.net but the problem is the database is still running.. is there any method to do that? | |
Hi, Can anyone help me in writing a script for polls or voting.There are many scripts available,download them and use,but I wanted to write my own script.I have a question and 4 optins for that.I wanted to display the results in percentile and a color bar.Do I need to use … | |
How can I type cast char* to a long value? e.g. char * abc ; long xyz; xyz = abc???? | |
Hi all, I tried to write in a fibonacci sequence using python: [ICODE] unum = int(raw_input('Enter Limit Number to run Fibonacci sequence: ')) numlist = [1,1] for i in range(unum): fib2 = numlist[i+1] + numlist[i] numlist.append(fib2) print "Here's Fibonacci!" for w in numlist: print w, [/ICODE] This works fine. But … | |
ive doing a homework which we need to provide buttons (GUI) for a vending machine. the vending machine takes dollars, quaters, dimes, and nickels, and the vending machine has drinks (60 cents) and snacks (45 cents). we done a code were it does work through "SCANNER", but now we have … | |
I am making a game and i want to to have multi player support. What i mean is that.... When you load from the save file, you have to write the file name right? Eg. [code] FILE *out; out = fopen("datafile.dat", "r+b"); [/code] How can you let the player choose … | |
i want to retrieve record basing on date. i have used backend as ms access and frontend as vb.net. cmd = New OleDbCommand("select * from orders where qdate= '" + TextBox2.Text + "'", cn) | |
Hi everyone I am new to javascript arrays and understand it just a little but need some help. I have created an empty array name Numbers. I will use Numbers for all of my functions, therefore, I made it a global variable. Then I created a function named FillArray. The … | |
In late 1999 the Williams Pinball manufacturing company decided stop production. Higher profits were generated from the slot machine manufacturing division. This decision may have been encouraged by (evil) market analysts stating the pinball division was dead weight. They had just launched the most advanced pinball machine ever and it … | |
Hi I'm a bit confused but I think I know what Im missing. Story goes, I have a website which allows users to upload logos - I want them to be able to upload new logos if they want to... but the page that allows them to change their logo … | |
HI I am facing some (lot of, actually) problems porting a legacy program from UNIX to WINDOWS... I see a lot of errors like this error LNK2001: unresolved external symbol Can some one help how to get rid of these errors.. Thanks in advance | |
I am trying to get a script to work on a new server. The script was written by someone else, but it doesn't seem to work after I changed to another server. The script involves the submitting of articles, and uploading of a photo to each article written and submitted. … | |
Hi everyone, I am proud of myself, I am finally finish. It took me too weeks working with this day and night, but I am finally finish. The only thing is that I have a bug in my code. I have a getbyelement section that has the visibility to be … | |
here's my code [code] #include <math.h> #define M_PI 3.14159265358979323846 // Calculate Constant double constant() { const double figure = 7.9454E-18; double number = log (figure); return -10 * number ; } [/code] The value in number should be -17.099... But i get -39.379... What's the problem here? | |
hi i have a vb application an to invoke it in a php page i used exec('app.exe'); but before this statement i have a lot of echo statements but when the page is loaded the echo statements are not displaying and the application is running and when i exit from … | |
Hey guys, I am making a website where I have a panel of colors to choose from and it allows the user to click on a layer on the page and then click on the color they wish to change that layer to. Everything works fine and the color changes, … | |
Ok , maybe i should explain this.... logically i have a form , where i have a drop down list , which lists fields on a table those fields have records on the table, i want to automatically display those records for each field on the form , when you … | |
I'm trying to create a class inside a header file so that all my files can access that 1 class and only use that one. This is what I have so far. ---------- Window.h: [ICODE] class Window { public: Window(); ~Window(); /* FUNCTIONS */ HWND OpenWindow(LPCTSTR, int, int); /* VARIABLES … | |
Hi, Why the program skip 'read value' in second time? First time reading value is ok, but the problem will get after pressing 'Enter key' for the next time read. [CODE] //array of pointers to person objects #include<iostream.h> class Person { protected: char name[40]; public: void getname() { cout << … | |
Just starting Python and I have a question about how to run it just by double-clicking. With simple things like [ICODE]print "Hello World"[/ICODE] the wait for user input clause can be added and it will run by double clicking and give the desired output, but when I try it with … | |
I have done this in IE but unable to in firefox. So can someone generate a simple piece of code using javascript that will allow me to PHYSICALLY ONLY enter Numbers\Letters\Etc. Not a message popping up once the form is submitted stating that I have numbers where letters should be … | |
Hey guys again, but i got another question. With this code here: [CODE]if choice == 'help' or '/help': print "Test"[/CODE] what if you entered anything else besides '/help' or 'help' and you have defined other things in the code you want to go to from input? any ideas/suggestions, Thanks | |
How can I display a new quote each day - to get a quote from the DB is simple, but how to change the quote every 24 hours? |
The End.