64,152 Solved Topics
Remove Filter ![]() | |
[QUOTE]Hi, how do I get rid of a conversion from double to float warning??[/QUOTE] Thanks | |
hi, im getting these 4 (or 5) errors when i validate my page at w3.org [URL="http://validator.w3.org/check?uri=http%3A%2F%2Fhome.sprit.org%2Fdonrow%2Fforum%2F&charset=%28detect+automatically%29&doctype=Inline&group=0"]click here to see the errors![/URL] what can the problem be?! plz help... | |
I'm trying to calculate the length of three individual arrays and plug that length into a function to dynamically allocate memory to a new array and delete it. I keep overwriting my HEAP and I'm not sure where the problem is [code] void punchmeinthehead() { const int maxin = 16; … | |
Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered as … | |
I have been using Eclipse for quite some time to program. I have been told that NetBeans is a little better. The problem that I am having is that I can't figure out how to get a program into NetBeans for further programming. Can anyone explain these steps? Thanks, | |
Please help me... Its very urgent... I've to finish my miniproject by tomorrow... Please Debug The coding given below... i am doin student information system. in vb oracle. i have created a module in which i wanna display info about students extracurriculars in ms flex grid control from a form … | |
This is just a school level program and I am a C++ n00b. So I would be grateful to people helping me out with this if there is any solution. CAN I TERMINATE A STRING ENTERED BY --getch();-- WHEN I PRESS THE <ENTER> KEY ?? SEE THE PROGRAM BELOW WHERE … | |
Hi everyone, I'm a lazy programmer and when I want to create an array that I can store serialized in a database I don't feel like typing out all the array stuff rather I want to use a delimited string something like this: [code]access.read=1,2,3:: access.write=1,2:: access.modify=1,2:: access.manage=1:: somethingelse=10101[/code] So I … | |
Having some trouble with converting my driver input from one class to the friend class and then summing the array. My setGrade function is reading the input correctly (I think, the numbers match up) but I need to pass the class to the friend in order to add up the … | |
Please, where is the problem? Unable to jump to row 0 on MySQL result index 3 in c:\apache\htdocs\cd_shop\funkcie_s_databazou.php on line 1041 function zrataj_cenu($kosik) //funkcia pocitajuca vyslednu sumu vsetkych poloziek v nakupnom kosiku { $cena = 0.0; if(is_array($kosik)) { $conn = db_connect(); foreach($kosik as $EAN_kod => $qty) { $query = "select … | |
I want to use google search in site.they give some code <form> ......................... </form> I want to use this code in my web page.if i placed this code before of my normal <form></form> code it changes design that means it has some space in top. if i placed this code … | |
I need to find out what is currently hold in PictureBox.Image property and take action as necessary. I tried various things but can't get it work Compare it with PictureBox which Image is set to null [code=c#] PictureBox emptyImg = new PictureBox(); emptyImg.Image = null; //Compare myPictureBox.Image.Equals((Bitmap) emptyImg.Image) [/code] Compare … | |
Hi, has anybody here experience miranda before? I need help with algebraic types and type synonym? Thanks | |
Good day yet again ladies and gents. Today I'm having problems with strings and such. I've been tasked with creating fixed char arrays to contain first name, last name, and middle name. I've managed that, and have the calls in my main. I'm also tasked with using strlen (specifically) to … | |
Hi all, I would like to ask one question. Can I know where the focus is in a main Form? Eg: there will have some buttons, text boxes and labels. How to check the focus? Please give me some ideals. Thanks, zawpai | |
hi, i am trying to make a simple catalog website without checkout. the user clicks on a product he want and it's displaced on another page...simple. the first page (the one with the product list) has the following code... [code] <?php $sql = "SELECT * FROM products"; $result = mysql_query($sql); … | |
Hello, I moved my website from one server to another and want to use the mass mailing feature and it is not currently working. Here is the current script. The variables are pulled from the SQL database beforehand. open SENDMAIL, "|$sendmail -t"; print SENDMAIL "To: \"$toname\" \<$toemail\>\n"; print SENDMAIL "From: … | |
Hi all, Can anyone shed any light on this really simple problem please? I need to read a list of files in a directory on a server. I am using PHP to do something like this... [code="PHP"] $counter=0; if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { … | |
I have an assignment that I'm working on and am having trouble. Not too familiar with graphics. Any help/guidance would be much appreciated to see if what I have so far is okay and what I should do for the loop part. I will post assignment details and what i … | |
hi Im sure this is an easy problem to resolve. Basicly for my log-in script, im retreiving the results from a database, storing them in variables but i would like the redirection to be in flash (better looking). Is there a way for me to load two variables called $username … | |
Hello, everyone. I'm having some trouble getting [code=c++]glutMouseFunc[/code] to work. [code=c++] #include <GL/glut.h> //GL/glut.h includes GL/gl.h and GL/glu.h so there is no need to declare them #include <ctime> // std::time #include <cstdlib> // std::srand #include "./colorgl.h" // contains my ColorGL class that handles colors. #include "./pathgl.h" // contains my NodeGL, … | |
why cant i type in my address??? [CODE]#include <iostream> #include <fstream> #include <string> using namespace std; const int maxstring = 120; typedef char stringtype[maxstring]; void newuser(){ system ("cls"); stringtype name; string type, id, cnumber, address; double amount; ofstream out; cout << "ENTER YOUR NAME: "; cin >> name; out.open(name, ios::out); … | |
Hello again :) This time I'm back with a stranger question. The following program is meant to factorialize (spelling?) a number from the command line while printing out the number of calls it made to the function "factorial". [CODE=C] #include <stdio.h> #include <stdlib.h> unsigned long long factorial(int num,int *count_ptr){ printf("Call … | |
Hi! I have a problem with graphics in c++. It is a simple program, that displays circle. [CODE]#include "stdafx.h" #include "iostream" #include "graphics.h" #include <cstdlib> void main() { int gdriver = 9; int gmode = 2; initgraph(&gdriver,&gmode,""); setbkcolor(WHITE); setcolor(BLACK); cleardevice(); circle(320,240,180); getch(); closegraph(); }[/CODE] In visual studio i have error: … | |
i am working on a file upload system and i need the user to be able to upload images onto the server with the page reloading. the page reloading causes all the other information to be lost and the user having a lot of unwanted windows open. what is the … | |
I am fixing an e-mailing system using php and mysql and have hit a stumbling block. i have recently had to take on someone elses work and have fixed most of the problems they had created. I need to upload images and then display them on the newsletters that will … | |
[code=mysql] $result = mysql_query("SELECT * FROM cycles WHERE Upper(brand) LIKE '%$brandC%' AND type LIKE '%$typeC%'"); [/code] Above code is not working, pls help. | |
I have a need to force all items in a listbox to become selected before I force a submit. I need something to select everything in a listbox called SpacesServed: $("#form1").submit( function() { . . . code goes here . . . } ); Any ideas? | |
hello i am trying to get uploaded to a server using a hidden iframe so the page does not reload. i have a upload.php page which resizes the file and remanes the file. What i thiink should happen is that the php file should be in the iframe and the … | |
Hi, I have two table like this: [QUOTE][B][COLOR="Red"]quote_tb:[/COLOR][/B] [B][U]ID item vendor quote[/U][/B] 11 a v1 100 11 a v2 200 11 b v1 400 11 b v2 300 11 c v1 555 11 c v2 777 22 a v1 122 22 a v2 222 22 b v1 322 22 b … | |
I need help with parsing XML. I put an XML doc into a hidden input for an HTML FORM... -------------- <html> <head> <title>TEST TEST</title> </head> <body> <form method=POST action="http://nflnfl.com/mash.php"> <input type=SUBMIT> <input type=hidden name=xdoc value='<?xml version="1.0" encoding="UTF-8" ?> <!--OPN 2001 Proof Of Concept--> <ScannerData> <Device>0000000000002561</Device> <UploadDate>3/6/2008 3:49:09 PM</UploadDate> <BarCode> <Symbol>8</Symbol> … | |
This is my code.. But the image doesnt appear on the frame when i run the program Please help JLabel label = new JLabel(); String path = "C:/Documents and Settings/Administrator/My Documents/My Pictures//22.bmp"; try { URL url = new URL(path); BufferedImage image = ImageIO.read(url); label = new JLabel(new ImageIcon(image)); } catch(Exception … | |
Im trying to read lines in from a txt file to write into another txt file but at the moment its only reading the first line. I need it to read 1 line at a time and store it to add to another txt file before reading the next line. … | |
I'm having a really anoying problem with my picture display for a kids game. In the code supplyed i've only given the PicPanel where the picture function is placed. ButtonHandler where the listener is for the answeering of the questions & NumberGame main class that imports the previously defined panels … | |
Can I use more than one Resultset objects through as many Statement objects using a single Connection object...when i am doing this ,there is an error message" connection is already busy with another statement". Please help me to sort it out | |
Hi friends, I have written the following program to display a specific o/p: [code=Python] def square_root(a): if a>1.0: x=a-1.0 elif a==1.0: return 1.0 else: pass while True: y=(x+a/x)/2 if math.fabs(y-x)<0.0000001: break x=y return x import math i=1.0 while i<=9.0: print i, sqrt=square_root(i) print sqrt, math_sqrt=math.sqrt(i) print math_sqrt, print ''*4, difference=math_sqrt-sqrt … | |
Hi I am using ajax and jsp in my web application. The user is required to fill out a few forms, for this i am using ajax to go through the forms, on one of the forms i need to set the session bean value and i am unsure as … | |
The function below will take a string(s) and rotate it a given amount(num). i.e cheer rotated by 7(cheer,7) will return jolly, and (melon, -10) will return cubed. This is an attempt at exercise 8.10 from "How to think like a (Python) programmer, and it works just fine. The issue is … | |
Im having problems with my ms acess sql command, well im trying to get the last value from the database here is my code, the error is ORDER BY clause syntax error.. [code] data.Open() record.SelectCommand = New OleDbCommand("SELECT PatientID FROM PatientRecord ORDER BY PatientID desc LIMIT 1", data) Dim ds … | |
Hello all, Actually i need to close a dialog automatically after 5-6 seconds. For it what should i do,please help me.I am using wxTimer self.MB = wx.Dialog(self,-1,"hello",pos=(-1,-1),size=(200,100),style=wx.NO_3D) self.SB = wx.StaticBox(self.MB,"Here description of atelier will come") self.MB.Show(True) self.timer = wx.Timer(5,self.Step(self)) self.timer.Start() def Step: if self.timer.IsRunning(): print "" else: self.MB.Close(True) Is this … | |
I have txt files in russian which i need to read and trim out all the special characters like !,digits, blankspaces and write it into another file in the encoded form. Below is the code i am using for for fname in filelist: if fname.endswith('.txt'): count = 0 path = … | |
I wonder if I have something like this where Replace is the same as/"contains": Number == 5. My question is if it is possible to put this: Number == 5 to a std::string in any way through Replace ? [code] #define Replace Number == 5 [/code] | |
select myColumn from myTable1 union select myColumn from myTable2 | |
[code] #include <iostream> using namespace std; typedef unsigned short ushort; typedef unsigned long ulong; ulong power(ushort, ushort); int main() { ushort x,y; ulong z; cin>> x; cin>> y; z=power(x,y); cout<< z; return 0; } ulong power(ushort i, ushort j) { if (j==1) return i; [B]else return (i * power(i, j-1)); … | |
would you all help me? how do i do, when i double click at item using list view then bring and display the items at textbox and option button at the another form??please help me...im in urgent...thank you so much.. | |
Hello! I have this simple Internet browser. It works “fine”, but I’d like part of the URL (most of it actually) to be predetermined (always same website, but different pages). For example, [COLOR="Green"]I want to be able to type only some middle part of the URL[/COLOR] & then click "[B]Go![/B]" … | |
Hi, I just joined today and i need some help with python. I just started using python not to long ago in my intro programming class. We have an assignment coming up and i need some help. How do you get the sum of an integer. ie: you put in … | |
hi all, hope you are well. Just a quick question, been googling this one for a while but not found anything yet: How does IIS deal with session state? Many thanks for your time. | |
select CASE WHEN FirstColumn IS NULL THEN '' ELSE FirstColumn END + ' ' + CASE WHEN SecondColumn IS NULL THEN '' ELSE SecondColumn END as ResultColumn from myTable | |
today i came across to an sql problem from one of the threads in the database forum : to solve the problem i created a table named "names" having these columns : PKID | name | lastname and i entered some rows having the same values for name and the … |
The End.