132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JGee2005

Hi there I am new to JAVA, I would like to create a line 2 pixels wide that moves across my screen. The line should be a bezier curve and should animate pixel by pixel. I would like to have 200 fps and four seconds from animation start to end. …

Software Development email java
Member Avatar for JGee2005
0
97
Member Avatar for JohnHull

Write C functions to perform the following tasks: Given a sorted double array x[i], i=0 to n and a double t, write a function which uses a binary search algorithm to find k such that x[k ¡ 1] < t <= x[k]. Many thanks for your help!

Software Development algorithm c
Member Avatar for JohnHull
0
139
Member Avatar for schbrongx

Hi, Maybe I should just make a break and go through this again by myself, but there is no more coffee, so there is no break for me ;) I want to check for a given dir, exit with a message if it exists, or create the given dir otherwise. …

Software Development shell-scripting
Member Avatar for beltagui
0
162
Member Avatar for catherine1001

I’m here because my best buddy has told me to go into forum do discussed with people and reach to your resolution. I've downloaded ucertify java test software, next month mye xam will go. Less time, the TestKit provides 5 full-length exam simulations, containing 285 questions, 150 pop quiz questions …

Software Development java
Member Avatar for server_crash
0
173
Member Avatar for spdman01

I'm new to Java and the Prof. asked us to create a program that prints out the Avg, Min & max of a set of Array values and I can't find a class or method that seem to do this . Any help would be much apperciated!!!! :rolleyes:

Software Development java
Member Avatar for server_crash
0
170
Member Avatar for Dark_Omen

Hello everyone, I just started learning Java, I like it so far because it is very similar to c#, which I am familar with. But I can't get programs to compile for me. It gives me an error saying 'Exception in thread "main" ' I am using NetBeans to compile …

Software Development java java-netbeans
Member Avatar for Dark_Omen
0
260
Member Avatar for bucwyld
Member Avatar for server_crash
0
112
Member Avatar for nephish

Hey there, i have a python cgi script that prints out html just fine in the Opera browser but doesnt print at all under FireFox. weird, eh? i am getting nothing in the apache logs about any error. perhaps its a firefox issue, but i doubt it. any suggestions. simple …

Software Development apache python
Member Avatar for nephish
0
159
Member Avatar for foucault

Hi everyone, Take a look at the following code block. [CODE] ->Class InterruptionDialog public class InterruptionDialog extends JDialog { //Fields Thread currentThread; JButton interruptionButton; //Constructor public InterruptionDialog(JFrame parent, boolean modal, Thread t) { super(parent, modal); currentThread = t; interruptionButton = new JButton("Click to interrupt"); interruptionButton.addActionListener( new ActionListener(){ public void ActionPerformed(Event …

Software Development java java-swing
Member Avatar for mmiikkee12
0
225
Member Avatar for Narue

For those of you who don't know, Daniweb has an IRC server. I'm there a lot, and I don't see any of you. That's not good because I'm there, of course. Real time chat with the resident guru ([B]shamless[/B]) will make you smarter ([B]utterly shameless[/B]) and cooler ([B]words cannot express …

Software Development c client-server unix windows-server
Member Avatar for Dave Sinkula
0
147
Member Avatar for shanenin

here below is my code [code] #!/usr/bin/python #this is my third python script print \ """ this is a python program to figure out total sales price, including tax\n\n \t\t\tprogrammed by\n \t\t\tShane Lindberg\n\n """ base_price=int(raw_input("please enter the base price of the car:\n$")) under_coat=int(1000) stereo=int(200) air=int(750) tax=int(base_price*.07) print "the total price …

Software Development python
Member Avatar for shanenin
0
192
Member Avatar for stage

Hello, im new to C and I'm stuck with a program. I now use this code to change some numbers [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #define relays 8 int main(int argc, char *argv[]){ int relay = 0; if (strtol(argv[argc-1], NULL, 10)) { if (strlen(argv[argc-1]) <= relays) { int a; …

Software Development c ide
Member Avatar for stage
0
98
Member Avatar for bigfoot_80906

If I have a line like this, how do I exclude all other lines that don't contain a number in this format? and how do I input this number into an array? [CODE]-- | |- state (1)^M[/CODE]

Software Development perl
Member Avatar for Comatose
0
140
Member Avatar for server_crash

I started over with reading my certification book, and I'm now on page 113. It says that an interface can extend one or more other interfaces.....I thought you could only extend one thing, or do they mean the interfaces that the extended interface extended?

Software Development java
Member Avatar for jwenting
0
129
Member Avatar for aaron_tan

I have a char pointer here, [CODE] char* buffer = (char*)malloc(sizeof(char*)); *buffer = 1; buffer++; *buffer = 2;[/CODE] so by doing this, i actually have the pointer pointing to "1" and "2" what i actually want is the number, 12. anyone knows how can i get the char pointer's data …

Software Development c
Member Avatar for aaron_tan
0
136
Member Avatar for winbatch

I am trying to write a template function that attempts to convert anything into a long. .h [code] class General { public: static void delay( int seconds ); template <typename Generic> static long ToLong( Generic source ); template <typename Generic> static double ToDouble( Generic source ); template <typename Generic> static …

Software Development c++
Member Avatar for winbatch
0
182
Member Avatar for winbatch

string a = "A"; string b = "B"; string c = a + b; string d = "D" + a; string e = a + "D"; string f = "F" + "F"; Why is the last line not something the string class can handle if it can handle cases a, …

Software Development c
Member Avatar for Dogtree
0
79
Member Avatar for sham
Member Avatar for bouzahme
0
136
Member Avatar for Kennedy_f

I'm seeking for java2 certification. I downloaded ucertify product. Question are on right quality. 150 challenging practice questions have been included to closely model the format, tone, topics, and difficulty of the real exam. If i purchased it before release then i could have able to got 40% discount. Test …

Software Development java
Member Avatar for server_crash
0
230
Member Avatar for sham

Hello, I am working on encryption/decrypt Logic based program. The requirement is such that I have launch required document/image thr' VB, so I am using WshShell.Run to lauch the required App. WshShell.Run has an argument blnWaitOnReturn, I am keeping this True since I want to know when user finishes editing …

Software Development adobe encryption image visual-basic
Member Avatar for Comatose
0
229
Member Avatar for nephish

Hey there. Here is the deal.... i have a script that is supposed to open a file based on criteria from a web form. i cant seem to get it to work though. here is the code: [CODE]form = cgi.FieldStorage() DataRecord = form['DataTime'].value Customer = form['CustName'].value # should be automatically …

Software Development python
Member Avatar for nephish
0
171
Member Avatar for gpta_varun

Hi All I am relatively new to the C++ world . Facing some problem , while initializing an array of objects . Suppose i have a class Rectangle . I want to have a pointer to an array of objects to the class . How do i invoke the Class …

Software Development c++
Member Avatar for gpta_varun
0
7K
Member Avatar for aaron_tan

I desperately need help on data type conversions. I am working on converting a set of codes in Visual Basic to C but i'm faced with a lot of problems dealing with strings. Can anyone help me out here? Below is the code I have in Visual Basic. [CODE]Private Function …

Software Development c visual-basic
Member Avatar for Dave Sinkula
0
163
Member Avatar for happyshub

please can someone give me code how to reverse single link list using recurtion thanks

Software Development c
Member Avatar for happyshub
0
215
Member Avatar for Dark_Omen

Hello, I am wondering if there is a function in c# that will allow me to wait a certain amount of time before going on to the next procedure? Also, I was wondering if there is a function that simulates hitting the enter button on the keyboard. Thanks in advance.

Software Development
Member Avatar for Dark_Omen
0
97
Member Avatar for TimmyRaa

I'm trying to find or create a Perl script that at runtime will simply take a specified logfile or logfiles, and append todays date onto the end of it's name. If possible, I would also like the option of zipping the new file up. I can then run this as …

Software Development perl
Member Avatar for optomystique
0
603
Member Avatar for bigfoot_80906

I need to write a script that will be able to go down the MIB tree of a device and output the values to either the screen or a .txt file. Any ideas what that would look like, or where I can search for a script to use as a …

Software Development shell-scripting
Member Avatar for bigfoot_80906
0
154
Member Avatar for bigfoot_80906

How does Perl count the number of whitespaces in a file?

Software Development perl
Member Avatar for bigfoot_80906
0
119
Member Avatar for ucdmrt

Hey wussup, im in a pascal class and I am currently working on a class assignment in which we have movie database program, the information for each movie is its name, length in minutes and year it came out. We have to use records to store the information. And my …

Software Development pascal
Member Avatar for Jackrabbit
0
119
Member Avatar for mrmike

I'm busy writing an application for work which needs to connect to a list of our servers and check some ports to ensure the correct ones we require are open and ones we don't use are closed. I'm using winsock and checking for a connection and the results are being …

Software Development visual-basic
Member Avatar for Comatose
0
205
Member Avatar for Kennedy_f

I’m here because my best buddy has told me to go into forum do discussed with people and reach to your resolution. I've downloaded ucertify java test software, next month mye xam will go. Less time, the TestKit provides 5 full-length exam simulations, containing 285 questions, 150 pop quiz questions …

Software Development java
Member Avatar for server_crash
0
195
Member Avatar for aaron_tan

I desperately need help on data type conversions. I am working on converting a set of codes in Visual Basic to C but i'm faced with a lot of problems dealing with strings. Can anyone help me out here? Below is the code I have in Visual Basic. [CODE]Private Function …

Software Development visual-basic
Member Avatar for aaron_tan
0
246
Member Avatar for STP72

I have been tasked to write this shell script in Linux and I dont know how to begin. Can anyone help me out with this please.:cry: [font=Courier New]Create a shell script file called “lookup

Software Development shell-scripting
Member Avatar for STP72
0
265
Member Avatar for Greenthumb

Hi there everyone. I was hoping you guys could help me out again. I would like to write a setting to a certain line in a textdocument, for example "4000" at line 5 of the document. So far i have this: [CODE]void MainSettings::setSettingsToFile(String *numChannels, String *savePath, String *playlistPath) // Here …

Software Development c++
Member Avatar for Dogtree
0
217
Member Avatar for stage

Hellow I'm just started whit C. I'm usig gcc and get this error: [CODE]test.c: In function 'main': test.c:8: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast ..... [/CODE] This is my code: [CODE]#include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ int arg = atoi(argv[argc-1]); …

Software Development c
Member Avatar for stage
0
10K
Member Avatar for Phreak

Hi All, Before i start asking for advice on this just a quick mention to comatose to say thank you for all your previous help. Cheers.. Also just to say i believe my problem i pm'd you about has been resolved.. (i need to be a little more carful, i …

Software Development visual-basic
Member Avatar for Comatose
0
585
Member Avatar for student113

hay i need to build a simple program in C# or C++ about robot that need to find the short and optimal way from one point to other on ground that have just 3 obstacle that look like rectangle or 2 rectangles connected . how can i insert in AI …

Software Development algorithm c++
Member Avatar for Dani
0
168
Member Avatar for maherddd

this is an example of what is happening consider the program: #include<iostream.h> void main(void) { double x=2.3767553235; cout<<x<<endl; } when i compile it the output is only giving 2.37676 Why? I dont want only 5 decimal places,plz someone tell me why is this happening. i want it to be say …

Software Development c c# c++
Member Avatar for Dogtree
0
463
Member Avatar for amt_muk

Hi All, I am facing a problem with new line character (\n). When I am initializing a string variable with a string having a new line character, e.g., [code] char str[20] = “Programming is \nfun

Software Development c++
Member Avatar for Dave Sinkula
0
101
Member Avatar for floyd

Hi everyone, i am a student of IT and i am trying to read a text file and load it into a records of nested structs. I understand the logic how to do it, but i had a few problems. the txt. file contains : [code]John Smith 125 2004 Daily …

Software Development c c# c++ file-stream ios
Member Avatar for Dave Sinkula
0
123
Member Avatar for Greenthumb

Hi everyone, i was hoping i could find some help here. I am trying to get settings i have written into a textfile to be put in an array. Here is what is in the txt file: 8 44100 1 2 1 I read the textfile with: pStream = new …

Software Development c
Member Avatar for Greenthumb
0
125
Member Avatar for anthony05

I have very little experience that’s why I need some help to get started I have been given a task to write a shell script in Linux and I don’t know from where to begin. Can anyone help me out with this please. 1. Move files from Windows 98 machine …

Software Development shell-scripting
Member Avatar for Comatose
0
68
Member Avatar for jasworld

I need a help in VB interface to other excel applications

Software Development vb.net
Member Avatar for Comatose
0
113
Member Avatar for Surfline

Hey I'm trying to write a program to make a simple Tic-Tac-Toe Program. I just started coding it, so this is my rough draft version, i haven't worked on lots of checks i know i need to do later. However I have a big problem I cant seem to figure …

Software Development gui java java-swing
Member Avatar for server_crash
0
240
Member Avatar for nike123

I have copied this program from this site, and simply copied as a new C++ file but when run I got a number of error. so I included Myheader file which amongs other includes, the iostream.h, and stlib.h, that is why they have been commented out below. Any way doing …

Software Development c++ display
Member Avatar for nike123
0
209
Member Avatar for higherGround574

I want to start studying for the scjp exam but I'm not too sure where to start... Does anyone have some good book or link suggestions?

Software Development java
Member Avatar for jwenting
0
103
Member Avatar for rkarimi

Hello, I need to allocate memory dynamically for arrays in FUNCTIONs (Here for R), but I can not use that memory in my main function Thank you so much [code]typedef float MYFLOAT; // or Called Standalone #define MYPRINT printf #define MYMAIN main #include <string> #include <cstdio> #include <cctype> #include <stdio.h> …

Software Development c
Member Avatar for amt_muk
0
128
Member Avatar for numerouno543

Hello... Can someone please tell me how to send a DNS query through a C/C++ program ?? Regards.

Software Development c++ dns
Member Avatar for numerouno543
0
164
Member Avatar for somer2412

Can someone please help me on how to do the conversion of char to int using either a c-style cast or function-style cast. I have include my code. [code]#include <iostream> using namespace std; int main() { char state; cout << "Please select one of the following state abbreviations:\n"; cout << …

Software Development c c# c++
Member Avatar for Dave Sinkula
0
200
Member Avatar for luisator

THIS IS MY CODE, at the end is the nullpointer error i get....hope you can help me.... public class CuartaApp { // These fields are read in from the application.properties file. This file // must be populated with a valid IP address for Avaya Communication // Manager, as well as …

Software Development api client-server display java
Member Avatar for archern
0
150

The End.