64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for idbgy

Hi, I'm new to Perl but I'd like to know more. For this purpose I downloaded the ActivePerl-5.10.0.104-MsWin32 .msi package and installed it on my computer OS XP Home. Xitami, PHP, MySQL were already installed, and PHP can connect to MySQL. Now I run the following code from the command …

Member Avatar for KevinADC
0
326
Member Avatar for BestJewSinceJC

I have a TicTacToe board and I need to draw a line through the X's or O's when someone wins. I know how to use the paint method, repaint, etc (as far as how they're called & the basics). I'm just not sure how to go about actually drawing the …

Member Avatar for BestJewSinceJC
0
92
Member Avatar for toolmanx

I program using Win32 API's. I compile with Borland or Microsoft "CL". I am on an XP machine. I use .cpp extensions to compile so C++ rules apply. I'm trying to get the bytes from my screen and send them to a disk file. I get a handle I call …

Member Avatar for toolmanx
0
126
Member Avatar for dimples09

I have this program and I have made the changes. Now I am trying to implement the stack within my code and im confused. I need to push the environment_types onto the stack but I dont know how. Here is what I have [code=syntax]int X=0, Y=0, Z=0 ; /* Evironment …

Member Avatar for destin
0
75
Member Avatar for mangel.murti
Member Avatar for dickersonka
0
106
Member Avatar for Nick6425fl

I have 1 line in this code that I can't get to compile. I'm new to C++ and begging for some help...any advise would be appreciated. [code] #include <iostream> #include <iomanip> using namespace std; double population(double pop, double birthRate, double deathRate); void printPopulations( double startPop, double birthRate, double deathRate, int …

Member Avatar for Nick6425fl
0
148
Member Avatar for atman

Hello again guys! i have a simple question how to promt user to enter a number for example 444 or whatever and for c to print it as a 9 digit number, so if its 444 c would print it as 000000444? any help would be greatly appriciated., thanx!

Member Avatar for yuvaraj.tr
0
99
Member Avatar for rutaba

plz i need urgent help i hav to giv project of web , a dynamic website using php.. gimme sum gud idea for topic plzzzz

Member Avatar for isotope
0
102
Member Avatar for Nick6425fl

I'm a newbie at posting code so I'm sorry if I make any mistakes. The 26 line won't let me compile and I don't understand why. can anyone help me??? [code=cplusplus] #include <iostream> #include <iomanip> using namespace std; double population(double pop, double birthRate, double deathRate); void printPopulations( double startPop, double …

Member Avatar for Nick6425fl
0
120
Member Avatar for kyeong

I'm having trouble implementing isalpha in the correct spot. When I put it in the if statement, it doesn't determine the palindrome correctly. It says everything I entered is a palindrome. Then I try to implement it with the int k, but then it gave me "parse error before +," …

0
52
Member Avatar for Nick6425fl

I can't get it to compile. Here are the instructions for the assignment: Write a program that determines which of a company’s four divisions (Northeast, Southeast, Northwest, and Southwest) had the greatest sales for a quarter. It should include the following two functions, which are called by main. • double …

Member Avatar for VernonDozier
0
288
Member Avatar for DeadJustice

I can add a new node if the head is empty, but I can't attach a new node. Instead I get a null pointer error. Can anyone see what I'm doing wrong. I think I've been staring at this for too long. EDIT: Forgot to say I'm adding the Nodes …

Member Avatar for DeadJustice
0
1K
Member Avatar for jbennet

Okay i need this quick please i am kind of stuck basically i have got to find the highest and lowest numbers out of four integers. Is there a function in java.math or do i need to make one using a loop maybe?

Member Avatar for jbennet
0
107
Member Avatar for dnmoore

I have the following GUI code but my JLabel for results doesn't work when either of the buttons are pushed [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TempConverterPanel extends JPanel { private JLabel input, results; private JButton output_f, output_c; private JTextField temp, fahrenheit, celsius; public TempConverterPanel() { setLayout …

Member Avatar for dnmoore
0
97
Member Avatar for prabowoadis

Hai there, I would like to ask about currency format in Bash script let say i have $US2550000, after format it, it become $US2.550.000,00 Thanks for the help

Member Avatar for omrsafetyo
0
971
Member Avatar for lostandfound

Hi all, Can anybody help me out with the connectionstring for connecting VB6 to a Microsoft SQL Server 2005 Express Edition. I have tried several documented varieties which do not work. My latest attempt was a version from [URL="http://msdn.microsoft.com/en-us/library/bb264566(SQL.90).aspx"]this website[/URL]. I downloaded the application and associated files and changed the …

Member Avatar for lostandfound
0
217
Member Avatar for ihatehippies

I'm fairly new to making GUI's in tk so I downloaded activestates GUI builder from sourceforge. It has a very straightforward drag and drop interface and is easy to pick up. However I ran into a problem trying to edit the widgets it creates. It makes 2 files, the first …

Member Avatar for ihatehippies
0
110
Member Avatar for drjekil

I ve to Write a Python program that prints a random DNA sequence in Fasta format. That program should ask for the length of the sequence and suggest a reasonable sequence name. The session should look something like: > python randomdna.py Length: 34 >MySequence TGCGCATATTGTCTAACTATGGCTGTGGCCGGA The output must be in …

Member Avatar for drjekil
0
160
Member Avatar for abhi_sri08

Hi, I want to use outputs from different forms of a project and save them into a single text file that could be from a module. Please suggest any tips on this. Abhishek

Member Avatar for Drycola
0
94
Member Avatar for monogana

hi all, if you look at the code below you will see that i am trying to get a template function to return an iterator based on the type type of one of its parameters, i cant seem to get it to work i dont want to have to pass …

Member Avatar for monogana
0
174
Member Avatar for jackakos

Hi Folks, is there a way to validate input fields using only PHP scripts before inserting into a MySQL database? I have fileds for: Date (DD-MM-YYYY) Time (24 hour format between 0900 and 1700) Location (String) Your suggestions will be a boost.

Member Avatar for jackakos
0
198
Member Avatar for dnmoore

I need a little help converting my GUI panel into JButtons instead of text for some parts [code] //Davina Moore //TempConverterPanel //November 6, 2008 import java.awt.*; import java.awt.event.*; import javax.swing.*; public class TempConverterPanel extends JPanel { private JLabel input, results_f, results_c; private JButton output; private JTextField fahrenheit, celsius; public TempConverterPanel() …

Member Avatar for dnmoore
0
118
Member Avatar for Weebl4551

Hi. I just joined this forum because I really need some quick advice on a Blackjack game I'm working on. It's my first major endeavor, and I can't quite get it to work right. Here's the code. #blackjack.py from cards import * from graphics import * import random DIM = …

Member Avatar for jlm699
0
186
Member Avatar for konczuras

Hi Everyone! I have to make a forum with MS SQL, and, as I'm Hungarian, we use characters, like áéíőúű, etc. Now, if I insert a text with the letter ő or ű, I get back o and u. How can I solve this problem? The users write posts in …

Member Avatar for canonzone
0
367
Member Avatar for atman

Hey Guys., Im super desparate have 1 day to hand this in. Have to use loops only. quote: The use of any of the following C statements or functions is not permitted under any circumstances. break; continue; exit(); abort(); No global variables. When the program starts it will prompt the …

Member Avatar for Denniz
0
162
Member Avatar for litchi

Hello, I have just started using Delphi and ran into a small problem. It's a simple app, as I am only practicing. It has a Button and 2 Edit boxes. I want the user to enter some text to be saved (in a .txt file) in Edit1 and choose a …

Member Avatar for litchi
0
185
Member Avatar for saurabhnovice

[code=csharp] using System; /// <summary> /// Summary description for Class1 /// </summary> interface I { void dis(); } class B:I { public virtual void dis() { Console.WriteLine("dis() in Base"); } } class D : B { public override void dis() { Console.WriteLine("dis() in Derived"); } } class c2 { public …

Member Avatar for LizR
0
121
Member Avatar for kiddo39

Hi, I have 2 things I'd like help with: 1) is there a way to find the exact center of my screen? 2) a loop Here's what I need the loop for: [code] image = ImageGrab.grab((0,0,800,800)) box = (100,100,400,400) im = image.crop(box) im1 = im.save("screen.jpg") # at this point I …

Member Avatar for kiddo39
0
112
Member Avatar for clutchkiller

after you switch (variable) case 1: etc.... if the switch defaults, how do you return to repeat the switch case? do you just do a simple cin>>var and it will reset or you have to loop it? Sorry if question isnt clear

Member Avatar for clutchkiller
0
83
Member Avatar for ambarisha.kn

Consider d_type=POINT_LONG in the following program. and data.Long=0xA; In the following program i am getting correct output in constDataArea[0],constDataArea[1],constDataArea[2], constDataArea[3] which is oxA, 0x0, 0x0, 0x0. But not able to write the same into ambi.dat file. Some junk value is inserting in the front. and writing 5 bytes instead of …

Member Avatar for ambarisha.kn
0
164
Member Avatar for hinduengg

Please help me find the sine series . My program is: [code] #include<stdio.h> #include<conio.h> #include<math.h> float facto(int a); int main() { int n,g,k,y; y=1; float s=0.0; float f=0.0; float l =0.0; float x; int t=0; printf(" limit is \n"); scanf("%d",&n); printf(" no. is \n"); scanf("%d",&x); x=3.14*(x/180.0); while(y<(n+1)) { g=y; if(g%2==0) …

Member Avatar for hinduengg
0
143
Member Avatar for axn

>>> line = '2008-10-27 12:05:54........... >>> time = line.split(' ')[1].split('.')[0] >>> print time 12:05:54 i would like to add 45 or so minutes to the time i am parsing from a line i have tried print time.timedelta(minutes=45) Traceback (most recent call last): File "<pyshell#44>", line 1, in <module> print time.timedelta(minutes=45) …

Member Avatar for axn
0
106
Member Avatar for chris5126

Hi guys, i have a ksh script that gets some info on processes and puts it into a temp file: [code] /usr/ucb/ps -auxxx|awk '{print $3," "$4," "$2," "$1," "$11}'|grep -v 0.0|sed 1d > $TMP [/code] It gets the following data [code] 0.8 6.2158230724046144 9918 oracle 0.3 6.2158200964043168 15298 oracle 0.2 …

Member Avatar for JeoSaurus
0
184
Member Avatar for tyserman5674

Hi All, I am sure having problems with reading from a sequential file. I created a .txt file and placed it several places within the vb.net file folder for the program that I am writing. The problem is that when I try and run the program I get the message …

Member Avatar for tyserman5674
0
161
Member Avatar for stevehart808

Hi guys, I have a media player that opens its own window and works fine with Firefox but it's not working for internet explorer. Been trying for ages and lots of different suppose solutions but still no go. The only thing that happens when you click the link is, bottom …

Member Avatar for stevehart808
0
106
Member Avatar for jobojo

I am trying to write a simple program to calculate income taxes owed based on gross wages that are input by a user. The HTML page needs to accept the input (wages from 4 users) at once and then utilize a button to submit the information to an external javascript …

Member Avatar for jobojo
0
310
Member Avatar for localp

i need to write a c++ function that could read in the values of a text file, but in the text file we need to eliminate duplicate values; for example we may have values like ;;;; this is a text file, and it contains the above students, there first name …

Member Avatar for iamthwee
0
145
Member Avatar for saurabhnovice
Member Avatar for LizR
0
129
Member Avatar for smilyswapna10

hi, i want to disable the parent window when i opened the child window using javascript and html. i have written code like this.but its working only one time.any one knows pls help me in this situation. s.html <html> <head> <SCRIPT > function popuponclick() { my_window = window.open("p.html", "mySelect", "status=1,width=750,height=450,resizable=no"); …

Member Avatar for demudubabu
-1
5K
Member Avatar for mangel.murti

hi all, i made two commbox in my page cropcat,subcat.my coding is below.when i select a item form cropcat related subcat fetch from database mysql and displayed.but my problem here is that when i select item form cropcat page refresh and selected value not display in cropcat ?please help me …

Member Avatar for pritaeas
0
114
Member Avatar for q8_dreamy

Hiiiiiiiiiiiiiiiii :) I want to create crystal report filtered with specific values Iam creating the report with wizard... if i filter just one filed then every thing goes fine, put if i filter more than one filed i got the following error when run: Error in File C:\Users\kisruser\AppData\Local\Temp\test {8D5AD4DD-CCD0-451E-BF1F-7E3E31F22880}.rpt: Error …

Member Avatar for q8_dreamy
0
116
Member Avatar for schmidty169

This is for a school project: write a GUI application that will generate multiple 3 digit numbers and count how many times each 3 digit number appears. To make the program more useful, provide the following: A label that displays the 10 most common 3 digit numbers and the number …

Member Avatar for LizR
0
109
Member Avatar for grisha83

Hello, I am working on small program that reads in a string consisting of minimum two words and a space between them. My dilemma is that i keep getting an error message. Can anyone twlm me what it is that i a ding wrong? here is my code: [CODE] #include …

Member Avatar for vmanes
0
96
Member Avatar for dinilkarun

Hi All, I am using the following code to populate a tree control. The dictionary currently I am using is ‘dictFolders’ and its structure is defined below. lstFolders=[] lstFolders = ["A","B","C","D"] dictFolders={} dictFolders = {"A":["Obj1","Obj2","Obj3","Obj4","Obj5","Obj6","Obj7","Obj8","Obj9"], "B":["Doc1","Doc2","Doc3","Doc4","Doc5","Doc6","Doc7","Doc8","Doc9"], "C":["Link1","Link2","Link3","Link4","Link5","Link6"], "D":["Obj1","Obj2","Obj3","Obj4","Obj5","Obj6","Obj7"]} # Setting the root node text to the Action ID entered self.treeAction.SetItemText(self.treeAction.GetRootItem(),”Parent …

Member Avatar for dinilkarun
0
105
Member Avatar for Fourbit

Howdy all, New here. And I've done a search. Just can't find what I'm looking for. I have a number in some text that I want to increment every week by 100 . And, i need it done automagically. I have thought initially of putting the number in a DB …

Member Avatar for Fourbit
0
94
Member Avatar for atman

Hey Guys! I have a weired one here, it must be a post-test loop, and here is how result has to look like: Enter the Section Code: 0 Invalid value entered. Must be 1 to 4, please re-enter: 1 Enter the Student's ID: 456789 Enter mark#1: 10 Enter mark#2: -20 …

Member Avatar for bionicseraph
0
151
Member Avatar for MJFiggs

I'm trying to make this program work like a game of BlackJack. However, the program will not listen to me when I try to end the loop. does anyone have any sugestions on how to fix this program? [code] #include <iostream> #include <ctime> using namespace std; double card = 0; …

Member Avatar for MJFiggs
0
487
Member Avatar for serkan sendur

what are available database management systems to use with c applications?

Member Avatar for ArkM
0
72
Member Avatar for espSquall

My procedure works perfectly when there is another instance of my program running but otherwise it gets stuck in a constant loop. I've tryed all sorts and came here as a last resort. There's not really much else I can say so here's my code: [code] {*Finds and ends previous …

Member Avatar for espSquall
0
104
Member Avatar for xenocide001

hi there i'm new here i hope you can help me through this homework i've read like 14 pages of topics about seekg and fstream.. and well.. they didn't solve my problem. my homework it's about creating a text file from "b to z" without the vocals, then reopen the …

Member Avatar for vmanes
0
131

The End.