199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hla3mi

[CODE]#include <iostream> #include <string> using namespace std; struct Employee { //Data string name; int id; string residance; int salary; }; class Node { public: // Data Employee data; // The Next Pointer Node * next; // Constructor Node(Employee Object ,Node * ptr = NULL ); }; class List { int …

Member Avatar for hla3mi
0
199
Member Avatar for frankycool

HI i am using this syntax to store arraylist to inventory.dat file.When i store, it give a scattered output on the .dat file like this..... ¬í sr Carsguimainexecution.SaleinfoÕE£ñWfö L productsalest Ljava/util/ArrayList;xpsr java.util.ArrayListxÒ™Ça I sizexp w sr Carsguimainexecution.SalesubZ㾝ÓÅ xr Carsguimainexecution.SaleProductøié>‘2q I CarnumberD pricesoldI productNumberD stockD unitsoldL Carbuyert Ljava/lang/String;L Carnameq ~ xp …

Member Avatar for javaAddict
0
219
Member Avatar for brightsolar

//Code Written By S Barratt i would like my button display to - out put all the values of the arrayList. ------------------------------------------------------------------------------------------ i would very much like some information about key pressing so when the use presses the key enter return ( char 13). i did try - but my …

Member Avatar for brightsolar
0
159
Member Avatar for ninjaelves

Hi im trying to use an equals method to check if two bargraphs are equal, but when I run the method, it always says that they are not equal. Could you please tell me how to fix this? Thanks My code for the method [CODE] // equals method public boolean …

Member Avatar for javaAddict
0
133
Member Avatar for rutaba

Hi.. I want to know that how to create a program using VISUALSTUDIO2005 and creating some windows application in layers .. I basically want to know the steps that at first i hav to creat which file nand after that which one and so on.. I reall need help of …

Member Avatar for DdoubleD
0
187
Member Avatar for number87

hi I wanna find out the number of integers from an input number. For example if i enter 84075, the output should be 5. this is what i came up with.....im new to c++ still>.< [code=cpp]#include <iostream> using namespace std; int main() { int numCount, number; bool integer; cout << …

Member Avatar for taepodong1101
0
203
Member Avatar for mevkurray

hi all using ubuntu here, and the default setup (straight from synaptic) of wxwidgets has the wxDB classes disabled. so, how does one rebuild the actual libraries of wxwigets, once ive edited the setup.h files. and which setup.h files do i need to edit. i found what i was looking …

Member Avatar for mevkurray
0
192
Member Avatar for crazyboy

Hii every one .... I want to list out directories or folders or files which are in perticular folder or directory ... there is a control in VB 6.0 dirlistbox. Is there any control like that in C#. or open my computer and any drive of my computer.. now see …

Member Avatar for sanch01r
0
155
Member Avatar for thelamb

Hello all, I have a VB.net application and a C++ DLL. The C++ DLL has an exported function that gets called by the VB.net application. The C++ exported function is as following: [CODE=cpp] STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) ); si.cb = sizeof(si); ZeroMemory( &pi, sizeof(pi) ); TR::Log( "Starting …

Member Avatar for thelamb
0
2K
Member Avatar for hockfan86

I have a couple of issues with my lab assignment for this week. I was wondering if you guys could help. I will post the assignment and then post my code thus far. Thank you. )Write a program that will display the menu below until user decide the quit the …

Member Avatar for hockfan86
0
122
Member Avatar for gunbuster363

I am using BeautifulSoup for my project and I don't know how the object returned by the Soup is organized, so I don't know how to access it, except using only print I can only do this: [CODE]link = soup.find(attrs={'class' : re.compile("util2$")}) print link [/CODE] it print out the whole …

Member Avatar for gunbuster363
0
2K
Member Avatar for thilinam

HI Could anybody please give me a reference or a description about how to send an Email, using my gmail account, from my asp.net web site. I've tried code in this reference. [url]http://www.aspdotnetfaq.com/Faq/How-to-send-HTML-Email-from-ASP-NET-using-your-Gmail-account.aspx[/url] But its not working. It gives an exception "failure sending mail" Please help me Thank you.

Member Avatar for thilinam
0
196
Member Avatar for jonathanYoung

hello; i've been programming with c++ for about 2 months, BRAND new at this, im currently making a text based RPG for one of my programming classes. im having trouble with a error that comes up, and no one in my class can find out what exactly is the problem... …

Member Avatar for jonathanYoung
0
109
Member Avatar for ramjeev

Can u suggest any better link for datastructure that explains with diagrams?It would be good,if any basic level explanation with algorithms.

Member Avatar for ramjeev
0
76
Member Avatar for 3.14

hi friends, i try to make some selector of items placed in <div>, and click on some of items should delete one by changing innerHTML of <div>. delete works, but after delete html page reloads. i suppose its because element, originator, calling delete function exist at time of calling, but …

Member Avatar for 3.14
0
133
Member Avatar for sarithak

hi frnds... i m using front end page is in HTML(contactus.html)... back end is in PHP page(contact_action.php).... here i m trying to send mail to admin from user...After successfull completion of mail sending , the user gets a Message.,..(like..messgae successfully send..).. below is my code...can any body change plz... [CODE]if …

Member Avatar for rajabhaskar525
0
129
Member Avatar for Ashishinani1756

Print all the pairs of prime numbers which is equal to the sum of the given no. entered by user.

Member Avatar for donaldw
0
94
Member Avatar for kettavan

Hi guys, I need some help regarding JComboBox. I want to link the JComboBox with JTextField and this is the code that i did. It contains error and I need some guidelines for it.Thx [code=Java]private void typeof_patronJComboBoxitemStateChanged(ItemEvent event) { // clear JTextFields clearComponents(); // determine whether checkbox selected if (event.getStateChange()== …

Member Avatar for kettavan
0
88
Member Avatar for starlight09

Hi everyone, My goal is to generate lottery numbers that have 6 unique numbers in the range of 1-49 ex. if the user inputs 2 as the number of tickets they want, the program should print out 1 2 3 4 5 6 10 9 8 7 12 11 ---2 …

Member Avatar for starlight09
0
621
Member Avatar for javanub123

hi, i have a lab monday which requires me to generate random sized squares random poinst. im not to familiar with the random class and the syntax and all that but im guessin i need to use a for loop. if someone can just point me in the right direction …

Member Avatar for javanub123
0
1K
Member Avatar for cabosun

I am suppose to make a MakeFile for the 2 source files named p4a.c and p4b.c Am i doing this makefile correctly? Any suggestions would be so helpful my MakeFile so far [CODE].SUFFIXES: .c .o CC - gcc CFLAGS = -g .c.o: $(CC) $(CFLAGS) -c $, sample: p4a.c p4b.c gcc …

Member Avatar for gerard4143
0
115
Member Avatar for nevets04
Member Avatar for javanub123

im trying to make my program draw lines from the top right corner of the JFrame which is 400 x 400, to the bottom of it making what looks like a curve but really is just lines. i think i know the basic idea of how to do this which …

Member Avatar for javanub123
0
1K
Member Avatar for peternrose

My QBASIC programs do not run under Windows XP. Specifically, LPRINT does nothing. I have spent a lot of time & effort over the past 15 years programming in QBASIC with lots of useful and profitable programs. I really do not want to start over with Visual Basic unless there …

Member Avatar for nokki
0
1K
Member Avatar for jaymeaux77

Hi there, Im writing a program that takes a function and makes a plot of it. the program consists of 2 functions and each creates its own GraphWin. However i want to have a mouse click at the end close both windows. So i returned the window from the first …

Member Avatar for jaymeaux77
0
99
Member Avatar for paul2594

I recently updated my system to XP-2 with a pentium III. I have a number of qbasic programs I developed to use in my hobbies and lo and behold, I can't print to my usb port. The programs run okay. I should think this is a problem that has been …

Member Avatar for nokki
0
2K
Member Avatar for skrithikaa

Hi, How do you create HTML files using RUBY. I have a requirement where I need to set color and font of the text, and also provide formatting options for tables having different colors for rows and border(on/off). Can anybody tell how to do this Thanks, K

Member Avatar for skrithikaa
0
3K
Member Avatar for hapyharra
Member Avatar for gerard4143
0
163
Member Avatar for lllllIllIlllI

Hi, Im using wxPython for my latest project and i was wondering, how do i make the window go to the best size, so it includes all of the objects on screen? I used to be able to remember... but i forgot :P

Member Avatar for lllllIllIlllI
0
87
Member Avatar for combustion

Hello, I'm new to c++ and I am trying to convert a bruteforce program from Python to c++. Here is what I have so far: [CODE=c++] #include <iostream> #include <string> using namespace std; char chars[]={'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; string t; cout << "Enter a string: " << endl; cin >> t; void checkPassword(string …

Member Avatar for Ancient Dragon
0
260
Member Avatar for Ishaniwp

Hi! I'm having a problem with my coding. I have initialized a 2d array (String), but when I try to print a value from it, it gives me null. this is how I initialized my array. [code]String phone[][] = { {"A", "B","C"}, {"D", "E", "F"}, {"G","H", "I"}, {"J", "K", "L"}, …

Member Avatar for Ishaniwp
0
98
Member Avatar for whouton

Hi guys, I'm trying to make a function that allows the user to enter in a file name and access that file; if the file name is wrong or the file is not there, I want to allow the user to enter in another file name. For some reason the …

0
78
Member Avatar for kjiu

Hj, I have a problem how to do the print. example: I need to print a file. Kjiu

Member Avatar for kjiu
0
78
Member Avatar for _dragonwolf_

This code works fine so far... except for my "isPair()" function. It gives me the following error: Exception in thread "main" java.lang.NumberFormatException: For input string: Any help solving this issue would be great. I am trying to get the program to read poker hands and print out what it is. …

Member Avatar for thines01
0
139
Member Avatar for lllllIllIlllI

Hi guys, Im a making a program where i need to be able to specify a folder and have my program import every module from that folder into my program... I was wondering how i would go about it. I can't use something like eval. But yeah, help would be …

Member Avatar for pythopian
0
14K
Member Avatar for therio7

Hi, I have a php form where I can upload 3 things into a database. 1. Image Description 2. Image category 3. Image (the image is uploaded in a folder with a unique random name, and the unique path name is inserted into the database) My script generate something like …

Member Avatar for diafol
0
131
Member Avatar for arvindikchari

Hello I have a simple requirement, I have a list of URLs on a page, I want that when the user clicks on any one URL, then a text box on the same page is filled with some data. The data to be filled in is specific for each URL. …

Member Avatar for augie804
0
4K
Member Avatar for itslucky

Dear Friends, When i enter a new record in SQL Database from my C# application, the record stores in the database at random locations, but i want to make sure that every record must be enter at the end of the Table. Actually i have to get the Last Balance …

Member Avatar for jpattison
0
210
Member Avatar for Ying_Yang

Hi, I like the modularity of java but I wonder what low level custom functions it has, since I' am considering to create an OS, and we all know in high level its imposible to control the hardware eficiently. :-/ so I wonder if there is a way to use …

Member Avatar for Ying_Yang
0
214
Member Avatar for candoc

If I am fread()'ing through a file and want to append it when i find a particular item, can i just do an fwrite() when i find it or do i have to first fseek() to that location and then do an fwrite()?

Member Avatar for Tom Gunn
0
117
Member Avatar for Fujy

I`ve been programming in Java, and started learning C++ a few days ago. I was playing around with codes and got this : [CODE] # include <iostream> using namespace std; int main(){ char str[100]; char *pnt[100]; for(int x = 0; x <= 100; x++){ pnt[x] = str[x]; } read(); } …

Member Avatar for thines01
0
365
Member Avatar for leegeorg07

Hi I have this code currently: [code] dict = open("dict.txt", "r").readlines() print dict LETTERS={'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6, 'g':7, 'h':8, 'i':9, 'j':10, 'k':11, 'l':12, 'm':13, 'n':14, 'o':15, 'p':16, 'q':17, 'r':18, 's':19, 't':20, 'u':21, 'v':22, 'w':23, 'x':24, 'y':25, 'z':26} word_value=0 lettersv=[] letterss=[] def main(): word=raw_input('what is the word?') word=word.lower() for …

Member Avatar for leegeorg07
0
116
Member Avatar for Moselekm

Alright, I think 3 hours of feeling like an idiot and searching and then feeling even more stumped is grounds enough to post here. I am basically just practicing with javascript (Just started a few days ago) and wanted to create an array that pretty much checked a form for …

Member Avatar for Airshow
0
206
Member Avatar for whizkidash

Hi Team, Need your urgent help for the same Well i have a file which consist of million records. Question is : Prepare a script which will cat that particular file..and then,the user will be asked to choose which line in the file he needs to modify the word and …

Member Avatar for sknake
0
194
Member Avatar for realchamp

Hello! I got a page which whenever a checkbox is checked I want to insert an image to the right of the check box. Can anyone help? - realchamp.

Member Avatar for Airshow
0
113
Member Avatar for fh84

Hello to all, Am new to oracle sql, and I am using the developer to create new database. Unfortunately, when I try to create new connection and error appears saying that : Status: failure –lo exception. The network adapter could not establish the connection. Connection Name: NewDatabase Username: test Password: …

Member Avatar for debasisdas
0
87
Member Avatar for sanchitgarg

suppose i have 10 different functions. i generate a random no. between 1 to 10. depending on its value i want to call the fucntion. eg. no. 3 call func, no. 8 calls func 8... etc. how do i do it using a loop without using the if else statement …

Member Avatar for sanchitgarg
0
244
Member Avatar for Rishi_Hamza

I am trying to import mails from Outlook to my Database during execution of code it is throwing the [COLOR="Red"]"Excepiton ComException unhandeled by User Code"[/COLOR]. it was working fine in the beggening but suddenly start throwing this exception. Here is my code [CODE] for (int i = 0; i <= …

Member Avatar for mikiurban
0
136
Member Avatar for mandangalo

I am trying to code for an assignment at school. When I call my addElement() method and input the data to pass that data to my constructor which is used to store the data in certain elements in the array it seems to work ok. However, when I try to …

Member Avatar for ddanbe
0
222
Member Avatar for TheManual

I am trying to create a RPN calculator, the addition and subtraction functions work but it only accepts numbers under 10. How can I fix this so any integers are allowed? Thanks. [code] import sys accepted = '0123456789dr+-*/%^=' numbers = '0123456789' stack = [] while len(stack) <= 20: while True: …

Member Avatar for TheManual
0
92

The End.