132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for slpefanis

Hi All First time I've posted but have done lots of reading on here as it's an amazing resource. I am busy writing a program that is going to read data from 2 serial devices. One being a scale and the other being a "load testing" machine. Currently im working …

Software Development vb.net
0
100
Member Avatar for NaturalSwtHeart

I was just wondering what would be the best sort algorithm for sorting both a small array and a large one. Or if you can point me to a few efficient ones that can still do both that would be nice. small <=30 Also is there a cap that java …

Software Development algorithm java
Member Avatar for NaturalSwtHeart
0
129
Member Avatar for SpecialForce

Hello, I am trying to ofstream a file using the following code: [CODE]#include <curl.h> #include <stdio.h> #include <fstream.h> struct callback_data { FILE *output; }; static long file_is_comming(struct curl_fileinfo *finfo, struct callback_data *data, int remains); static long file_is_downloaded(struct callback_data *data); static size_t write_it(char *buff, size_t size, size_t nmemb, struct callback_data *data); …

Software Development c++
Member Avatar for mike_2000_17
0
1K
Member Avatar for hao90

I suppose to write the records to a text file. However every time i re-log in and add a record.The previous record will be rewrite. >.<'' [CODE]public void addRecords(){ getInfo(); FileWriter fWriter = null; BufferedWriter writer = null; try { fWriter = new FileWriter("PassengerInfo.txt"); writer = new BufferedWriter(fWriter); writer.write(name); writer.write(";"); …

Software Development java
Member Avatar for hao90
0
181
Member Avatar for dennis.d.elston

I am trying to modify a tax program so that I only have one line that start with the variable "tax = ...". The original statements are commented out so that you may see what the original program looked like. What I don't know how to do is to put …

Software Development c++
Member Avatar for dennis.d.elston
0
193
Member Avatar for muzikhera

I have Database name LoginUser with corresponding fields name such as User, Login and Logout. Im done in inserting data once the user Log to the system. Heres the sample layout once the user tried to log. User................Login............................Logout Abigail.........12/29/2010 3:08:42 PM James..........12/29/2010 3:09:45 PM Abigail.........12/29/2010 3:30:45 PM PROBLEM: 1) I …

Software Development open-source
Member Avatar for kvprajapati
0
93
Member Avatar for eline83

Hello guys, I'm struggling at my assignmnet. I need your help. for(int i=1; i<N; i++) for(int j=1; j<N; j++) for(int k=1; k <= i*j*log(j); k*=2) x=i+j+k; Calculate runtimes using these inputs N = 10, 20, 40, 100, 200, 400, 1000, 2000, 4000, 10000, based on the results, conjecture the complexity …

Software Development c++
Member Avatar for eline83
0
120
Member Avatar for moroccanplaya

i have this to check for numeric inputs, which returns then menu if a number is entered less or grater than 5 but how would you do this with alphabets ? for any alphabet or any other charterer apart from numbers should return the menu [CODE] while (select < 1 …

Software Development c
Member Avatar for TomaCukor
0
94
Member Avatar for triumphost

Using Windows Form Application from Visual Studio 2010. KK The big problem... When I compile it and run the program, Enter a value into the textbox, it automatically changes to a value the program has defaulted. I'll attach the Program/Project Folder incase anyone wants to compile/run it.. Example: Two textboxes.. …

Software Development c++ visual-studio
Member Avatar for triumphost
0
252
Member Avatar for Frederick2

What is the difference between size_t and size_type? size_type seems to be related closely with the C++ Standard String Class. Couldn't they have just used size_t instead? I don't understand the difference. Could anyone elaborate please?

Software Development c++
Member Avatar for Frederick2
0
154
Member Avatar for mrnutty

If I use ProcessBuilder or Runtime.exec function, in a JApplet, does that applet needs to be signed or is there a way to get around this? I need to communicate with a C++ executable using java JApplet.

Software Development java
Member Avatar for mrnutty
0
92
Member Avatar for f_atencia

Say I have an element <pets animals="dogs, cats, donkey, turtle, rabbit" /> How can I break the long string to when it hits the comma, it separates the animals into substrings? An example output is shown below: dogs cats donkey turtle rabbit Help is appreciated. Thanks

Software Development xml
Member Avatar for f_atencia
0
114
Member Avatar for Infame

Hi! I have a problem with a winsock code. I want it to connect to a irc server, but it won't recieve any readable data... Just alot of "jibberish"... [CODE] #include <string> #include <iostream> #include <WinSock2.h> #pragma comment(lib, "ws2_32.lib") using namespace std; //class lam0rZ { ~lam0rZ() { system("pause"); /*sleep(5000)*/ } …

Software Development c++ perl
Member Avatar for thelamb
0
135
Member Avatar for HDRG

When I press the print Button, all it prints is a blank page. This is my code: [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.*; import java.awt.Color; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.print.PageFormat; import java.awt.print.Printable; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; public class OptionWindow extends …

Software Development gui java java-swing
Member Avatar for Ezzaral
0
204
Member Avatar for AhmedGhazey

why return type is not a part of function signature i.e. I can't make such this code [CODE] int x (int y){ return 0; } float x(int y){ return 0.0; } [/CODE] while i can make such this code: [CODE] int x (int y){ return 0; } int x(String y){ …

Software Development c++
Member Avatar for AhmedGhazey
0
103
Member Avatar for discovery-power

Hi All, Hope evryone is well. I have a program I have created for booking out conference rooms, I want to code a print button so the user can print the booking they have created on the booking form. I have been stuck on this for about a week and …

Software Development vb.net
Member Avatar for discovery-power
0
305
Member Avatar for novice20

hi... using pysnmp, an 'snmp get' varBinds gives me an 'octet string' of values like: 1+1 Protection; East-West; Spiral Search; ODU Enable/Disable I need to loop through these strings and see whether a particular string say, 'East-West' is present. I am not finding way to do this. can this octet …

Software Development python
Member Avatar for LoveMyPadres
0
2K
Member Avatar for MaddTechwf

I've noticed running in a PE environment and seeing the "Nerd Herd" MRI software, I was wondering if anyone can tell me now to recreate this using VB.NET. I want to show the system info over the background if possible. You can see an example at this address [URL="http://maddtechwf.com/gsmri.jpg"]here[/URL].

Software Development vb.net
Member Avatar for MaddTechwf
0
90
Member Avatar for Boubakr

Hi... I want ti contril the while loop, just make it looping just for x times, ex: loop for 5 times and pass to the next code :)

Software Development python
Member Avatar for -ordi-
0
92
Member Avatar for taurus3

The combinations function C(n, k) is usually defined in terms of factorials, as follows: C(n, k) = n!/(k!*(n-k)!) The values of C(n, k) also leads to the Pascal Triangle: C(0, 0) C(1, 0) C(1, 1) C(2, 0) C(2, 1) C(2, 2) C(3, 0) C(3, 1) C(3, 2) C(3, 3) C(4, …

Software Development c++ pascal
Member Avatar for MosaicFuneral
0
474
Member Avatar for Kimmi

If RGB(170,255,213) gives a pastel green color display then what is the color code I should use if I want a deeper green color tone display? Is there a list of the color display codes for C++? or where I can lookup for sample color displays? ;)

Software Development c++ display
Member Avatar for Moschops
0
205
Member Avatar for imolorhe

I am writing a program where one part of the program gets some data while the other part gives in new data at intervals for the first part to work on. This two tasks are to be done independent of each other and concurrently. The time one part stops does …

Software Development c++
Member Avatar for mike_2000_17
0
196
Member Avatar for Mr.BunyRabit

I have no idea why i get bombarded with Inferior Small irritating bugs.... uh... Please help this poor, Form struggling guy. To simplify, i have 2 forms. FormA and FormB. At startup, FormA is displayed now i would like to go to FormB. I use this and it works. [CODE] …

Software Development
Member Avatar for IdanS
0
101
Member Avatar for Frederick2

Here is the full code relating to my performance problem I’m having with my operator+= which I described in this adjacent thread…. [url]http://www.daniweb.com/forums/thread340734.html[/url] As a quick review, I’m finding that the operator+= function in the Standard C++ Library’s String Class, i.e., <string>, is performing almost impossibly fast compared to the …

Software Development algorithm api c++ daniweb-api windows-api
Member Avatar for Frederick2
0
556
Member Avatar for Brickmack

I've been trying to find information on this for a while, but I can't seem to find anything. I want to use python to send a command to the command prompt, then instead of sending the output to the console window, put the output into a variable that I can …

Software Development python
Member Avatar for richieking
0
173
Member Avatar for mossa

I've built a Counter (which is not implemented for python 2.6) for reading a sequence file of strings to a dictionary and trying to return those sequences are unique for that file/a number of files. I use sequences with a length of X-characters as key in my dictionary and put …

Software Development python
Member Avatar for richieking
0
287
Member Avatar for docmccoy

Hi all, I'm facing strange error. I defined a class: [CODE] class MyClass : public MyAbstractClass { public: MyClass() : myList(myList) {} ~MyClass() {} void AddList(list<MyObject>& myNewList) { myList = myNewList; } private: list<MyObject>& myList; }; [/CODE] And in the main I do: [CODE] // myObject is initialized here and …

Software Development c++
Member Avatar for arkoenig
0
114
Member Avatar for MrCapuchino

Hello, Another thing, I posted another problem a minute ago, but I have another one but I think both should have simple solutions. This problem is that I have a button that I want to add an accelerator, so I use an ampersand (&) before the key I want to …

Software Development
Member Avatar for MrCapuchino
0
107
Member Avatar for Jazerix

Hey everyone ^^ I'm making a little program that gathers the player coordinates from World of Warcraft via memory reading, the only problem I'm having so far is that I have no idea how to convert my hexes to floats, and it's honestly driving me nuts :P. [url]http://i53.tinypic.com/2rhs1zo.png[/url] <-Picture As …

Software Development
Member Avatar for Jazerix
0
156
Member Avatar for boshu

Hi all, I have been using a macro definition to copy a set of files to different locations and FTP servers. But copying seems quite slow so I want to compress the bundle using 7z and copy all into FTP as one single file. Can it be done using 7z? …

Software Development java xml
Member Avatar for Ezzaral
0
211
Member Avatar for DJSAN10

How to send EOF on console in linux?

Software Development c
Member Avatar for DJSAN10
0
60
Member Avatar for CrankyMero

Hello Everyone, I'm still new at programming, and im having problems with the project i was assign, so im supposed to make like a retail store POS, where i look for the articule and add how much did they take and the price. [B]SORRY IF ITS IN SPANISH[/B] So this …

Software Development vb.net
Member Avatar for CrankyMero
0
286
Member Avatar for salvador01

hi! i'm beginning to like C, i find it very challenging. and i have this problem, that confuses me here: Construct a C that will accept 5 digit number, determined the reversed number and display the message "equal" if the original 5 digit number and the reversed number is equal, …

Software Development c
Member Avatar for jonsca
0
109
Member Avatar for Duki

Can someone [B]please[/B] provide some insight on this: [code=c++] int get_smtp_line( void ) { char ch = '.'; char in_data [255]; char * index; int retval = 0; index = in_data; while (ch != '\n') { if ( (retval = gensock_getchar (SMTPSock, 0, &ch) ) ) { gensock_error ("gensock_getchar", retval); …

Software Development c++ email
Member Avatar for Duki
0
128
Member Avatar for Mr.BunyRabit

Hey there. I have 4 columns in a datagridviw [COLOR="Green"]Description //// budget ///// Actual //// Difference[/COLOR] now the user can use the datagridview like normal, add different expenses and insert the budget and actual. But now i have to calculate the difference between the budget and actual and insert it …

Software Development
Member Avatar for Mitja Bonca
0
205
Member Avatar for MrCapuchino

Hello, I have a timer that starts after clicking a button, then a label is updated every tick event simulating the seconds, the problem is very weird, after one button click the timer starts so basically the label should start changing, but it does not. Here is the weird thing, …

Software Development perl
Member Avatar for MrCapuchino
0
1K
Member Avatar for MasterGberry

Ok, I have asked this b4, and I don't think I have gotten a straight forward answer, I really need this answered, because what I am doing is "legal", but i am 100% it does not make logical sense. This it the original C# code [CODE] var version = reader.ReadUInt32(); …

Software Development c++ legal storage
Member Avatar for MasterGberry
0
1K
Member Avatar for Fouly

Hi all, I'd like to open a file dialog using win32 project ...I need a simple code example that uses FileOpen...I used <commdlg.h> ...::GetOpenFileName or ::GetSaveFileName but i can't get them to work :S ... Thanks in Advance,

Software Development c++
Member Avatar for Quatrus
0
13K
Member Avatar for Anirudh.

Write a program to calculate the number of words,tokens,keywords,userdefined functions,system function for your java program. PS:you are supposed to make use of scanner class

Software Development java
Member Avatar for jon.kiparsky
0
104
Member Avatar for Crutoy

Hi another exercise which im having problems with. In this challenge im given a four digit integer and encrypt each digit as follows. Replace each digit by the sum of that digit plus seven mod 10. Then swap 1st and 3rd digit places and 2nd with 4th. Heres what i …

Software Development c++ encryption
Member Avatar for Crutoy
0
88
Member Avatar for Dwiliam

Hi all, I have a proplem when embed shell into C code by Sytem() command. There is my code: [COLOR="Green"]char acCommand[512]; acCommand[0] = '\0'; sprintf(acCommand,"sed 's/\<UDN\>\<\/UDN>/\<UDN\>%s\<\/UDN\>\/g' %s > %s", initParam.UDN, "/tmp/web/dmr.xml", "/tmp/web/dmr.xml.tmp"); printf("[%s]", acCommand); system(acCommand);[/COLOR] and below is output after compiling: sed 's/<UDN></UDN>/<UDN>uuid:b346ee95-93b3-4922-a132-cf72762b9318</UDN>/g' /tmp/web/dmr.xml > /tmp/web/dmr.xml.tmp] [COLOR="Red"]sed: bad option in …

Software Development shell-scripting xml
Member Avatar for Dwiliam
0
220
Member Avatar for jhudielpeco

Please help me on my project. I used this for my log in form. The registration form worked well and its easy for me. There are many errors almost 3. The errors are on the first 3 statements. line 1: syntax error (missing operator) in query expression 'ID Number = …

Software Development visual-basic
Member Avatar for jhai_salvador
0
126
Member Avatar for mIXpRo

hii, this is my .h ,file : [CODE] /* * sortedlist.h * * Created on: Jan 16, 2011 * Author: saeed hardan */ #ifndef SORTEDLIST_H_ #define SORTEDLIST_H_ #include <iostream> #include <functional> namespace mtm { template< typename T, typename Compare = std::less<T> > class SortedList { private: struct ListNode { ListNode …

Software Development c++
Member Avatar for mIXpRo
0
193
Member Avatar for boshu

I got an array of email addresses: [CODE]@emails = ("sam\@email.com", "john\@email.com", "jenifer\@email.com");[/CODE] There are 20 txt files wherefrom email addresses are being parsed. The parsed email addresses should be added to the @emails array only if they are not in it. Example txt file contents: =========================== Zip_Name: [email]jenni@email.com[/email] Zip_Name: [email]sam@email.com[/email] …

Software Development perl
Member Avatar for boshu
0
176
Member Avatar for snipermann

Hello I have a problem with reading the coordinates of points which are extracted from (..txt ) file.I have read the file with ifstream but I don't know how to use the information then. Thanks in advance the point are in File as followed : u:1.2000 v:4.5400 u:2.5450 v:6.4500

Software Development c++
Member Avatar for jonsca
0
373
Member Avatar for jlivvers

Hi, I have a windows form application that is designed to monitor payments made within agreed timescales. Once a timescale has passed any payments that are outstanding will get assigned as arrears. What I need to decide is the best way to handle the task that checks if the due …

Software Development
Member Avatar for mcriscolo
0
231
Member Avatar for EMT

I have created a dll and I want to use its functions in my other projects using Visual Studio 2008.Kindly Help...:icon_sad:

Software Development c visual-studio
Member Avatar for EMT
0
146
Member Avatar for Jayson83

Does anyone know how to send a message to another computer in my companys network using visual studio 2008...I would like to be able to list all the computer names on the network and select certain ones and send them a message that would pop up on their screen PLEASE …

Software Development vb.net visual-studio
Member Avatar for kvprajapati
0
369
Member Avatar for pmark019

How can I read multiple line inputs? I want to create a program that will ask a user for a program code and it will count all the reserve words used in the program. Every time I copy and paste a code for the input, it only reads the first …

Software Development java user-interface
Member Avatar for JamesCherrill
0
220
Member Avatar for florisvd

Hello everybody, I'm making a scoreboard with uart and 7-segment multiplexing and I've got a problem. When I receive code from the UART, multiplexing doesn't work any more. And when I'm multiplexing with timer1, the UART_receive doesn't work any more. Please look at my code below and help me. Best …

Software Development c
Member Avatar for Banfa
0
101

The End.