132,726 Archived Topics
Remove Filter ![]() | |
Hello everyone, I need some assistance in finding an error in my Delphi code. (I am new to the Delphi programming). I am using a Delphi application to build an excel spreadsheet. When a part_number is entered for the first time(assuming it exists in db) application always runs , the … | |
here is the assignment . To make telephone numbers easier to remember, some companies use letters to show their telephone number. For example, using letters, the telephone number 438-5626 can be shown as GET LOAN. In some cases, to make a telephone number more meaningful, companies might use more than … Software Development c++ | |
I need an array listing the index number for a list of n elements and when I sort it in descending order, I need that same number to be with the element. Here's the code I have so far: [code] #include <iostream> using namespace std; int Partition(int low,int high,int arr[]); … | |
I had a hard time understanding the concept of memory in a computer, but something my Instructor told me gave me some hope. He mentioned that memory isn't really created upon invocation of "new" in C++, and stated also that memory isn't really removed upon the invocation of "delete." I … Software Development c++ | |
im sorry but i need help in plotting this graph on python, been doing it for the past 6hrs and i cannot generate the graph, would really really appreciate some help in it. [code=python] n=range(1,201,1) L=0.016 data=[] aetemplist=[] dxlist=[] ot=[] nlist=[] for i in n: etemp = finTempNum(i) ot.append(etemp) dx=L/i … Software Development python | |
Hey guys, this is my first post and I would like to say thank you to all of you guys out there that are doing such a great job with helping out on this forum. Anyway, lets get to the question. Why, in the code below, does the char values … Software Development c++ | |
Hi, I'm working on a program that models the trajectory of a baseball with drag. The program compiles okay and links okay. However, during runtime I get a segmentation fault. I remember when I was learning how to program in C several years ago that segmentation faults occur a lot … Software Development c | |
i have taken a masked text box for entering dob however i need to validate it...ie suppose if a user enters a date more than the current date it should give an error. i tried using system.datetime fun however i get error as it is a part of system and … Software Development vb.net | |
Hi guys, I've written a couple of program modules ,one main program that imports the other. The problem is when I run the imported module it's fine but on exiting it closes my main program with it. Both modules work ok otherwise, also I can run them individually as well. … Software Development python | |
I have decided that a text adventure would be better for me to learn from, as a visual game is confusing to me still. So, I was reading Chris O'leary's post about his text adventure game, Advent House, and got many ideas from there. I want to perfect his battle … Software Development python | |
Hi guys, I'm new to this forum and this is my first post :cheesy: I need help in modifying a "Snake game" program.. What I need to do is **modify the program so that when it starts (i.e. the AVR microcontroller is reset) it displays a message giving the name … Software Development c display first-post | |
Hi everyone! How do I make a textBox control to validate a tel nr field? For instance When the user enters 0127748222, It should be displayed as (012) 774-8222 in the textbox. I need this to be done this way since this is the way i'll be storing the fields … Software Development vb.net | |
Is it possible to read a whole file at once with text files, or can I only use fgets and is that the most data I can fetch at any time? (fread() doesn't work on text files, I've experienced and then been told ;-)). Thanks in advance, PS: And suppose … Software Development c | |
i have a problem with a simple program. my program has a label. i tryed to add event handlers for both mouse down event and mouse double click event. it seems that when these two handlers are defined, only the mouse down event is responding. the double click event simply … Software Development | |
I can get everything to run perfectly, it is just when I print out the final grade, it will just give me a blank for it. Maybe I'm doing something wrong in my finalgrade function, but i don't know....I need help! [CODE=Cplusplus] #include <iostream> #include <iomanip> using namespace std; const … Software Development c++ | |
I have 2 tables: [B][U]IDM_IDEA_USERS[/U] USER_ID PASSWORD SAP_ID[/B] [B][U]IDM_IDEA_AUTHORIZED_USERS[/U] SAP_ID[/B] I need to retrieve information from table [B]IDM_IDEA_USERS [/B]column name [B]USER_ID [/B]and [B]PASSWORD[/B]. I also need to verify that only [B]SAP_ID[/B] from [B]IDM_IDEA_USERS [/B]table is the same as [B]SAP_ID [/B]from [B]IDM_IDEA_AUTHORIZED_USERS[/B]. Only the users from [B]IDM_IDEA_AUTHORIZED_USERS[/B] can login. This are … Software Development vb.net | |
I have written a text editor that sorts lines, I plan to use it with some large files. say about a million lines, ranging between 10 and 75 MB. I am currently testing my app using about a 50mb file with about 900,000 lines. the program adds all the lines … Software Development | |
Hi, I want to create a message box that will pop up when someone clicks the close button. Basically just to confirm that they want to exit the database with yess, no buttons. Can anyone give me the code. Cheers Software Development visual-basic | |
I am trying to write a recursive function that compute a to the n. here is as far as I have gotten as far as code [code=c] #include "stdafx.h" #include "stdio.h" int power (int n); // function prototype// main() { float a; int n; printf("\n enter values of a an … Software Development c visual-studio | |
I am mostly done working on the homework assignment for my class, it requires that I complete an employee directory system that takes a user input value and compare it to 3 values employeeName, employeeID, and phoneNumber. The system must work in such a way that if the search is … Software Development java | |
Hey guys, Well i've been wondering something. How would you go about doing something like say if 'a' or 'A' is pressed do something for example move a file. Thanks, Clipper34. Software Development c++ | |
I wan't use the multimap on my own templated class. The following is a working example with a builtin type. [CODE=c++] int dat[5] = {0,6,3,7,3}; typedef std::multimap< int, int > asso; asso dict; for (int i=0;i<5;i++){ dict.insert(make_pair(dat[i],i)); } asso::iterator pos; for(pos=dict.begin(); pos!=dict.end() ;pos++) cout << pos->first <<" next "<< pos->second … Software Development c++ | |
Write a program that asks for the name of a pole vaulter and the dates and vault height (in meters) of the athlete's three best vaults. It should then report in order of the hieght (best first), the date on which each vault was made and its height. Input Validation: … Software Development c++ | |
I use winsock a lot in my programs and it is very good but I can't achieve a connection when one of the users is behind an adsl router. What should I do in order to make the connection? I tryied port forwarding but the problem remains. The applications I … Software Development visual-basic | |
Wrote this script to send a zip file that gets created every day and sent to a FTP server. In line 16, getting a windows 183 error cannot create file that already exists. I am using os.rename, and it works if I run it stand alone. Any ideas? [code=python] import … Software Development python windows-server | |
consider my input file has the following data date type of transaction amount 1 w 100 2 d 230 3 d 550 4 w 430 5 d 1100 6 d 400 so i need to sort the amount in ascending order.So when i sort the amount,the corresponding date and transaction … Software Development java | |
hi, I'm a Computer Engineering student from Portugal in the 2ºterm. Last class' job was for us to use class and sub-class systems, creating a info system for vehicle types. I thought I was finished, but when I did the main file, the compiler shouted loads of errors that didn't … Software Development c++ engineering | |
hello,I would like to create a class for basic file operations-just reading and writing a line.There seems no error in my program but it doesn't output anything.I think there is a problem with the functions for reading and writing.Please help... [code=C++] #ifndef HANDLER_H_ #define HANDLER_H_ #include <iostream> #include <fstream> #include … Software Development c++ file-system ios | |
This problem has been driving me crazy, I just can't seem to find anything in the Python docs. I've been working on a script, It connects to a remote server and downloads multiple RAR files as a "job", it then extracts them to the correct place. It works, but I … Software Development python | |
I have a problem with bulding a program to store a family record, this record consits of : name, birthday, married? and number of child. What is the best way to store this record??? Could you give me some example about some task on this structure : Input name and … Software Development c | |
Can anyone tell me if there is any function for replacing multiples substrings within a string. For instance we have this function call to replace multiple appearances of the same substring: [CODE=python] newLine = line.replace(';', '_') [/CODE] Here I replace all appearances of ';' with '_' But what I need … Software Development python | |
I am drawing on a bit my, then re-loading the bitmap(to erase it) then drawing on it again at 100Hz. I am getting flicker. Is there a way to reduce this flicker? Or a better way to do this than to reload the bitmap everytime? Thanks. Software Development c++ | |
Hey, ive written a piece of code which reads from a file called test.txt. all it does is use strtok to seperate the data from the spaces because there are alot of them, and then print them out, this worked fine when i did a test for just 1 line, … | |
Hello, I have a datagrid with 2 columns.Both the columns have textboxes where user will enter data.And at the end of the grid there will be button in insert all the data into the table. I have user xml variable in my stored procedure. In the gridview I have kept … Software Development xml | |
Logic circuit builder is a software that simulates AND,OR,XOR gates.I want to give it an attractive GUI wherein gates can be dragged/dropped.How do i accomplish drag and drop in Java?For instance if there is a buuton with an AND gate.if the user clicks on it and drags the mouse pointer … Software Development gui java visual-basic | |
I am having difficulty with nested loops. I am attempting to create a program that has the user enter monthly data during the course of a three year period. here is what I have so far. [code=C++] #include <iostream> const int Months = 12; const int Years = 3; int … Software Development c++ | |
Hello, I don't know any Perl but I do know Java. I am studying about Push down automatas at the moment and wanted to make a simulator for myself. I have found some code in Perl that does it but I do not know how I can go about using … Software Development data-structure java perl storage | |
I.ve problem with java image processing.I've to convert 2d array into image.I'm using the loadPixels function, but it doesen't work.The Image is never shown on the label. Please help, here is the code of the loadPixels function: [CODE] public static void loadPixels(JLabel label, int[][] pixels) { // 1. convert to … | |
i'm trying to control four separate lighting arrays using a timer overflow interrupt to control four pulse width modulations. at the same time i want to be able to control the pwm frequencies using serial communication. i'm using a version of pic lite for my compiling and can compile my … Software Development c | |
Hello, I have a file with the data as shown below: ATOM 2 CA ARG A 1 6.324 32.707 50.379 ATOM 13 CA THR A 2 5.197 32.618 46.826 ATOM 20 CA ASP A 3 4.020 36.132 46.259 ATOM 28 CA CYS A 4 7.131 38.210 45.919 I am a … Software Development perl | |
i need help removing spaces from a string..how do i go about this?? i have to report back the number of spaces too but ive been able to do that thnx (i dont want to use any of the string functions in the string library) [code] #include <iostream> int stripspaces(char … Software Development c++ | |
Ive been given a task where i read in a line of text from a file, and then need to seperate that line into seperate strings, ive done this however I also need to keep some attatched... the file contains "abc def ghi jkl mno", this is read in using … Software Development c++ | |
I have been working on this assignment for a while and cant get the end result to work. Can anyone help? Assignment [QUOTE]Write a function called sumTo that takes as arguments two integers. Your function should use a loop to sum all of the numbers between the two (This includes … Software Development c++ | |
Sorry for asking the topic that asked before... but im still dont know how to use that.. Below is an example create by me.. I hope that someone can tell me which part have to fix ... This is the header file: [CODE] int check_SkipCard (string input) { int SkipCard=0; … Software Development c++ | |
As a beginner VB 6.0 user, i have tried to make a simple database-link VB project. There were problems when i used a Microsoft Access Database which have some combo-boxes field (made by look-up wizard options). Is there any way for me to make the combo-box field in the database … Software Development microsoft-access visual-basic | |
I have a problem with bulding a program to store a family record (genogram), this record consits of : name, birthday, married? and number of child. What is the best way to store this record??? Could you give me some example about some task on this structure : Input name … Software Development c++ | |
I am using a List where I wonder how it is possible to find the MaxValue searching trough Value1[0] until Value1[3]. In this case it should return: 12 I have found a ::Max function but this will only consider the 2 values inside the paranthes wich then will return: 100. … Software Development c++ | |
I am using this in the std:: to check for the first occurance of " " backwards (rfind). If I go managed .NET, I wonder if there is any simular method for this using str-> [code] std::string::size_type index2 = str.rfind(" ", index - 1); [/code] Software Development c++ | |
I am coding a unit in Delphi 2007 and everything has been working fine. Suddenly, pressing the "return" key merely moves the cursor to the next line instead of throwing a new line I switch to another program (word processor) and that program works fine. I have rebooted, but that … | |
How would I reuse functions in C? I've tried simply sticking them in a [icode]#include <myfunctions.h>[/icode], but that didn't work... Any (complete) suggestions/links on how to do this? I googled some and found this: [code]The way to write a header file is: functions.h: int sum( int a, int b) ; … Software Development c |
The End.