132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for newcoder192

Im new to dynamic arrays. What im trying to do is get a line of number that are stored as charachters , but implement a dynamic array to store the charachters so the size of the number(i.e. number of digits) is unkown. After i convert the charachters to an integer, …

Software Development c++
Member Avatar for Narue
0
83
Member Avatar for chebude

I was able to print out daily values and aggregate the final annual result but I am lost and dont know where to start on how to sum the daily values to monthly and print it out. I need your help badely. Here is part of the code [CODE] import …

Software Development os-x python
Member Avatar for woooee
0
148
Member Avatar for anoop4real

Hi, I am dynamically creating some labels with a contextmenu associated with them and I am having few menuitems also in the context menu. The context menu will be called when a label right-clicked( or clicked-hold) I have written an evenhandler to be called when a menu item is clicked. …

Software Development
Member Avatar for farooqaaa
0
122
Member Avatar for Cap'nKirk

Hi, I have a dynamic picturebox created at run time that loads an image and I want this picturebox to be clickable and open a web page. Here is the code that creates the picturebox in the formload section:- [CODE]void MainFormLoad(object sender, EventArgs e) { PictureBox pb = new PictureBox(); …

Software Development
Member Avatar for Cap'nKirk
0
117
Member Avatar for jimJohnson

I am writing a program and stuck on entering standard deviation. I have looked on previous forum topics and from what I have found this is what I have coded but when I cout my standard deviation I keep getting a 1.#f Can one of you guys take a look …

Software Development c c# c++
Member Avatar for VernonDozier
0
2K
Member Avatar for capri19

hi all I'm trying to make a simple web using a form and method="POST" My page works fine in Firefox but fails in IE6. Can anyone tell me what I'm doing wrong ? Here is my code [code] import cgi import os import parseFieldStorage import time def test(): print 'Content-Type: …

Software Development first-post python
Member Avatar for tamarteleco
0
192
Member Avatar for manish.ranjan

if i want user to enter a single char in a variable...then how to restrict him/her from typing more than 1 character.....??

Software Development c++
Member Avatar for manish.ranjan
0
76
Member Avatar for Atlanticspace

Ok so i have a merg sort algorithm in my code yet for some reason its not letting me change it to what I need. Im not seeing where I have the mistake. any help? here are my files along with error. I am trying to sort the events by …

Software Development algorithm c++ engineering visual-studio
Member Avatar for Atlanticspace
0
226
Member Avatar for rai32

Hello again guys, this is the code: [code] struct nodo { char *nom_usuario; //*user_name struct sockaddr_in IP; struct nodo *siguiente; //*next }; struct lista { //list struct nodo *primero; //*first struct nodo *ultimo; //*last }; ... ... ... void ordenar(struct lista* maestra); void ordenar(struct lista* maestra){ struct nodo* aux; struct …

Software Development c
Member Avatar for abhimanipal
0
123
Member Avatar for jpl1993

so i'm almost done with my project. however, i'm still getting some errors when i run. you can find my code below. if you see any problems and know how to fix them, please, please, please let me know! class tennis: def __init__ (self, name, rank, tournamentsPlayed, country, racquetBrand): self.name …

Software Development python
Member Avatar for woooee
0
147
Member Avatar for marawangy

Hello please i need a simple phonebook program using vb.net 2008 and access 2007 using ado.net with add , edit . delete buttoms

Software Development vb.net
Member Avatar for Luc001
0
171
Member Avatar for basma.lm

hi, i work on windows application. i have the first form of the authentification ( with username and password) after that i have the principal form. in the load event of this principal form i put a code that shows another form. my problem is that i delete this code …

Software Development
Member Avatar for finito
0
108
Member Avatar for veroniclake

hi, i have some imports in my class file [CODE]import com.xyz.auto.common.ui.URObject; import com.xyz.auto.common.utils.AutoScript;[/CODE] in the above code, the URObject class is in a jar file called uis.jar the AutoScript class is in a folder structure [com->xyz->auto->common->utils]. during compiling it is showing "com.xyz.auto.common.ui " package is missing. but i have added …

Software Development java
Member Avatar for veroniclake
0
68
Member Avatar for jib

[B][INDENT]below is the tutorials for developing the program i had a hard time with it. Part 1: Blackjack Card Game Blackjack is a card game played in casinos. The game is also called Twenty-One. Blackjack came originally from France, where it is called Vingt-Et-Un (21). The goal for both the …

Software Development python
Member Avatar for woooee
0
367
Member Avatar for Graphix

Hey everybody, I currently making a program that needs to activated on startup. So after extensive googling I decided to do it the registry way. However, creating a new value or editing an existing value, is not working. Could you explain how to edit and/or create a value in a …

Software Development c microsoft microsoft-windows
Member Avatar for Graphix
0
275
Member Avatar for Sailor_Jerry

Can someone provide sample code on how to create and fill a DataTable with the table schema and data from a mySQL database? I found examples where you set up columns and other information programmatically. But i wanted to know if there a way to "sync" the schema in the …

Software Development
Member Avatar for Sailor_Jerry
0
179
Member Avatar for stabzagg

Hey guys, I am having some trouble getting my head around tkinter at the moment. I am new to programming and have been using python for about 2 months now. The problem I am having is with RadioButtons. I have a set of radio buttons numbered 1-9 and I can …

Software Development gui python tkinter
Member Avatar for stabzagg
0
309
Member Avatar for moni94

How can I make a stream appendable and readable at the same time? Because when I do this: [CODE]static FileStream fs = File.Open("keys.txt", FileMode.Append, FileAccess.ReadWrite, FileShare.None);[/CODE] I get the following error: "Append access can be requested only in write-only mode."

Software Development file-stream
Member Avatar for finito
0
958
Member Avatar for andrew2325

So I need to add together four integers that are from other windows forms other than the main one. Way too much code to post all of it [code] pointsfinal = Form3.atally2 + Form2.atally1 + Form1.atally + atally3;[/code] this does not work.

Software Development
Member Avatar for andrew2325
0
81
Member Avatar for Dinglish

i have a piece of an unfinished program. try to run it... if you go straight to option 3 and input values, how do i output these values in option 4 ? i tried outputting my declared variables it wont work ? why is this ? i apologize the code …

Software Development c++
Member Avatar for Dinglish
0
124
Member Avatar for jj001155

Hi, can any one send me a source code for a stick figure in java, i have found some but i can't get them to work. Please help.

Software Development java
Member Avatar for jwenting
0
55
Member Avatar for sathya_k_83

Hi , can u help with a code to convert to get a data set & convert the values in a table to .csv file which can be viewed in a Excel sheet how to create an .csv (comma separated) file using an VB.net programming ie converting data in a …

Software Development file-system vb.net
Member Avatar for kvprajapati
0
1K
Member Avatar for hotchkissChris

Hi, I'm reasonably new to C# and even newer to WPF projects in C#, i'm having a lot of trouble getting to grips with how to use the template property and its doing m head in. Firstly an explanation of what I am trying to achieve: I am working on …

Software Development asp.net gui
Member Avatar for hotchkissChris
0
157
Member Avatar for tashiDuks

HI Everyone, I have designing a desktop application with SQL SERVER 2005. I have one form where user can take a full backup of SQL Database in one File. I have following controls : 1. txtSQLServerName 2. txtSQLDBName 3. txtSQLSQUserID 4. txtSQLSAPassword 5. txtBackupLocation 6. btnStart 7. btnCancel When user …

Software Development sql vb.net
Member Avatar for kvprajapati
0
142
Member Avatar for dbphydb

Hi, Please check the below code. [CODE] URL = "http://11.12.13.27:8080/cruisecontrol" from urllib2 import urlopen from HTMLParser import HTMLParser import re # Fetching links using HTMLParser def get_links(url): parser = MyHTMLParser() parser.feed(urlopen(url).read()) parser.close() return parser.links # Build url for Deploy page def get_deploy_url(): url = URL + "/buildresults/xxx_%s_nightly_build" % branch print …

Software Development python
Member Avatar for dbphydb
0
113
Member Avatar for needanswer

just want to know how to edit the asp files or any files on ftp? THANKS

Software Development asp
Member Avatar for amphetkid
0
155
Member Avatar for gymangel812

I'm having a problem figuring out what goes in the SecurityAlarm class. It is an abstract base class with 3 methods: alarmFailure() (cannot be overridden by any subclass), and alarmSensor(), alarm() (both are abstract. EntryAlarm is a class that inherits from SecurityAlarm. If the simulation of an alarm exceeds the …

Software Development java
Member Avatar for JamesCherrill
0
114
Member Avatar for clement99

Hi Guys, I need your help here, I'm working on a assignment, and had done up the source code, but I'm getting wrong results: Summarised below: I screenshot the output: [IMG]http://i4.photobucket.com/albums/y101/clement_twk/Output.png[/IMG] I noticed under the output on these 2 lines are wrong: Addition A + B = 100+103i+106j+109k I supposed …

Software Development c c# c++
Member Avatar for Banfa
0
176
Member Avatar for dreadyteddy

Basically need help with one evil section of code! My program opens a start window which introduces the program. A start button leads to a second window with a number of buttons. The main two are "open" and "find restriction site". Im having problem with the code for the latter. …

Software Development programming-construct python tkinter
Member Avatar for dreadyteddy
0
232
Member Avatar for Steven.T

Hi, I need to create a spell checking program where: - the dictionary is loaded in as a set() - the 2nd file is input by the user - all words that are not in the dictionary are added to a list and printed out My code so far is: …

Software Development python
Member Avatar for TrustyTony
0
185
Member Avatar for Rhap

[CODE]//// point.h using namespace System::Drawing; class point { protected: int x; int y; Color col; public: point(); };[/CODE] [CODE]////point.cpp #include "stdafx.h" #include "point.h" point::point() { x = 0; y = 0; col = Color::Blue; }[/CODE] [CODE]///Error c:\...\point.h(10) : error C3265: cannot declare a managed 'col' in an unmanaged 'point' 1> …

Software Development c++
Member Avatar for jonsca
0
237
Member Avatar for boiishuvo

Hello, I am only starting to design a C program that opens a file; [code] #include <stdio.h> #include <string.h> #include <stdlib.h> int main(void) { FILE *fp; fp = fopen ("file.txt", "r"); if (fp == NULL) { perror("Can't open the file"); return EXIT_FAILURE; } printf ("%d\n", fp); system("pause"); return EXIT_SUCCESS; } …

Software Development c c# c++ file-system
Member Avatar for abhimanipal
0
2K
Member Avatar for jl487

Hello, I currently have the following python code: [CODE] #usr/bin/python import os variable=raw_input('Search for this string: ') os.system("grep $variable sample.txt") [/CODE] Basically what I want to do is to grep a string found in the text file "sample.txt" When I run the code, it just hangs. How can I make …

Software Development python
Member Avatar for TrustyTony
0
11K
Member Avatar for vihrao

I am using operator to add two matrices stored inside matrix objects. I instantiate and initialize two matrices. Then I call operator to add them. But before adding the two matrices: m1 and m2 , their destructors gets called. When I start adding the matrices since m2 matrix array has …

Software Development c++
Member Avatar for VernonDozier
0
498
Member Avatar for painejake

I have this code: [CODE]Byte[] OriginalBytes; Byte[] EncryptedBytes; MD5 md5; md5 = new MD5CryptoServiceProvider(); OriginalBytes = UTF8Encoding.Default.GetBytes(OriginalPassword); EncryptedBytes = md5.ComputeHash(OriginalBytes); return BitConverter.ToString(EncryptedBytes); MessageBox.Show("MD5 Hash is: " + EncryptedBytes);[/CODE] However I get the error "A return keyword must not be followed by a object expression." I'm quite new to C# so …

Software Development encryption
Member Avatar for painejake
0
203
Member Avatar for touseef4pk

Plz help me out to resolve a conflict. I have made untiring efforts to resolve but coudln't. I have showed my data in gridivew now in windows forms now i want that when i make chages on the gridview using it like an excel sheet. These changes should also be …

Software Development sql
Member Avatar for kvprajapati
0
92
Member Avatar for dbphydb

Hi, Im basically from QA. I have a piece of code in python that parses HTML pages to reach to a specific link on a webpage. The below code gets me the url of the link which needs to be clicked. What code should i write to simulate clicking a …

Software Development python
Member Avatar for TrustyTony
0
984
Member Avatar for lukebradford

Hi all, I would like my program to be able to search for a string using Google and then use the number of results. I'm not sure what exactly this will entail in I/O terms so I guess I'll leave it at that and see what you guys have to …

Software Development c++ seo
Member Avatar for lukebradford
0
120
Member Avatar for lunaluni

i have a textbox to upload .csv file. after i click upload it insert the .csv file into sql server database how to insert .csv file using vb.net into sql server

Software Development sql vb.net
Member Avatar for lunaluni
0
1K
Member Avatar for zizi

hi there everybody, I have to make a program that gets a string and then finds out if it is accepted by the CFG(cintext free grammer), I want to first do the Simplification of CFG but I really don't know what data structure I have to use, for example I …

Software Development data-structure
Member Avatar for zizi
0
314
Member Avatar for sidhu51

hi all, I have a string "FS:A151940.A-CM4;4" and have a integer value stored in a variable num.... now i want the string to be modified as "FMS:A151940.A-CM4;*" where value of num must be present instead of *... please help me out with this !!

Software Development
Member Avatar for sidhu51
0
94
Member Avatar for dbphydb

Hi, The below code is doing the following 1. Reading the branch name and the destination from a txt file 2. Parsing thru HTML pages Basically, i want to deploy the build of the branch (supplied thru txt file) on a test environment (supplied thru txt file) The branch_dest file …

Software Development python
Member Avatar for dbphydb
0
208
Member Avatar for gunbuster363
Member Avatar for wildplace

i know how to determine if x instanceof aClass. if x is not an instanceof aClass, how can i tell if it it will give me a compiler error or run time error. Consider the following question~ [QUOTE]interface I { ... } class A { ... } class B extends …

Software Development java legal
Member Avatar for wildplace
0
241
Member Avatar for blahbla

hi i was given an assignment to do i did it but i'm always getting a segmentation fault i found out where i'm getting the problem but i dont understand why i'm getting the problem heres the code: the extra cout's that dont make sense are just to tests to …

Software Development c c# c++
Member Avatar for blahbla
0
75
Member Avatar for llemes4011

Hello, I was wondering if anyone knew anything about programming Microcontrollers with C, and if so what controllers are best/have the most room for the least cost/ easy to get the code on. I know nothing about what's needed to get it up and running, or even what to buy! …

Software Development c c# c++
Member Avatar for llemes4011
0
117
Member Avatar for defender_

Hi, i am having this problem with c structure pointers. this is snippet from a larger program in which i use temp* to assign values to different other pointers but whenever i update temp* it automatically updates the value of all other assigned pointers as well. pointer b points to …

Software Development c++ data-structure
Member Avatar for defender_
0
68
Member Avatar for iammfa

Hi, This is an exercise I solved it, I want to know, is my solve is the best solve or there is notes, if there is a notes, I'm glade to hear it: [B]The Exercise:[/B] [CODE]Make a program that calculates the sum, mean, minimum, and maximum of a series of …

Software Development c c# c++
Member Avatar for chiwawa10
0
165
Member Avatar for krishnisilva

hi, i have a datagrid view in VS 2008 standard edition,how can i check if there is no value entered in the cell, how can i write the code.??? please give me and answer someone, thanxxx

Software Development
Member Avatar for bords
0
126
Member Avatar for krishnisilva

hi, how can i make the form to disable resize the from at run time in C# hey does anybody know the answer? thanx

Software Development
Member Avatar for bords
0
100

The End.