132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for np2100

I am trying my first encryption program and I want to convert the letters to numbers then do an equation to change the numbers. Then when the encryption is done it should be a bunch of random numbers then the decryption should come back to normal (what the user input …

Software Development c++ encryption
Member Avatar for np2100
0
128
Member Avatar for eesti44

Hello, I was trying to work a problem from the book and decided to compile and run sample code that is already supposed to work. The problem is it doesn't. The concept of breaking these files up is new to me. Can someone please let me know what to do? …

Software Development c++
Member Avatar for eesti44
0
155
Member Avatar for edborelly

Hello Everyone, I am trying to write a perl script that finds files that have not been accessed for x amount of days. I coded it using a system call with an unix find command: system("find ${directory_path} -follow -type f -atime +${max_days} -exec /usr/bin/ls -lurt > $results_file {} \\;"); but …

Software Development perl unix
Member Avatar for edborelly
0
149
Member Avatar for elvenson

Im very new to SQL in general, let alone coding it into python. I can interact with a MySQL database just fine for the most part, but im running into some problems here... This is the function in my script that keeps raising errors: [CODE=python] def NewChar(): """ NewChar() - …

Software Development api mysql python
Member Avatar for elvenson
0
281
Member Avatar for g_loughnan

Hi there, I have this null pointer exception error in my code which I can't fix. I'm just trying to create an interface which can display an image, text and 12 buttons all at once. I've checked out loads of other threads, but I can't see where the Null entry …

Software Development java java-swing
Member Avatar for g_loughnan
0
148
Member Avatar for majestic0110

HI all am trying to construct this hybrid of java and mysql. the data comes from a mysql database and I want it to display in the gui. this I have achieved thus far. However I have buttons that sort by surname, first name, ID tag etc....I need event handlers …

Software Development api gui java java-swing sql window-manager
Member Avatar for majestic0110
0
225
Member Avatar for Srynx

Hi, I'm working in a 4x4 sudoku solver and i'm a beginner in c++. I use Microsoft Visual Studio 6.0 and windows xp professional Variables are: a1 b1 c1 d1 a2 b2 c2 d2 a3 b3 c3 d3 a4 b4 c4 d4 First i wrote that program [CODE] //sudoku.cpp: #include<stdlib.h> …

Software Development algorithm c++ visual-studio
Member Avatar for Srynx
0
136
Member Avatar for rajatC

i m new to java...i made my first applet...a simple applet to showing "THIS IS MY FIRST APPLET"..but it's not working...i m not able to see it in mozilla firefox and IE7... plz help.. the code is here... [B]tryApplet.java[/B] [code=java] import java.awt.Font; import java.awt.Color; import java.awt.Graphics; public class tryApplet extends …

Software Development java
Member Avatar for rajatC
0
143
Member Avatar for yangchen60

Hey guys ----------------- Truck t; Car c; Vehicle *broom = &c; broom->drive(); broom = &t; broom->drive(); ----------------- by saying Vehicle *broom = &c; what do you actually do ? what it means? *broom is a pointer located on c's adress in memory ? Is that right? thanks

Software Development c++
Member Avatar for dubeyprateek
0
66
Member Avatar for stubBuddy

The following code consists of 2 functions: one called Options and the other called checkOptions. The Options function is fine. No problem, it is taken from Johnson M. Hart's book. The second function was added on to attempt to complete an exercise at the end of the chapter. Okay, the …

Software Development c
Member Avatar for stubBuddy
0
176
Member Avatar for Brent.tc

I need to know how (if even possible) to return a substring without having to return a local variable or space allocated by new here's some code as an example as to what I'm looking for. [code] char* substr(const char* str, int start, int len) { char retSub[len+1]; int pos=start; …

Software Development c++
Member Avatar for Salem
0
106
Member Avatar for revenge2

hello, I am following a book and im stuck on this one.....(note it's tacky but just bear with me, im a newb)[CODE] #include <iostream.h> int main() { int RedSoxScore, YankeesScore; cout<<"Enter the score for the RedSox:"; cin>> RedSoxScore; cout<<"Enter the score for the yankees:"; cin>> YankeesScore; cout<<"\n"; if (RedSoxScore > …

Software Development c++
Member Avatar for Ancient Dragon
0
130
Member Avatar for hidash_in

[B]hi all, i have to get the number of pages for a pdf document using java. i checked in java pdf api library but i have not get the correct idea. can anybody help for my work pls. if u have code for that na pls send me. advance thanks …

Software Development api java pdf
Member Avatar for peter_budo
0
670
Member Avatar for george22_jk

hello i am george.i have to do 2 exercises in c/c++ and i dont know a lot of programming.the exercises are: 1) code for depth first search with adjacency list for every graph 2)code for Dijkstra algorithm with weight graph if somebody knows something(code,links,etc...) that could help me please contact …

Software Development algorithm c c++
Member Avatar for Salem
0
177
Member Avatar for degamer106

I'm stuck trying to figure out how to update the text field after I click on the button in the GUI. The number of roaches is supposed to be updated each time I click, but I can't seem to find the right tool for the job in the APIs. RoachPopulation.java …

Software Development gui java java-swing user-interface
Member Avatar for javaAddict
0
116
Member Avatar for P90K

Im new whith vb6, i onley now de basic of it. but i have a problem with excel. I opend and existing excel file with vb6 in a private sub. [CODE]Dim xlApp As Excel.Application 'Nodig voor werken met excel Set xlApp = New Excel.Application 'excel openen xlApp.Visible = True xlApp.Workbooks.Open …

Software Development visual-basic
Member Avatar for P90K
0
116
Member Avatar for azalia

I want to pass a float array from one function to another function I want to make use of the float array type(here container) [code=c] void funct1() { float container[4]={0.1,0.2,0.3,0.4} void funct2() ----(1) {return container;} } void funct3() { void funct2(); use container array; }void funct1() { float container[4]={0.1,0.2,0.3,0.4} void …

Software Development c
Member Avatar for Narue
0
87
Member Avatar for argopal

How to find memory leaks in java? And preventive methods advisable?

Software Development java
Member Avatar for majestic0110
0
83
Member Avatar for jayDC

is there a way to implement a graphical scrollbar? the vb6 one is kinda ugly.

Software Development visual-basic
Member Avatar for jayDC
0
66
Member Avatar for Butterflieq

Hey guys gotta quick question for ya. I'm trying to figure out the best way to write an array for the following: (1) Hot dog 1.50 (2) Fries 1.00 (3) Lemonade .75 (4) End order You should be allowed to keep ordering from the menu until you press 4 for …

Software Development c++
Member Avatar for neosomosis
0
150
Member Avatar for ahmedusa2005

Dear Members I have started the following program, and I do not know how to solve the issue to store names in an array and retrieve them again, and how tos tore the names in a file in the Hard drive. If somebody could help me with my issue. Thanks …

Software Development c++ hard-drive
Member Avatar for neosomosis
0
98
Member Avatar for welbyobeng

Ok am new in java programming and I am trying to conduct a simple class called Area. If anyone know anything about java you can help me. I am writing a class that has three overloaded static methods for calculating the area of the following geometric shapes. circles rectangles cylinders …

Software Development java
Member Avatar for javaAddict
0
266
Member Avatar for eranga262154

Hi all, I want to find the number of words in a rich edit control. There is no direct class member to do this. So I think if I can count the number of word break and line brake then it is easy. But it is also not easy. On …

Software Development c++
Member Avatar for WolfPack
0
898
Member Avatar for samari

[code=c] void main() { TRISA=0x00; TRISB=0x00; while(1) { PORTB=0x06; PORTA=0x01; delay(10); PORTB=0x5B; PORTA=0x02; delay(10); PORTB=0x4F; PORTA=0x04; delay(10); PORTB=0x66; PORTA=0x08; } } [/code] This a few program that i make in creating a scoreboard for basketball using PIC 16f84a..Is this program correct??

Software Development c
Member Avatar for Colin Mac
0
183
Member Avatar for jobs

I have a C program I am writing and need this program to write to syslog and have the logs in a separate file for my program. Eg. My program is called "example.c", then I want to have a log file called "example.log" in /var/log. Do I define log file …

Software Development c
Member Avatar for WaltP
0
1K
Member Avatar for ceyesuma

Can any one help me find some code to start building an OutlookPanel?

Software Development java
Member Avatar for masijade
0
106
Member Avatar for Queue

After writing out the main functionality for my templatized data structure, I am stumbling with the syntax to allow for Compare (so the user can provide a definition for less). If I am not mistaken, I need to add at least another constructor. I tried reading the STL implementations for …

Software Development c++ data-structure
Member Avatar for Queue
0
215
Member Avatar for kaizen202

Hi All I want to catch an error and report it into a Database in a remote server.(C#.NET). Can anyone help me?. thanks in advance....

Software Development
Member Avatar for kaizen202
0
97
Member Avatar for jobs

[QUOTE]The function time() retrieves the current calendar time from the system's clock. It has the following prototype: time_t time(time_t * tp); In systems in which no clock is available, the function returns -1.[/QUOTE] Part 1: I found this on the internet. I have a question about the above quote where …

Software Development c
Member Avatar for Ancient Dragon
0
105
Member Avatar for balla4eva33

If I have a const char * of "bad,cold,new" how can I count just the number of commas? Do I need to convert it to string? If so, how do I do that? Do I need to convert all the commas to zeros first? How do i do that?

Software Development c++
Member Avatar for balla4eva33
0
163
Member Avatar for raija09

anybody out there who can make a program that adds a user input... for example... if the user enters 123456... the program must add 1+2+3+4+5+6 and display its sum; thats all... please help me on this... really need it... tnx a lot...

Software Development vb.net
Member Avatar for ericstenson
0
99
Member Avatar for White-Gandalf

Introduction: I already tried to post this on the dev-c++ - forum at sourceforge, but didn't check for the far too low frequency at that forum (about two questions per week). Thus i tried t find a better visited one and found this here. I use: Dev-C++ 4.9.9.2 Windows XP/SP2 …

Software Development c++ ide microsoft-access
Member Avatar for White-Gandalf
0
131
Member Avatar for chubajj

Hi guys Im making a program in assembly that copies all of the text files from one folder to another , the problem that i have is how to join the path from the folder whit the name of the text files that the program reads. Ex: dest folder: num1 …

Software Development assembly
Member Avatar for Duoas
0
62
Member Avatar for xcoaster1

I have a script I'm currently working on where the user inputs the information into a form, previews the page and then a email is sent to the appropite party. Currently, this is all functional except after the preview screen, the email produces the information in the box, but adds …

Software Development perl
Member Avatar for KevinADC
0
142
Member Avatar for n.aggel

hi, i have the following program [CODE]see the attachment[/CODE] when i try to compile through the command line {with the scipt compile} everything works fine... when i try to use my makefile...i get tons of errors.... It is my first serious try with makefiles and i would like some assistance …

Software Development c
Member Avatar for Barefootsanders
0
94
Member Avatar for Tell Me

hi may I bother you a moment :icon_redface: the follow program is without compilation error but whin I running , load error appear can you help me what is the error :( :( [CODE]#include <iostream> #include <string> using namespace std; bool function () { int ascii; string s1= "word" ; …

Software Development c++
Member Avatar for iamthwee
0
88
Member Avatar for claudiu_is

anyone knows what event can I fire when I edit the contents of a datagrid cell ?

Software Development
Member Avatar for claudiu_is
0
144
Member Avatar for manster

I'm stuck because I recieve these errors when I try to compile - pim.cpp: In method `void PIM::search(class basic_string<char,string_char_traits<char>,__default_alloc_template<false,0> >)': pim.cpp:101: member `firstname' is a private member of class `Person' pim.cpp:101: member `lastname' is a private member of class `Person' pim.cpp:105: no matching function for call to `PIM::print (Person &)' …

Software Development c++
Member Avatar for vmanes
0
187
Member Avatar for Shiv_Aptech

Hi EveryBody,I m a newComer in this Site.....Very glads to join this Site.......It will give me opportunity to solve JAVA programmings easilly.....I have a problem in Java Exceptions and Threads.....Please help me on this Topic that make me Sure...... Again Thanks to all of U as joining me............

Software Development java
Member Avatar for majestic0110
0
42
Member Avatar for kv79

#define ID_FILE_EXIT 40001 #define ID_FILE_OPEN 40002 And all other things like this which have these number .Which number i can use for my own ID 's ? And where i can find all of this? I try a MSND but it took me too much time so i ...?

Software Development c++
Member Avatar for kv79
0
183
Member Avatar for squidd

plenty of examples on the net for I think pascal version .00000011 hehe I cant seem to get it to work properly. Better yet, a component to load binary files into a memo, listview, richedit, etc would be even better. Any ideas? Ive been looking into this for a few …

Software Development delphi listview pascal
Member Avatar for squidd
0
129
Member Avatar for yemen2007

hi Dear Friend i an the new member. i have problem in the xml file. my idea for project write to xml file and read the xml file and display to many the textBox. could you help me.i want display each value to sprat textBox..i want only for the read

Software Development display xml
Member Avatar for yemen2007
0
194
Member Avatar for nicz888

[code=c++] // Stopping input with an empty string #include <iostream> using namespace std; #include <cstring> int main() { int i = 1; char temp[80]; char string[80]; // room for 255 strings cout << "\n\nEnter some strings - (blank to exit)" << " \nfirst string: "; cin.getline(temp, 80); while (temp[0] != …

Software Development c++
Member Avatar for neosomosis
0
126
Member Avatar for alcoheca

Hi, I am storing strings in '|' delimited format in a text file. Each new line represents a new record. for instance [CODE]|Name|Age|Favcolour| |Name2|Age2|Favcolour2|[/CODE] I'm using a string vector to hold the tokens as they're pulled from the ifstream, However if one of the fields has not been filled in …

Software Development c++
Member Avatar for alcoheca
0
96
Member Avatar for Nbkrooney

I am looking to make a small program that will cut down the repetetive need to insert BB tags in to achievements lists on a site I work for. So far I have got the algorithm sucessfully reading the first line of the file, and outputting it using cout. The …

Software Development algorithm c++ file-system
Member Avatar for Lerner
0
165
Member Avatar for java_programmer

Hi, I am new in java. I have a question for which I am not getting suitable answer. My question is that why vector is called synchronised? Can anybody please clarify me why vector is synchronised?

Software Development java
Member Avatar for Ezzaral
0
248
Member Avatar for Kob0724

So for some reason I can't seem to set the background color of a JTabbedPane. This code: [code] metaTabPane = new JTabbedPane(); metaTabPane.setOpaque(true); metaTabPane.setBackground(Color.green); [/code] does nothing. The JTabbedPane stays the same grayish-blue default color. What am I doing wrong?

Software Development java
Member Avatar for Ezzaral
0
741
Member Avatar for haelly

modularize program code by using functions. You will produce two solutions: a) using global access functions, and b) using classes and member functions. a) Using Access Functions Write five Invoice access functions: setInvoice(), computeAmount(), getAmount(), printData() and a global client function computeAmount(). Function setInvoice() has five parameters of types Invoice, …

Software Development c++ data-structure
Member Avatar for Narue
0
341
Member Avatar for rajatC

i want to calculate the exact run time of my program in [B]seconds[/B]....i used [B]clock() function of time.h library...[/B] what i did is that i made two [B]clock_t [/B]type objects... initialized one of them in the start of main() function and the other in the end.. and calculated the difference..as …

Software Development c++
Member Avatar for Narue
0
194
Member Avatar for abhi_elementx

Hello folks! I have just joined this forum. This is actually my first Thread on the internet and need help with using STL sort function. I searched the forum but no related answer was found. Okay...here's my code; [CODE] #include<iostream> #include<vector> #include<algorithm> using namespace std; struct MyStruct{ int array[10]; }; …

Software Development algorithm c++
Member Avatar for abhi_elementx
0
244

The End.