132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
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 … | |
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() - … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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++ | |
[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 … | |
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 … | |
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 | |
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 | |
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 | |
How to find memory leaks in java? And preventive methods advisable? Software Development java | |
is there a way to implement a graphical scrollbar? the vb6 one is kinda ugly. Software Development visual-basic | |
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++ | |
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 | |
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 | |
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++ | |
[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 | |
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 | |
Can any one help me find some code to start building an OutlookPanel? Software Development java | |
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 | |
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 | |
[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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ ![]() | |
anyone knows what event can I fire when I edit the contents of a datagrid cell ? Software Development | |
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++ | |
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 | |
#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++ | |
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 … | |
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 | |
[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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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]; }; … |
The End.