199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mcap61

Hey guys, I have to write a program to check the ranking of the top 1000 boy and girl baby names using linked lists and pointers. The POINT of the PROGRAM is if you enter a name it will tell you what the name ranks among the list if it …

Member Avatar for programmersbook
0
390
Member Avatar for HazardTW

I did make some attempts to search for this problem but was not sure exactly what to search for and being after 1AM my eyes wouldn't take reading through the 11+ pages of unrelated search results, so I will just ask the question... New to Java, want to use one …

Member Avatar for HazardTW
0
139
Member Avatar for Spiderpig085

i have code which has a menu.. this code is for a tic tac toe game and i cant prevent the program from crashing . So......... when the user enters a variable e.g 'q' the program crashes. the happens whilst playing the game and whilst selecting a menu option. is …

Member Avatar for Spiderpig085
0
141
Member Avatar for ihatestarch

There were a few book recommendations I saw on the web for c++. The C++ Standard Library: A Tutorial and Reference -- I want to purchase this book, but it was published in 1999. Is there a more current book like this or is it one of those things that …

Member Avatar for Bench
0
110
Member Avatar for qwertymk

I have a line of code that looks like this: [code] _data = new (nothrow) T[_size]; [/code] This code is inside a classe's constuctor The problem is that it initializes each element to zero which I don't want it to do. Is there to just have it reserve the memory …

Member Avatar for qwertymk
0
120
Member Avatar for Snapster5

Hi im working on a function lab that was givin to use, there are compile erros on it im not sure how to fix, most likely caused by mistakes by me not wrinting correctly. If you can help me out on this would be appreciated. Discription: The purpose of the …

Member Avatar for Ancient Dragon
0
150
Member Avatar for 9w43

Hello, I am using Blue J, I have 3 classes, time, date and patient. When I run the patient class, I can put patient details like name, address, DoB, time. The time and date classes are separate classes, how can I store the date (int) and time which I enter …

Member Avatar for mellowmike
0
175
Member Avatar for vtfan

I made a poker game and when I run it I get these errors... [CODE=syntax] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at PokerGame.Hand.getPairs(Hand.java:82) at PokerGame.Hand.whichHand(Hand.java:28) at PokerGame.DeckOfCards$1.actionPerformed(DeckOfCards.java:67) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236) at java.awt.Component.processMouseEvent(Component.java:6263) at javax.swing.JComponent.processMouseEvent(JComponent.java:3267) at java.awt.Component.processEvent(Component.java:6028) at java.awt.Container.processEvent(Container.java:2041) at java.awt.Component.dispatchEventImpl(Component.java:4630) at java.awt.Container.dispatchEventImpl(Container.java:2099) at java.awt.Component.dispatchEvent(Component.java:4460) …

Member Avatar for vtfan
0
228
Member Avatar for xyzt

Hello, I try to use POSIX Message Queue API and in the doc it says that: [CODE]#include <mqueue.h> int mq_send(mqd_t mqdes, const char *msg_ptr, size_t msg_len, unsigned msg_prio); [/CODE] [I]The mq_send() function shall add the message pointed to by the argument msg_ptr to the message queue specified by mqdes. The …

Member Avatar for kbatra
0
907
Member Avatar for vikasj

Hi, I want to display data which i have entered through form(html or jsp) into database. I have a servlet and a bean with a function of database retreival. I have got one attribute value in servlet through session transfer into bean's method to retrive data with respect to that …

Member Avatar for peter_budo
0
67
Member Avatar for StaticX

Hi Im having a problem when it comes to dynamic memory allocation.I have a program that lets me pick the size of my array,and then input numbers into it. That all works well,it is when I try to add another int to this array that im having problems with,could anyone …

Member Avatar for StaticX
0
339
Member Avatar for ali8888

I have a question, and it is: How create win32 application in Microsoft Visual Studio 2008 ?? I do not want to select " Empty project " in " Additional options: ". i.e. I want use visual window for my program. Please help me. My language is C++.

Member Avatar for ali8888
0
171
Member Avatar for Krstevski

Hello ppl... Can someone show me how to make a method with "unknown" data type ? I want to create one function for sorting array with different data type... (I know for .NET library but I want to create custom library...) For example: [CODE=Csharp] public class Sort { // THis …

Member Avatar for sknake
0
127
Member Avatar for Waseem Siddiqui

[B]Hii, I am unable to make the coding for backspace key, is there any one who can help me please. I request Please[/B]

Member Avatar for sknake
0
69
Member Avatar for deven_a76

Hi, I am using VS 2005. I am trying to get the connectionstring from the Web.config file. As per the Msdn as well as search on the google, most of the code days to use ConfigurationManager.Appsettings --> for getting the string from the file. But when I am going deep …

Member Avatar for deven_a76
0
144
Member Avatar for pankaj.garg

Hello, Please help me in selecting a database to use with VB6. my application will store some 20-25 values each second (24 X 7) along with date-time stamp...and i would need to access this data for over 1 year period... Keeping this in mind...which database should i select? also please …

Member Avatar for pankaj.garg
0
126
Member Avatar for srvishnukumar

Hi Friends, I dont Know That how to view the data [ie : Fill the datas] from Gird to textbox.... Plz Explain me With Example Thanks with Vishnu

Member Avatar for Silverfox13
0
123
Member Avatar for Fredczj

Hi all, I face a problem using gcc and ld on embedded target. I just want to declare a constant value (designed to be located in flash memory), and I want to have it compile, linked and allocated in my output file. For instance: [CODE]const volatile unsigned long myvar __attribute__((section(".flashdata"), …

Member Avatar for gerard4143
0
193
Member Avatar for neosonic

Hi all, If I want to read an image and split them into pixel of rgb(red green blue) regarding their color. Is it possible to do it in vb? Or I need to use the different program? if you have any clue, please let me know, thanks.

Member Avatar for neosonic
0
100
Member Avatar for Kriogenic

Hey Everyone, I am seeming to be in a spot of trouble. I am using the following code to read a HTML page, loop through it line by line. problem is it is around 7300 lines and takes about 20 seconds to finish the loop. I was wondering if anyone …

Member Avatar for Kriogenic
0
87
Member Avatar for EddieC

What if you had access to the millions of tweets that flow to and from Twitter users every day? Perhaps you'd build something like [url=http://www.daniweb.com/news/story240308.html]PostRank[/url], which amasses them along with other data from social media sites to trackcyber-reaction to posted articles. Or maybe you would filter them by demographic and …

Member Avatar for jimmurphy
0
267
Member Avatar for vishnu_1984

I am consuming a webservice which takes in 10 parameters. The aim of the call to the webservice is to obtain a Task ID.All the parameters for the call are supplied from a JSP page(using JSF). The following is the web service call [CODE] return mySoap.addTaskToProject(ticket, projectId, srcLangId, tarLangId, componentId, …

0
113
Member Avatar for ffs82defxp

It won't work! [CODE]def get_user_choice(): from string import digits user_choice = input('Type a number, 1 to 6.\n\n') if user_choice == '': print 'Not a valid choice.' raw_input() main() check_if_true(user_choice) def check_if_true(): import random comp_choice = random.randint(1,6) if comp_choice != userchoice: print 'The computer won :(' return comp_choice, user_choice else: print …

Member Avatar for ffs82defxp
0
113
Member Avatar for Egypt Pharaoh

I want to creat a button that when I click on it it will generate a TextBox ,please tell me how

Member Avatar for sknake
0
101
Member Avatar for amosda4183

I have to write a memory game, where the user gives a file name and that file reads in 8 strings that will be placed on the board. The code I have so far is down below, if anyone can help me fix it up I would appreciate it. [CODE] …

Member Avatar for Lerner
0
330
Member Avatar for tomtetlaw

I have seen an array struct in C that can hold data even if they are a different type. I forgot what that code was and I don't have the code on me at the moment. So I was wondering if anyone could show me how I would do this …

Member Avatar for mrnutty
0
1K
Member Avatar for Nazere

hey guyz, i need to make a code for searching the names in the list txt. i pretty much got the other parts, but when im kinda stuck on searching. [CODE] def main(): list_of_names = open_file() print""" --------------- non sorted---------------------""" print_names(list_of_names) print """ ----------------sorted-------------------------""" list_of_names = sort_names(list_of_names) save_file(list_of_names) search_names(list_of_names) def …

Member Avatar for vegaseat
0
113
Member Avatar for leebee306

Hi, I have a dataSet that has many .mp3 files in it. I have displayed them in a form, When i click on the cell that has the .mp3 i want. It should save to a temp file. Any Ideas thanks

Member Avatar for sknake
0
60
Member Avatar for leebee306

Hi, I have a MP3DataSet that includes .mp3 files, i have a form, which shows all the files in the dataset, on the form i also have the windows media players. I am trying, when the user clicks on a song in the dataset to play on the WMP, any …

Member Avatar for sknake
0
104
Member Avatar for JuvenileMango

Hi, I'm trying to write a hangman game program, but some things aren't working properly. [CODE]def hangman(): choice=input("Enter a letter: ") a=type.find(str(choice)) if len(choice)>1: print ("Only one letter please") hangman() elif a!=-1: b[a]=str(choice) print ("Correct") c=''.join(b) print (c) if type==c: print ("WINNAR!") else: hangman() else: d+=1 e[d]=choice if d==0: print …

Member Avatar for JuvenileMango
0
178
Member Avatar for asmikwen

Hello, I have been checking for data integration / transfer programs able to help with Mysql. I have had some advice from some people but have not found the right software yet. The main feature would be to be able to migrate important quantities of contacts and data every day. …

Member Avatar for bgkalbente
0
67
Member Avatar for joewazen

Hello, I have a 4 GB DB on SQL 2005 and the same on on sql 2008 that is growing 60MB per day, My concern is that should i allocate an unused space to the DB so that the DB wont create space for itself everyday (load on the server), …

Member Avatar for sknake
0
122
Member Avatar for buzzykerbox

Hey Guys and Gals,I'm writing a program to find the highest and lowest of 5 integers.I think i have the algorithm almost right but it doesn't work.I think its something simple.......as usual......... [CODE] include <iostream.h> include <conio.h> int main () { double total=0,num1,num2,num3,num4,num5,high,low; cout<<please enter number; cin>>num1; cout<<please enter number; …

Member Avatar for buzzykerbox
0
2K
Member Avatar for styles_p

Hello I'm a newbie of nhibernate And i would like to use the NHibernate Mapping here is my mapping file <?xml version="1.0" ?> <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly="HibernateCollaborator.Core" namespace="HibernateCollaborator.Core" default-access="property" default-cascade="none" default-lazy="false" auto-import="true" > <class name="User" table="Users" lazy="false"> <id name="ID" column="ID" type="Int32" unsaved-value="0"> <generator class="native" /> </id> <property name="ForeName" type="string" length="30" not-null="true"> …

0
78
Member Avatar for aspusers

I'm having problems trying to fill in the DataSet using SQL Server 2005. Basically I have a table in SQL Server and I want to retrieve those information and be able to display it in a web browser using DataSet. Whenever I run my code I always get error message: …

Member Avatar for aspusers
0
93
Member Avatar for CFROG

Can anyone tell me how this works? I deleted this file (sidebar.php) from the server and it still gives this error: [code]Parse error: syntax error, unexpected T_LNUMBER in /.../.../.../.../sidebar.php on line 5[/code]

Member Avatar for CFROG
0
97
Member Avatar for help_lucky

Hello All, I am new to PHP and the web interface that i am developing is not so attractive. It has many tables to display while reporting..I want to add some images to it. Like 'right click' , 'check boxes' and some image 'radio buttons'. As far as i know …

Member Avatar for CFROG
0
119
Member Avatar for python.noob

Hi everybody, I just started learning pyqt.. I referred it's wiki page and found some but only two links are useful.. I finished pyqt tutorial in zetcode.. It was really good.. I've downloaded cross-platform GUI programming with pyqt book.. But it's not an ideal book to start with for the …

Member Avatar for vegaseat
0
162
Member Avatar for Kippstah

Ok, uhh... I need help. My loop to keep the program running or to quit isn't working right. Can somebody help me figure it out? I tried a couple of methods, and they didn't work. Do anybody have any idea? By the way, this is for a blood drive program …

Member Avatar for Kippstah
0
1K
Member Avatar for StaticX

Hi, I am currently running on windows and have and issue when i try to read/write files,the problem being that it just doesn't happen. I know the code is correct because when I use a linux os and other windoze machines everything is ok..it just seems to be my computer. …

Member Avatar for StaticX
0
109
Member Avatar for qk00001

Hi people, Do you have any good sites for C++ MySQL.Especially how the 'query' part works in the C++. Thanks a lot!!!

Member Avatar for VernonDozier
0
158
Member Avatar for javaStud

Hi, I am trying to transfer some numbers that I have generated inside an array,but I have some mistake that I am not 'seeing'. The array contents are not the same as those generated. Any help please.. Thanks a lot. [CODE]#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #define SIZE …

Member Avatar for javaStud
0
93
Member Avatar for keval007

I am using this insert statement - [code=sql] INSERT INTO `crispwer_unipro`.`users` ( `user_id` , `user_name` , `password` , `email` , `activationkey` , `status` , `fname` , `lname` , `dob` , `gender` , `course_id` , `college_id` , `city_id` ) VALUES ( '2', 'k', 'k', 'kk@gmail.com', '', 'activated', 'keval', 'kothari', '2009-12-27', 'M', …

Member Avatar for pritaeas
0
123
Member Avatar for basti!

Hello together, sorry for my bad english. I'm complete new to python and its very difficult for me, so i hope that you can help me. i have got a csv in which there are names and telephone numbers. Now i have to do an program that shows me the …

Member Avatar for vegaseat
0
119
Member Avatar for merse

Lets have a class (called Class with capital C) have a class member data. But when we declare the class data in the body of the Class, we have to initialize it with something (default constructor or other constructor) however in c++ the initialization used to task to the Class …

Member Avatar for Narue
0
136
Member Avatar for vinnijain

Hi,In my application ,there is a combobox in which classname appears . Now I want that for each selected classname from combobox,I want that user could add sections according to his wish . Like if user selects class12 and he wants to add 4 sections(A,B,C,D) .he should add "A" in …

Member Avatar for vinnijain
0
120
Member Avatar for swolll

What does "->" do for vectors? And, how do you use the vector algorithms? And, also, when/why do you use #ifndef something_H, #define something_H, ..., #endif? Is there a difference between "vector" and "apvector"?

Member Avatar for jonsca
0
115
Member Avatar for shopnobhumi

what would be the recursive implementation of the following c program: int fact(int n) { if (n == 0) return (1); else return(n*fact(n – 1)); }

Member Avatar for eng.ehsan07
0
129
Member Avatar for vAshunk

i have a problem in a java program. : "accept a number and print the sum of digits." can anyone help me out???

Member Avatar for vAshunk
0
172
Member Avatar for Fenerbahce

hi, i receive an error on this line -- if (salesPersonsName <! "end") -- error : operator ! cannot be applied to java.lang.String what can i do? thanks

Member Avatar for masijade
0
249

The End.