132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abhishek4563

I am writing a code in c++ unix environment using gmp for impelementing quadratic sieve I have many global variables i.e the number to be factorised and some arrays, sievelength,factorbase siz etc. During the first part of the program, the program simply calculates the factor base implemented through a fucntion …

Software Development c++ unix
Member Avatar for abhishek4563
0
72
Member Avatar for Diamonddrake

I have created a custom drawn search bar for an app i am working on. see picture: [URL="http://www.diamonddrake.com/test/imgs/mySearch.JPG"]http://www.diamonddrake.com/test/imgs/mySearch.JPG[/URL] when the user clicks on the google icon to the left. a little borderless form opens with custom drawn buttons that have icons for other search engines, you get the drift. only …

Software Development
Member Avatar for Diamonddrake
0
130
Member Avatar for idgirl

I am very green at writing Java, I am trying to go through our chapter examples and putting in data for a mortgage calculator with a GUI. This code is far from finished but the example says "Now save and compile" and this is where I am getting the error …

Software Development gui java
Member Avatar for idgirl
0
151
Member Avatar for sab786

ok so my code is as follows: [ICODE]read=open('mon_17.py','r') reader=read.readlines() a=[] for line in reader: reader1=[] for i, entry in enumerate(line.split()): if i in range(0,4)+[6]: reader1.append(int(entry)) else: reader1.append(float(entry)) #float the 2 purity values only at this point #reader1=map(float,line.split())#this was made everthing diff made all floats a.append(reader1) a.sort(lambda x,y:cmp(x,y)) read.close() match={} for …

Software Development python
Member Avatar for woooee
0
97
Member Avatar for macobex

So, I'm really frustrated with this problem. I desperately need some good explanation about this. Why does the calling function does not reflect the change done in the called function? despite the fact that I pass the variable via pointer. Any explanations please. Thanks in advance. [CODE]#include <iostream> using namespace …

Software Development c++
Member Avatar for dgr231
0
122
Member Avatar for nolesce

I am writing an app where I will need to pop up a form to allow the user to enter data and then pass back at least a portion of that data (an ID perhaps) to the calling form. I have not completely decided how I am going to handle …

Software Development vb.net
Member Avatar for nolesce
0
103
Member Avatar for Laidler

Ok in my program i'm trying to prevent a user from adding too many objects. i have three arrays called subs airs and dests, the user shouldn't be able to have more than a total of 10 objects between them. in order to add an object to an array the …

Software Development gui java
Member Avatar for Laidler
0
141
Member Avatar for osei-akoto

Please can somebody help me to concatenate names in c. I try to enter names but anytime it will teat them as separate strings. this is what I tried to do : But i was getting segmentation faults, can you figure anyway out.

Software Development c
Member Avatar for Salem
0
76
Member Avatar for jasonjinct

let say I got input.txt with following thing [QUOTE] Kelly // name of student 67 // Biology Score 89 // Chemistry score Michelle 75 45 John 78 90 [/QUOTE] and I use this fscanf command to scanf all the file until EOF: while ((fscanf (input, "%s %d %d", &studName, &bioScore, …

Software Development c
Member Avatar for Tom Gunn
0
484
Member Avatar for rakesh_01

Hi guys, I'm working in C in PuttY server.I'm looking for a program that can display an interactive menu that interacts with the user and also display a clock in the top right corner of the screen. So I need a program that can draw a border using C, and …

Software Development c
Member Avatar for Ancient Dragon
0
362
Member Avatar for want_to_code

[code] #include<stdio.h> #include<stdlib.h> #include<conio.h> struct node { int info; struct node* llink; struct node* rlink; }; typedef struct node* NODE; NODE insert(NODE root,int data) { NODE temp,cur,prev; temp=(NODE)malloc(sizeof(struct node)); if(temp==NULL) printf("\nOut of memory"); temp->info=data; temp->rlink=temp->llink=NULL; if(root == NULL) { printf("\n1st time\n"); root=temp; return root; } prev=NULL; cur=root; while(cur != NULL) …

Software Development c
Member Avatar for want_to_code
0
103
Member Avatar for history84084

I am trying to populate a label using a T-Sql query to a SQL Server table upon a click event. I have the click event and linking to the SQL Server table working just fine. The process (below) returns "System.Windows.Forms.BindingSource" rather than any value from the table. My code is …

Software Development c# sql
Member Avatar for history84084
0
3K
Member Avatar for fekalium

Hi, I want to know, how I can load all text from some webpage in to my C# aplication RichTextBox?

Software Development
Member Avatar for DdoubleD
0
107
Member Avatar for sameeraict

i know some about vb.net programming and i'm interested in developing some software which is able to Get Data From Serial Port /parallel Port to my working form. can somebody advice me ,how to start such kind of developing and what should i refere (web sites /e books) for this …

Software Development vb.net visual-basic
Member Avatar for sknake
0
621
Member Avatar for KungFuTze

Good morning, Can you guys please figure this out? I have to write a code that calculates de wage of employees on a self generated list. User is asked for : numberofEmployees, hoursworked, rateperhour. If the employee works 40 hrs: rate= rate * hrs between 40 and 50 rate is …

Software Development c++
Member Avatar for KungFuTze
0
158
Member Avatar for Sang-Jip

Dear All Hi, I'm developing the MES program for our customer company. I completed the program except one. The user requests, the information have to pop-up if user modifed the data in the application. This application was composed by 2 spreads, 2 buttons and 2 combo boxes. If user modified …

Software Development
Member Avatar for DdoubleD
0
93
Member Avatar for Xessa

Hello. I have a PreparedStatement/CallableStatement, a ResultSet and a Connection... Now after execution finishes, i want to release my resources. First I close my connection... I also want to release my ResultSet and my PS Will assigning null to my Connection object after closing the Connection object also assign null …

Software Development java
Member Avatar for JamesCherrill
0
371
Member Avatar for andy999

Helo all, Can anyone help me .I want to put dilimiter in the substring of a whole string. Here is the string Amitav 12/3/2009,234,201,210,222 I want to put dilimiter in the left most substring like this Amitav,12/3/2009,234,201,210,222 ______________ How can i do that. Thanks

Software Development visual-basic
Member Avatar for andy999
0
93
Member Avatar for low1988

i had construct a maze which i could setup the n x n with user input successfully.The problem is i cannot correctly specify the visited area with 'R',which is a symbol of a robot. [CODE] #include <iostream> #include <conio.h> #include <iomanip> #include <vector> using namespace std; void movement(vector<vector<char> >,int,int); int …

Software Development c++
Member Avatar for mrnutty
0
146
Member Avatar for KungFuTze

Hello guys I have a problem with my code: I want to print an error message every time the user enters a number lower than -273.15 . My code runs well and does the desired mathematical operation. It even loops back to the input message, but I'm having huge headaches …

Software Development c c# c++
Member Avatar for KungFuTze
0
706
Member Avatar for nkarvi

Hi everybody In an application I have, I had to start a word app. Because it took ages to load, I put it in the class constructor, but on exiting the app is not killed. I am trying to kill it by creating a destructor [code=csharp] ~MyClass(){ appWord.Quit(); } [/code] …

Software Development
Member Avatar for sknake
0
108
Member Avatar for shaikh_mshariq

Hi All, I need to create one application which can be install on windows platform. After installation it should add custom menu item in windows right click menu. When we click on this custom menu it should do certain things as per my requirement but it is secondary thing. I …

Software Development c++
Member Avatar for ashishchoure
0
169
Member Avatar for RECrerar

Hi, I'm trying to do a paste special (values) of Excel data into an Excel sheet but coding it from word VBA. I can get a normal past to work however with the paste special the 'Paste' argument is not recognised. I have tried the following (only the paste special …

Software Development visual-basic
Member Avatar for RECrerar
0
278
Member Avatar for jp071

Hello, I am doing embedded system programming. i want to read data from device through the COM1 port. I have already a software that for access the device through the COM1 port and generate data for the device. I wrote a program in c++ that could open the port and …

Software Development c++
Member Avatar for jp071
0
213
Member Avatar for peterkroon

Hello, I would like to display the current URL from my address bar. How must I do this? Many thanks, Peter Kroon The Netherlands

Software Development python
Member Avatar for peterkroon
0
96
Member Avatar for the great

Hello! I have made a program that prints a diamond shape. But my program should read an odd number in the range 1 to 19 to specify the number of rows in the diamond, then it should display a diamond of the appropriate side in which it is at present. …

Software Development c++
Member Avatar for Sky Diploma
0
179
Member Avatar for somada141

Dear Pythoneers, I have been reading really good answers on this forum so I thought I'll give it a try and see whether someone can help me. What I want to do: "I want to embed Python in C++ and use Python's capabilities in order to create a expression evaluator" …

Software Development api c c# c++ python qt
Member Avatar for Gribouillis
0
568
Member Avatar for avirag

Hi!!!!!! I have made an application and made its exe file also............ But I don't know how to inbuilt .NET framework with my application to distribute my application to clients....... When the user is online then .NET framework automatically installs but in offline mode its giving error for .NET framework........... …

Software Development asp.net
Member Avatar for avirag
0
259
Member Avatar for beanboy

chunk of code... [CODE] public void init(ServletConfig config) throws ServletException { Map map = new HashMap(); } protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); [U]map.put("one1","two2");[/U] [/CODE] compiler says 'map' cannot be resoled......why so? wht shd i do? thanks, BeanBoy

Software Development java
Member Avatar for beanboy
0
95
Member Avatar for mcco1

I have this piece of code [CODE=C++]// some function int px; void SomeFunction( void *dummy ) { ... RECT rect; GetWindowRect(hWnd, &rect); px = ((rect.right - rect.left) / 2) - 60; ... // Terminate thread _endthread(); }[/CODE] And my problem is px doesn't get assigned.. it stays 0.. although in …

Software Development c++
Member Avatar for JasonHippy
0
141
Member Avatar for Clueless86

Ok, I mostly used Python to learn programming.. I am now trying to learn VB.. This is my problem..It seems that tutorial after tutorial I read has no examples as I am trying to do.. 1. Dim x As Integer = 100 # this should make x = 100 right? …

Software Development vb.net
Member Avatar for samir_ibrahim
0
201
Member Avatar for beanboy

hi helper, i'm trying userlogin web app....where logged in user ID's are sent to a hash map .....so that admin can view logged in users list... my problem is... hash map is creating new map (which replaces the old map) when ever a user logs in.... so admin is able …

Software Development java
Member Avatar for beanboy
0
124
Member Avatar for rajachandra

hello , can you tell me how to delete the previous contents in the file,while adding new contents in java????

Software Development java
Member Avatar for javaAddict
0
110
Member Avatar for hery

Hello, How can input number to database where my field in database data type money.. This is my code: [code] Private Sub SaveData() Try If adcLEDGER.State = ADODB.ObjectStateEnum.adStateOpen Then adcLEDGER.Close() adcLEDGER.ConnectionString = strCONNECT adcLEDGER.Open() Catch ex As Exception MsgBox(ex.Message) End Try Try Dim vANSWER vANSWER = vbYes modPY.LookUpST(adcLEDGER, "SELECT * …

Software Development vb.net
Member Avatar for sknake
0
153
Member Avatar for Ghouri

Pl;ease Any Body Help Me Out to send a Lnk so i can check code written in c,c++ about hamming algorithm.. please

Software Development algorithm c++
Member Avatar for jencas
0
151
Member Avatar for Mnkyman1030

Hi, I am trying to count the number of iterations that the heap sort goes through but for some reason when my program hits an error and aborts at the end. I don't know if I have my count in the wrong place in the for loop either. I would …

Software Development c++
Member Avatar for jencas
0
129
Member Avatar for nicholasamh

Hi, I am new to C++. I am using Visual studio 2008, MFC application. I need to do a GUI program using C++. I have come out with the GUI and now i need source code to communicate to external deivce like hard disk using serial port communication. My GUI …

Software Development c++ gui visual-studio
Member Avatar for syen81
0
142
Member Avatar for nccsbim071

Hi, i successfully created the JAVA Applet and embedded it in the HTML page. The applet class is as follows: [code=JAVA] import javax.swing.JApplet; import java.awt.Graphics; public class HelloWorld extends JApplet { @Override public void paint(Graphics g) { g.drawRect(0, 0, getSize().width - 1, getSize().height - 1); g.drawString("Hello World !", 5, 15); …

Software Development java java-swing web-browser
0
64
Member Avatar for nccsbim071

Hi, I am new to java programming. I have been creating a simple applet. Which is as follows: [code=java] public class HelloWorld extends JApplet { public void paint(Graphics g) { g.drawRect(0, 0,getSize().width - 1,getSize().height - 1); g.drawString("Hello world!", 5, 15); } } [/code] This code is saved in a file …

Software Development display java
Member Avatar for nccsbim071
0
182
Member Avatar for biobee07

Hello, I am trying to write a bash shell script that does the following: I would really appreciate if someone can help me correct my code that i have written below: 1.Finds all *.txt files within my directory of interest (files are in sub-directories) 2. reads each of the files …

Software Development shell-scripting
Member Avatar for sknake
0
191
Member Avatar for ggl0rd

i got problem to refresh my database when : save= i already save but need to restart vb to find that data again. delete= when i delete and try back to menu then find that data, the data not delete yet..same with save need to restart vb.net then the data …

Software Development vb.net
Member Avatar for ggl0rd
0
105
Member Avatar for Ultratermi

Hey, i need your help :(. Im working on a mail-downloader but it wont work (pop3) :(. mail provider:[url]www.gmx.net[/url] It always say "Wrong ID+PW" why? here is the code: [CODE=C++] #include "stdafx.h" // includes are there ;) //Prototypen int startWinsock(void); int main() { char buf[256]; long rc; SOCKET s; SOCKADDR_IN …

Software Development c c# c++
Member Avatar for Salem
0
298
Member Avatar for shockwave_05

Use a two-dimensional array to solve the problem. A company has four sales people (1 to 4) who sell 5 different products (1 to 5). Once a day, each sales person passes in a slip for each type of products sold. each slip contains: a. The salesperson number b. The …

Software Development java
Member Avatar for chingkoysilog
0
2K
Member Avatar for stevenaseron

Cashier 1.0 is a C++ program that displays on the screen item codes with corresponding item description and price (at least 10 items). It asks the user to enter the code of the item purchased by a customer. Then, its description and price are displayed on the screen too. Also, …

Software Development c++
Member Avatar for stevenaseron
0
325
Member Avatar for especta

hi i have problem to use doscommand haw to install an use plise help. hire is doscmd [url]http://maxxdelphisite.free.fr/doscmd.htm[/url]

Software Development pascal
Member Avatar for especta
0
454
Member Avatar for nunos

Hi. I need some help here with a unicode string I want to use with strptime. [code=python] >>> date u'\xa08/15/2009' >>> datetime.strptime(date, "%m/%d/%Y") Traceback (most recent call last): File "<pyshell#75>", line 1, in <module> datetime.strptime(date, "%m/%d/%Y") UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 0: ordinal not in range(128) …

Software Development python
Member Avatar for nunos
0
666
Member Avatar for Nogat21

Hi, im trying to write some information into a mp3 file. The information i'm trying to introduce into the file must begin 128 bytes from the end of the file, and this block of information is identified by the string "TAG" at that position (128 bytes from the end). After …

Software Development c++ file-system ios
Member Avatar for Nogat21
0
282
Member Avatar for get2tk

pls i need to change the image on a Jlabel to another image when a user inputs a string word "change". How do i go about it?

Software Development image java
Member Avatar for and12
0
83
Member Avatar for gowth08

hi people...was working with hashtable's.... code is as follows : [CODE]public class X{ int a; int b; X(int a, int b){ this.a = a; this.b = b; } public static void main(String a[]){ Map map = new HashMap<X,String>(); map.put(new X(1,2),"some value"); System.out.println(map.get(new X(1,2))); } }[/CODE] gettin o/p as null...is there …

Software Development java
Member Avatar for CrazyDieter
0
94
Member Avatar for poliet

Hello, I was hinted for my cause in using a mastertemplate. I did and I swear my little programm was up and running late night just the way I wanted it. This morning, however, I did some other corner stuff and now it does not compile anymore.. just like that... …

Software Development c++
Member Avatar for poliet
0
112

The End.