132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dondajr

Hi everybody o/. I'm studing Linked List in C. I made two functions: add ( add data on the list) and destroy (destroy the list). For now, it's just this two functions that i need, but the function destroy doesn't works well. When I call the function destroy only the …

Software Development c linked-list
Member Avatar for dondajr
0
274
Member Avatar for shinsengumi

Hi all. Is there a command in C that can delete a string contained in a longer string and then replace the deleted string with another? Big thanks to those who can help me with this.

Software Development c
Member Avatar for Adak
0
584
Member Avatar for stepamil

Hi All, I'm using SOAP::Lite to do some online payments. The whole mechanism is set on separate machine which is communicating with payment gateway. So WWW machine sends a message to invoke SOAP::Lite and SOAP message is sent to payment gateway. In development I had both "machines" running on one …

Software Development api perl
Member Avatar for d5e5
0
217
Member Avatar for chchew90

[code]import javax.swing.*; import java.awt.*; import java.awt.event.*; class CelsiusTemperature extends JFrame implements ActionListener{ private double readingInCelsius; private JButton button; private JTextField field; private JTextArea area; private JLabel label; public CelsiusTemperature(){ setSize(500,200); setLocation(250,150); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); label = new JLabel("Celsius"); field = new JTextField(20); button = new JButton("Convert"); area = new JTextArea(10,20); Container container; …

Software Development java java-swing
Member Avatar for Javam
0
110
Member Avatar for KasunL

Hi! Can anyone please point me to any good C# book or tutorial, which includes a step-by-step guide to building an example Windows Database program?? Thanks for any help!

Software Development
Member Avatar for techturtle
0
112
Member Avatar for bklynman01

Hello, I have two DataGridViews in one window. The first one displays 2 columns, itemNo and task. When I click on a row in this grid, I want to populate the second grid with corresponding material. It is organized so that the itemNo in grid1 is 1, 2, 3, and …

Software Development dataset sql vb.net
Member Avatar for bklynman01
0
112
Member Avatar for Ephexeve

I've been looking for an exercise book for Python, a book that we get some stuff to code, like ideas, and etc. I have already finished the "Invent your own computer games with Python". Is there any other book? Thanks in advance.

Software Development python
Member Avatar for Ephexeve
0
229
Member Avatar for triumphost

K I just got this Idea that I want to implement into a program I downloaded. Yes the program is open source but I dont wanna compile it, I just want to sort of Inject?.. What I want to do is add a button to the program and have the …

Software Development c++ open-source
Member Avatar for triumphost
0
126
Member Avatar for Incubator

I just learned about Recursive functions and they seem very confusing to me, and hard to trace the logic, sometimes i end up staring at it pretty much time to understand the logic, so i can write it. So, i was wondering if there are some simplified steps i could …

Software Development c
Member Avatar for rubberman
0
118
Member Avatar for El3et

Im learning about postfix and prefix operators and how to overload them. I've created my class with overloaded pre and post fix operators how ever when used in the main program the results aren't what I expected. The program creates a simple shape from a class that has default constructor, …

Software Development c++
Member Avatar for El3et
0
134
Member Avatar for tomrock_shi

i have this list, about some company payment , in the list, some company pays two times in a particular day. i need to write a perl program to add up the company's total payment for that particular day such as eid date amount 00101 2009-12-21 3009 00101 2009-12-21 165 …

Software Development perl
Member Avatar for d5e5
0
95
Member Avatar for sirlink99

Does anyone know of or have a website where you can upload your applets and other people can play them? (like kongregate for flash games) and maybe even make some money every time someone plays your game? If you're wondering why, I need money for school. 0.o

Software Development flash java
Member Avatar for javanoob101
0
135
Member Avatar for leo88

Hi, i wants to add key and value of enumerator into a dictionary list, what should i do? My code as below: [code] public void Display1() { Dictionary<string, double> sortList2 = new Dictionary<string, double>(); Dictionary<string, double> sortList3 = new Dictionary<string, double>(); foreach (string sortComb in listbox1.Items) { if (!(sortList2.ContainsKey(sortComb))) { …

Software Development
Member Avatar for leo88
0
382
Member Avatar for |Mike|

Hello! I'm trying to modify opensourced application but due to lack of knowledge, I'm stuck. Explantions are in the comments of the app :-) Thanks in adavance for your support! [CODE]void CBaseGame :: FixSlots( ) { struct Struct1{ list<string> UserList; list<CGameSlot> PlayerSlots; }; list<string>::iterator IT; list<CGameSlot>::iterator TI; for( vector<CGamePlayer *> …

Software Development c++
Member Avatar for mike_2000_17
0
232
Member Avatar for prishe

hi.. i need help in comparing value from the same table for my final project. example : table 1 : SubjectCode Classes Sub A class 1 Sub A class 2 Sub A class 3 Sub B class 2 Sub B class 3 Sub B class 4 Sub B class 5 …

Software Development vb.net
Member Avatar for prishe
0
202
Member Avatar for udinnet

I made my own program for N-queen problem (A popular algorithm in Data Structures). Check this code and post your suggestions. If you have any ideas for the improvement of algorithm speed, please post here. Thanks. [CODE] #include <stdio.h> #include <stdlib.h> //N-Queen Chess problem solving Algorithm// //Note:- Uncomment The printf("") …

Software Development algorithm c
Member Avatar for Adak
0
520
Member Avatar for Tazsweet19

I tried to figure out the Queue with moveup and movedown (like swap). But I will make the consoleApplication but i can't make the window forms application. I want to know about it. If I will make thread safe too. Thanks.

Software Development queue
Member Avatar for ddanbe
0
86
Member Avatar for Tackey

Can someone help me with these codes. I'm trying to validate the date(e.g if the users entered February 31, which is not an existing date, the program should give an exception output). Aside from this, we are required to do our own exception. Thank you! [CODE]class MyDateException extends Exception {} …

Software Development java
Member Avatar for Tackey
0
127
Member Avatar for gmdune

i, Here is the scenario I'm dealing with: My company has a bunch of old servers and workstations that have data on them that I need to copy to a "drobo" (multi-storage device) and eventually send the storage unit to someone else. I have a list of "contract numbers" that …

Software Development shell-scripting storage
Member Avatar for gmdune
0
136
Member Avatar for crankyslap

Hey guys, I got my application working fine but it's using a constant 50%-ish of my CPU power, which is way too much I believe. Can any of you figure out what's causing this, or tell me how I can find out myself? :) What we're doing is reading a …

Software Development data-structure dataset regex vb.net xml
0
105
Member Avatar for JamesCherrill

Hi y'all. I'm looking for feedback and discussion on the use of annotations to eliminate the boilerplate code for linking buttons and methods. Hopefully this will be especially useful in RAD or rapid prototyping environments. Over the weekend I hacked together a little proof of concept that supports two ways …

Software Development gui java
Member Avatar for JamesCherrill
0
206
Member Avatar for comSysStudent

Hi all, I have a programming assignment to store sparse matrices using a list<list <myclass> >. I have pretty much everything nailed down but I'm going wrong at some point, the output is incorrect. Instead of giving me 4 lines with the column position and value of non zero values …

Software Development c++ matrix-multiplication
Member Avatar for comSysStudent
0
192
Member Avatar for bufospro

Hi, I use a command with awk in bash shell so as to extract info from a file. [CODE]awk -F'[=,: ]' '{print /uid=/?$4:(/^telephoneN/)?$2:$3}' 1.txt[/CODE] the output is something like aaaa bbbb cccc dddd eeee ffff gggg tttt I would like to write this output in a file 2.xml [CODE]<xml> <name>aaaa</name> …

Software Development shell-scripting xml
Member Avatar for bufospro
0
104
Member Avatar for gregarion

[CODE]#include <stdlib.h> #include <iostream> #include <cstring> #include <string> /* Include directly the different headers from cppconn/ and mysql_driver.h + mysql_util.h (and mysql_connection.h). This will reduce your build time! */ #include "mysql_connection.h" #include <cppconn/driver.h> #include <cppconn/exception.h> #include <cppconn/resultset.h> #include <cppconn/statement.h> using namespace std; int main(void) { sql::Driver *driver; sql::Connection *con; sql::Statement …

Software Development c c# c++ sql
Member Avatar for mcriscolo
0
1K
Member Avatar for e-papa

Well just run, the only thing is that this is created using python 3.x. no modules required.

Software Development python
Member Avatar for e-papa
0
731
Member Avatar for e-papa

Is python 3.2 stable yet, because i use portable python v1.1py3.0.1, so far I'm making improvement, but I have problems loading modules, how do I go about it.

Software Development python
Member Avatar for e-papa
0
932
Member Avatar for e-papa

Please i just downloaded the latest version of pygame, but I've been finding it difficult to install, okay when i unpacked it, everything came up, but i don't know which should go to which. Python experts in the house what do i do.

Software Development gui python
Member Avatar for e-papa
0
179
Member Avatar for bklynman01

Hello - I am using Visual Studio .net 2008. I have a form that has a tabpage control in it with 5 pages. I need to add another page, but in position 2, not at the end. Is this possible? I do not see any settings for the position of …

Software Development vb.net visual-studio
Member Avatar for bklynman01
0
99
Member Avatar for pseudorandom21

I've found that often in my code I have a need for primitive variables protected with synchronization objects such as a boost::mutex, and I was wondering if the boost library provides a template similar to this one I'm considering, based on the C# property methods get/set: [code] template<typename var_type> class …

Software Development c++
Member Avatar for vijayan121
0
259
Member Avatar for heryirawan1

I have a program,but there is an error, please help me, thanks program to include six string data (name of city), then do the sorting of the six cities data and print data before and after sorting. but in terms of input data strings, there is an error, please help, …

Software Development java java-swing
Member Avatar for heryirawan1
0
228
Member Avatar for Mike Bishop

i have the following code that isn't working correct [CODE] Dim con As New SqlConnection Dim cmd As New SqlCommand Try con.ConnectionString = "Data Source=" & ServerV & ";Initial Catalog=" & databaseV & ";Persist Security Info=True;User ID=" & usernameV & ";Password=" & passwordV & "" con.Open() cmd.Connection = con cmd.CommandText …

Software Development open-source vb.net
Member Avatar for Mike Bishop
0
92
Member Avatar for london-G

hello, I am building an application where I have two integers and I have to add them or multiply. I have to use a function to add/multiply this two numbers and call it from the main. I have done this so far. [CODE] int main() { int user_choice; int num1; …

Software Development c c# c++
Member Avatar for london-G
0
182
Member Avatar for anish99virgo

[CODE]hey i am designing a Registration Page. In that i am having 3 comboboxes, one for country,one for state & last one for city. I am able to display all countries, states & cities entries from database. Here is my code. SqlDataAdapter da = new SqlDataAdapter("select * from Country","Data Source=.;Initial …

Software Development
Member Avatar for anish99virgo
0
89
Member Avatar for Veneficvs

Hello everyone. I am having hard times in dealing with this problem which I've been given. It simply asks me to shift an array K positions without using additional memory. I cannot ask them what they mean by that. No memory, like... not even using a temporary variable for the …

Software Development c++
Member Avatar for vijayan121
0
2K
Member Avatar for keeda

Hi, I am in process of creating a Money class, as per requirement I am suppose to represent each denomination by a class(eg: $5Class, $10Class etc.). I want to use inheritance in this scenario. I cannot think of the class design. I was able to create a class design for …

Software Development c++
Member Avatar for Fbody
0
270
Member Avatar for Wheaties

Hello. I've got a homework assignment involving reading an unspecified number of numbers from a data file, storing it into a dynamically allocated array and doing various sorts and such(the output is basically a list of grades on some test that I do stuff like sort, average, give an accurate …

Software Development c file-system
Member Avatar for jonsca
0
173
Member Avatar for eileenc87

Dear All, I just found out something weird. When I create a new data, key-ing in all details and for date as well. So when I click on the button Edit, Yes I can perform the edit function, I can edit everything. Then, once I click on Save, yes it …

Software Development vb.net
Member Avatar for G_Waddell
0
153
Member Avatar for bharathisankhya

problem in importing javax.mail.internet; can any one please help

Software Development java
Member Avatar for masijade
0
68
Member Avatar for TheDocterd

Hi There I just wanna find out how I can save some data to a text file or access database (doesn't matter - the one that's the quickest). What my form does is it has a list box with ID's in it. I can select them. Then I have a …

Software Development file-system visual-basic
Member Avatar for AndreRet
0
192
Member Avatar for Bedo

I need help in pulling this program apart, and reformatting it to use functions that I didn't know i needed to implement until right now. * float calculate_time (4 parameters) finds the amount of hours between two times given. It should return 0 if the amount is less than 0. …

Software Development c++ ios
Member Avatar for jonsca
0
115
Member Avatar for pito_donje

on each form is the "X" at the top right of Form. how ya how to disable or remove "x" is it?

Software Development visual-basic
Member Avatar for Jx_Man
0
124
Member Avatar for ztdep

Dear friends: I wrote the following c++ codes to create a series of filenames as "iteration number.dat". [CODE]#include <iostream> #include<string> #include<sstream> using namespace std; int main() { string outbuffer; ostringstream outs(outbuffer); for (int i=0;i<5;i++) { outs<<i<<".dat"; cout<<outs.str()<<endl; } cout<<outbuffer; return 0; } [/CODE] I tried to use the ostringstream to …

Software Development c++
Member Avatar for jonsca
0
114
Member Avatar for Celtrix

Hey Just thought I might post some code I've Been refining its not really useful but it shows (sort of) how to print formatted text if you have any suggestions please I've almost got the kinks out weird numbers will cause it to output weird. But if you throw 9 …

Software Development c++ hard-drive
Member Avatar for Celtrix
0
158
Member Avatar for ekin5683

What wrong with my coding? when i run..nothing appear.. The output should be: Perimeter of Rectangle 1: 22 Perimeter of Rectangle 2: 6 Perimeter of Rectangle 3: 18 Perimeter of Rectangle 4: 4 [CODE]#include<iostream> using namespace std; const int TOTAL= 4; void CalculatePerimeter(int perimeter[], int width[], int height[]); //const int …

Software Development c++
Member Avatar for dkalita
0
87
Member Avatar for abhimanipal

Hello Everybody, I have a small confusion with regards to pointers. Here is some code [CODE] int main() { int *p1 = (int*)malloc(sizeof(int)); *p1 = 10; printf("The number is %d",*(char*)p1); }[/CODE] I run the code and the O/p is 10. My question is, is there no difference in using char …

Software Development c
Member Avatar for nezachem
0
142
Member Avatar for joeywheels

I'm trying to create a vertical histogram using only built-in modules. I understand the current histogram function isn't truly a histogram (and the code is probably very ugly), but I'm totally lost on how to create a vertical histogram. [CODE]import itertools def histogram(s): print("Histogram:") print("%s %7s %12s" % ( "No.", …

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for jansenkzh

The result of this below only print out John 90 Shawn 100 Melalin 75 Jane 80 What i want is Melalin 75 Jane 80 John 90 Shawn 100 I tried all methods but still can't think of how to make it arrange from the lowest score to the highest. Can …

Software Development java
Member Avatar for masijade
0
131
Member Avatar for leo88

Hi, i wants to store the key and value of an enumerator to a dictionary, but i have no idea about how to convert enumerator.value to type of double : [code] public void Display1() { listbox.Items.Clear(); Dictionary<string, double> sortList2 = new Dictionary<string, double>(); Dictionary<string, double> sortList3 = new Dictionary<string, double>(); …

Software Development
Member Avatar for leo88
0
108
Member Avatar for Danny1994

Hello, im currently using this kind of Hotkey : [CODE] if(GetAsyncKeyState(VK_F1)) { if (this->checkBox1->Checked == false) { this->checkBox1->Checked = true; } else { this->checkBox1->Checked = false; } }[/CODE] But its not very good. I couldn't find a better way to do this :/ (im using Visual Studio 2008) Anybody knows …

Software Development c++ visual-studio
Member Avatar for pseudorandom21
0
113
Member Avatar for roottybrian

hi guys i need to save an image that will be displayed on a vb.net form. how do i get round this: 1. how do i get the image before saving it in the database? 2. how do i save the image in the database? 3. how do i fetch …

Software Development image vb.net
Member Avatar for gever
0
194

The End.