132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ivabigun

Hi people, I am wantng to read a key in as an argument that will duplicate itself to the exact character length as the plaintext , read from a text file. E.g. key = deceptive Then i need it to repeat until the end of the plaintext file length as …

Software Development algorithm encryption java
Member Avatar for ivabigun
0
102
Member Avatar for Jezarel

Hi guys and girls. I’m a bit of a newbie and I hope I haven’t posted in the wrong thread but I need a little help. I am trying to mess about with Greg calendar. I have been told to make a diary app and was hoping to use this …

Software Development java
Member Avatar for adpeate
0
144
Member Avatar for slayer10

Im trying to move picture used on one button to another button, i tried Icon pic = btnA1.getIcon(); btnA1.setIcon(pic);

Software Development java
Member Avatar for Ezzaral
0
137
Member Avatar for littlepriest01

I have been working on this for days and it's the most annoying error. For some reason, everything works correctly the first time through, as you can see from the sample output. However, if you go through a second time (as the input is from the command line, i.e. if …

Software Development pascal
Member Avatar for jwenting
0
122
Member Avatar for Jezarel

Hey guys, back again I be. Having a new problem with my dates. I want to sort by date and that's fine but in order to sort correctly by date i would have to reverse the date and ignore the slashes or it wont recognise that 2006 is before 2007 …

Software Development java
Member Avatar for Ezzaral
0
74
Member Avatar for balance

Hi. I don't know anything about python but I need to use a script which I have found on the internet. I don't know where to start. I have installed python on my windows xp desktop and I have also downloaded and put in the Lib folder the file BeautifulSoup.py …

Software Development open-source python ubuntu
Member Avatar for G-Do
0
109
Member Avatar for newbieGirl

Hello and good evening everyone :) I've written up a program that counts the number of times each number on a die (dice) is rolled, with the percent. Only thing is, I'm not quite sure how to output the percent. Everything else seems to be working except that part... What …

Software Development java java-swing
Member Avatar for newbieGirl
0
122
Member Avatar for newbieGirl

How frustrating... I get to the end of something that looks as if it should go through the compiler ok, but it doesn't. I'm trying to make a sort-of stop watch that counts in nanoseconds. What did I do wrong, or what am I missing now? [code] public class Counter …

Software Development java
Member Avatar for Black Box
0
95
Member Avatar for Acidburn

Hello there guys, I've got a strange problem... I'm using NetBeans IDE v5.5 and when I run my application inside netbeans by clicking 'Run main project' it runs and everything works correctly. Now when I go to the dist folder and double click it... (the Jar file is assicated with …

Software Development ide java
Member Avatar for Black Box
0
109
Member Avatar for curt22

Hello, I'm following this tutorial [url]http://fox-toolkit.net/cgi-bin/wiki.pl?Tutorial__Simple_Window[/url] To learn how to make gui programs using the fox toolkit, but I can't get it to compile. This is what I have in main.cpp [code] #include <fx.h> #include "mywindow.h" FXDEFMAP(MyWindow) MyWindowMap[]={0 }; FXIMPLEMENT(MyWindow,FXMainWindow,MyWindowMap,ARRAYNUMBER(MyWindowMap)); int main(int argc,char ** argv) { FXApp application("Tutorial #1","FOX Tutorials"); …

Software Development c++ gui
Member Avatar for curt22
0
156
Member Avatar for driplet

I need to input a space, a tab, and a comma from keyboard and then judge if the input is a space, a tab, or a comma. I used the following code but it doesn't work. bool ST, COMMA; AnsiString HH; HH = Edit1->Text; strcpy(CR, HH.c_str()); if (CR == " …

Software Development c++
Member Avatar for Narue
0
4K
Member Avatar for DemonSpeeding

I believe what I have written at the moment is a singly linked list, and I can't figure out how to delete whatever node the user specifies, I've toyed around with it but I'm stumped. Here's my specification file: [code] #include<string> using namespace std; class Node { Node *prev; Node …

Software Development c++ linked-list
Member Avatar for Narue
0
229
Member Avatar for jackskell26

Hello, I am writing a VERY simple version of Pacman. In this "game" the user can click on the screen to select where the Pacman will start and any other clicks will add dots to the screen. The pacman will then be controlled by the arrows keys. The pacman should …

Software Development java
Member Avatar for jackskell26
0
210
Member Avatar for midnight_falcon

Could you help me optimize the following fragment of java code please? For (i=0; i<=9999; i=i+1) { for(j=0;j<=9999;j=j+1) { if (a[i,j]>0 && b[i]>0) { a[i,j]=a[i,j]*2 + b[i]; } } } Thankyou also can i just ask, could you tell me the purpose and give short examples of the input/output of …

Software Development java
Member Avatar for midnight_falcon
0
82
Member Avatar for lookof2day

Hi, I'm trying to reproduce a Production Exception. In order to reproduce it I want to limit the size of my log file. Is there a way so that I can limit the size of my log i.e., my log should not grow beyond a limit. Is there a java …

Software Development java
Member Avatar for ~s.o.s~
0
158
Member Avatar for Mr.Wobbles

If someone could tell me if there is a function or method, or some way of finding the directory that the VB project loads to when it is installed on other computers that would be great. What I want it for is so that I can save and restore a …

Software Development visual-basic
Member Avatar for hkdani
0
587
Member Avatar for jimFan

Dear all, Is it ever possible to write a programme in C++ which enables me to: 1) Read the data in spreadsheet of MS-Excel 2) generate another Excel file as output ? Also, are there any standard library could do the job? One of my friend said using Visual Basic …

Software Development c++ visual-basic
Member Avatar for miketillman
0
1K
Member Avatar for DoctorBob

So I have 4 different algorithms to sort numbers that me and my best friends wrote to see who's worked the best. They are not the greatest ..since we aren't the greatest programmers..haha but we thought it'd be fun. I thought I'd let you guys take a look at them …

Software Development c++
Member Avatar for DoctorBob
0
118
Member Avatar for Barefootsanders

Hey everyone, I'm attempting to monitor a directory, including subdirectories, for changes and update a database. The database part I can do, I just cant figure out how to monitor the directory for changes.. any suggestions? Is there an easy way to do it like function.getChanges(directory)?? Microsoft seems to make …

Software Development c#
Member Avatar for Barefootsanders
0
90
Member Avatar for SpiderKing

Im kinda new to programming, so my question is a simple one. I have came across term of data structures, and have been toying with some basic exsamples of them. While [CODE]int *pointer [10]; struct cell{ int death; }; int main () { cell test; cell * pointer[0]; pointer[0] = …

Software Development c++
Member Avatar for SpiderKing
0
79
Member Avatar for fishsqzr

This may be a NET bug, but maybe I'm missing something. I've been trying to trap a certain kind of error when using a DataGridView. The following describes the steps to generate the error. I used a typed dataset to make the example quick, but the same thing happens if …

Software Development dataset
Member Avatar for fishsqzr
0
557
Member Avatar for jrice528

In the retailitem.cpp I need to beable to increment x,y and z. So that is displays the next item. Heres what the code should output [code] Descriptio Units On Hand Unit Price ($) Item #1 Jacket 12 59.95 Item #2 Jeans 40 34.95 Item #3 Shirt 20 24.95 [/code] Heres …

Software Development c++
Member Avatar for Narue
0
108
Member Avatar for cmoodc

hi I have a practical exam after 1 hour and i dont know how can i write a 3D rotate function 3D scale 3D translate i need it in general form our teacher has a weak knowledge about his subject plz anyone can help me

Software Development c++ opengl
Member Avatar for invisal
0
94
Member Avatar for kv79

Hi to all, When i was reading the Win32 turtorial. A message is an integer value. If you look up in your header files (which is good and common practice when investigating the workings of API's) you can find things like: [code=Dev-C++] #define WM_INITDIALOG 0x0110 #define WM_COMMAND 0x0111 #define WM_LBUTTONDOWN …

Software Development api c++
Member Avatar for kv79
0
118
Member Avatar for Jakiro

hi all. I have a question need your all help. 1.what is the problem for my delete function,I can't delete the list that i select(but no error in that case) 2.how to build the search function with that prototype? [code=cplusplus] #include <iostream> #include <string> #include <cstdlib> using namespace std; struct …

Software Development c++ linked-list
Member Avatar for Duoas
0
91
Member Avatar for ma7boob

i had an error in the visual studio 2005 that for no reason, the menu bar is no longer there !!!! i cannt see the "File", "Edit", ....... menus even the help menu is not there so i contacted microsoft by e-mail, support, and telephone..... the didnt reply, they just …

Software Development microsoft visual-studio
Member Avatar for Ancient Dragon
0
219
Member Avatar for AdmiralGeek

hey, I am looking for a means to END my application in VB6 based upon my computers clock i know the function in VB.NET [CODE]If My.Computer.Clock.LocalTime.DayOfWeek = DayOfWeek.Wednesday Then End End If [/CODE] won't work in VB 6 tho. get a run time error "404 object required" any help at …

Software Development vb.net visual-basic
Member Avatar for Jx_Man
0
60
Member Avatar for maHvic

can you please help me how to make this program?? please... For VRC (Should all be contained in functions/methods/class) - Inputs > Message to be transmitted / Received Message should be captured in an Array (limited to letters, numbers and punctuations, as to: period, comma, exclamation point and question mark) …

Software Development c++
Member Avatar for Salem
0
102
Member Avatar for sravani

Hi, I want to know how can we connect to the Microsoft ODBC Drivers to the VB.

Software Development visual-basic
Member Avatar for Jx_Man
0
100
Member Avatar for edek

:The problem: enum:[CODE] enum Choice { A, B, C }[/CODE] I would like to pass it to function like that:[CODE] void function(Choice.A | Choice.B) { //how do I determine what was passed here?? //how to handle two or more values?? }[/CODE] Thanks in adv

Software Development
Member Avatar for alc6379
0
388
Member Avatar for LMR

I have stored time in an access database with a format of MediumTime, which displays in access as I want it, such as 7:30 AM. However, when I retrieve the time in my c# program, it also has a date (which is the wrong date anyway since I didn't enter …

Software Development
Member Avatar for alc6379
0
176
Member Avatar for chaosatom333

Hi, i merged two files into chem.out but i need to figure out how I would arrange them by atomic number and how i can eliminate the duplicates. Should I use structures? here is the program i wrote so far, [code=c] #include<stdio.h> #include<math.h> #include<string.h> void merge_chem(FILE * inp1, FILE* inp2, …

Software Development c
Member Avatar for Salem
0
260
Member Avatar for CodeMonkey775

I have an spreadsheet type application I am creating, but I ran into some problems with polymorphism. When all of the expressions need to be calculated, I compile it in CodeDom so I can evaluate the expressions. The whole spreadsheet is actually an object with rows and cells, so I …

Software Development
Member Avatar for alc6379
0
95
Member Avatar for soso30

dear all, i want to build applet viewing video from an ip camera which gives video type MPEG-4. how can i build that application?which api i need to work with?

Software Development api java video
Member Avatar for masijade
0
123
Member Avatar for firen

Hi All, I've been look for the solution for this problem for days.. any help is very much appreciated. My project invovles a small task that requires to generate three concurrent threads, it looks like: [CODE=C#]Main() { ........ //Start three threads; Start Thread1; Start Thread2; Start Thread3; //Wait for three …

Software Development
Member Avatar for alc6379
0
105
Member Avatar for 18041980

I need script for pinging the machines in subnet make list of alive hosts with there OS version redirected in a file. I am from System admin field and not aware of scripting and also beginner of UNIX. Thanks in advance.

Software Development shell-scripting unix
Member Avatar for 18041980
0
213
Member Avatar for sara_84

[code=c] #include<stdio.h> #include<string.h> /*#include<stack.h>*/ #define MAX 10000 #define TRUE 1 /*typedef struct node node struct node { int */ [COLOR="red"]int graph[MAX][MAX]; /* = { { 0, 1 },/* 0 1 0 */ /*{ 1, 1 }};2 0 0; */[/COLOR]int nodes; int fnodes; int counter2 = 0; int counter = 0;//Start …

Software Development c
Member Avatar for sara_84
0
155
Member Avatar for Ejl191

I'm trying to get my program to read from a text file, but the only way I'm able to get it accurate at the moment is to set the first loop to the number of lines of data that I have. I'm looking for a way to set it so …

Software Development c++
Member Avatar for Ejl191
0
98
Member Avatar for student101110

Hi guys. Im a student and i have a problem in finding the right procedure to solve my problem. Giving a set of numbers that will find their combination for a given value. For example 1st digit will be the size and the 2nd digit will be the qty.: Size …

Software Development algorithm visual-basic
Member Avatar for student101110
0
147
Member Avatar for jaepi

Hello there, do have any idea if there is a function that gets wchar from the stream, somewhat similar to fgets function. Thanks. :)

Software Development c++
Member Avatar for jaepi
0
148
Member Avatar for jaepi

Hello there, is there a function in Linux that can handle the reading of an .ini file? Thanks.

Software Development c++
Member Avatar for jaepi
0
1K
Member Avatar for qcwailun

I want to write a code for recording inventory item, all the functions work fine except the function for removing the data. I spend a lot of time in it but still cannot know what's wrong. Here is my code: [code=c++] #include <iostream> #include <fstream> #include <vector> #include <string> using …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
284
Member Avatar for chaosatom333

Hi, I copied one file into another but couldn't figure out how I would number the lines and put a heading on chem.lis, which is the output. here is the program i wrote so far [code=c] #include<stdio.h> #include<stdlib.h> #include<string.h> int main(int argc, char *argv[]) { FILE *inp, *outp; char ch; …

Software Development c file-system
Member Avatar for Duoas
0
271
Member Avatar for slayer10

i want ot make a 2-dimensional array of JToggleButtons to store toggle button names but i cant figure out the snytax Please Help!

Software Development java
Member Avatar for slayer10
0
289
Member Avatar for nikki_2000b@hot

Hey there, I am writing MIPS assembly for computing the gcd of two given numbers (recursively), but am struggling! I vaguely understand changing the frame point counter, stack pointer etc. but I'm really at sea with how to implement the algorithm recursively (e.g. how to check if each number is …

Software Development algorithm assembly
Member Avatar for Duoas
0
2K
Member Avatar for dabronx1671

I'm trying to write a program for the Blackjack game but I keep getting an error message saying "; expected" but I don't understand why a semicolon would be needed. The line of code that it occurred was: "boolean playBlackjack()"

Software Development java
Member Avatar for Ezzaral
0
73
Member Avatar for simps0n

Hello, guys! I have to make a program with the following features. - [B]array of records[/B][code=Pascal]TYPE employeeRecord = RECORD name: STRING; surname: STRING; age: Integer; END; employeeRecords = ARRAY OF employeeRecord ;[/code]- [B]a procedure/function to ADD data into the array[/B] I did this one and I think it is working …

Software Development pascal
Member Avatar for simps0n
0
1K
Member Avatar for kaly12

This is a part of a c++ program: cout<< "Width:" << Width << "\n"; cout << "Length: " << Length << endl; what does the "\n" do in oppose to endl; ? also, when do you use void main instead of int main at the beginning of the program?

Software Development c++
Member Avatar for invisal
0
92
Member Avatar for BensonRoss

Trying to write a program that will add two vectors (of type vect_t) and return a vector of type vect_t. Though I can't get my add_vect function to work. lots of redefinition errors telling me different basic types, and i can't figure out how to make it work right. Any …

Software Development c
Member Avatar for BensonRoss
0
99
Member Avatar for Chris147

Hi All. Does anyone know how to get the ShareName of a Local Drive? Or even if the Local Drive is shared? I know you can get the ShareName using FileSystemObject, but this only works for Network Drives (Local Drives return ""). Any help would be greatly appreciated. Thanks, Chris.

Software Development visual-basic
Member Avatar for Chris147
0
80

The End.