132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for enuff4life

I'm suppossed to create a code that user only inputs 1 and 2 OR 99 to exit the program. if user had put wrong number, then gently ask them again... However, when i put 1, it keeps displaying "you've selected 1" and never ends. Also, when i press wrong number …

Software Development java
Member Avatar for Drosty
0
4K
Member Avatar for enuff4life

I need to creat a method something like... when the user inputs test1 test2 haha test3 end and display that should contain exact same one as above except "end": test1 test2 haha test3 so the "end" is the keyword to finish the inputing... [CODE] String s = new String(""); String …

Software Development java
Member Avatar for stultuske
0
314
Member Avatar for Achupa

Hi, I have an assignment that's giving me some problem: [quote] "1.Add methods to your Human that return collections of arms and legs. implement these methods by iterating through the collection of limbs and checking what type of limb they are. Note that you will need to use the instanceOf …

Software Development java
Member Avatar for stultuske
0
833
Member Avatar for meddlepal

I am having a major problem with a really simple File I/O operation. I have a pretty simple datafile filled with a list of names and courses. [CODE=text] Happy Singing Dopey Dancing Sneezy Etiquette Slimey Math Grumpy Mining Slinky Karate Happy Mining Dopey Mining Doc Singing Doc Math Doc Medicine …

Software Development c++ data-structure file-system
Member Avatar for meddlepal
0
91
Member Avatar for atman

Hey guys, Im learning C online, and its hard somtimes to understand the concepts, w/o being in class asking questions. I was wondering hat would be the easiest and fstest way to understand numeric validating(no characters) and could anyone break it in easy steps? im new, but really excited about …

Software Development c
Member Avatar for ajay.krish123
0
120
Member Avatar for papuccino1

How would I go about making a testris game in c#? This is NOT for a homework assignment, this is just me practicing. I don't have any code of my own because I don't know how to approach the problem. Any help, please?

Software Development
Member Avatar for vckicks
0
215
Member Avatar for Briterican

Hi, I'm a newbie to this site, but I will soon be an active member. Currently I'm writing a program where one of my methods has to read data from a text file and set it to an array. I then need to display that data in the console, but …

Software Development c++ ios
Member Avatar for WaltP
0
113
Member Avatar for Hassan87

Hello DaniWeb members, I need some help with a program I made that I couldn't figure out the logic to complete the program should make 5 random numbers between "1 and 55" and those five numbers should: *Have two or three even numbers (%66 even or %66 odd) *Have two …

Software Development c++
Member Avatar for Hassan87
0
127
Member Avatar for smile4evr

hi... i have a small doubt in hw to check the initial charecters in text... like if the first two letters of my text is OS or TP... so based on that i should be able to select which database to select... and one more doubt is dat suppose i …

Software Development visual-basic
Member Avatar for smile4evr
0
271
Member Avatar for locsin

Greetings! Everytime I use msgbox command the active form view is disappear when the message box executed. And it appears again after the message box finished the execution. Anybody know how to display message box without disappearing the active form view.. I want to restore the form display when the …

Software Development visual-basic
Member Avatar for QVeen72
0
95
Member Avatar for ashbrenner

hi i have an image which i can get RGB values, i have to quantitize it , a new to this i think i know the principle but need a few pointers as to how to go about "mapping" the image to a range of colours. basically i am doing …

Software Development c++ image
Member Avatar for vmanes
0
157
Member Avatar for JustLearning

This grap is kicking my butt. I am not sure how to do it. Can someone please help explain these to me. [code=c++] // graph.h // -- adjacency list representation of a weighted graph // #ifndef GRAPH_H #define GRAPH_H #include <string> #include "queue.h" using namespace std; class FileOpenError // Exception …

Software Development c++ open-source queue
Member Avatar for JustLearning
0
371
Member Avatar for sivak

i want to retrieve last record in database with out doing ascending or decending order...can anyone tell me what query for this?

Software Development
Member Avatar for dickersonka
0
117
Member Avatar for robee31

I am getting the above error from the following code and I a not understanding why. [CODE]fileWriter.WriteLine( _ record.strFirstName & "," & record.strLastName & "," & _ record.strStudentId & "," & record.strCourseName & "," & _ record.strGrade)[/CODE]

Software Development vb.net
Member Avatar for Renukavani
0
143
Member Avatar for sandm

Does someone know about a program that 'reverts' .exe files created with visual basic? For FoxPro exists the refox program that reverts .exe files to .prg files. Maybe something like that exists for visual basic.

Software Development visual-basic
Member Avatar for mauvin
0
153
Member Avatar for FtKShadow

I cant get this code to work it searches and finds the answer, but it gets an error once you search it. Heres the assignment. [QUOTE]a.) Create a function called howMany that will search a two dimensional array for the the number of occurences a particular number is found within …

Software Development c++
Member Avatar for vmanes
0
111
Member Avatar for Icebone1000

I don't knof if that's the right place, since it's not c++ specific but a windows development doubt... (and sorry my english) My problem is kinda stupid, but i don't know whats happening, im tryng to show a popup menu when user press the righ mouse buttom, in the cursor …

Software Development c++ queue user-interface visual-studio
Member Avatar for Icebone1000
0
1K
Member Avatar for BestJewSinceJC

I read about data forwarding and according to my notes, a nop (no-op) is required before a beq operation and after a lw operation. What about sw?

Software Development assembly
0
61
Member Avatar for VernonDozier

This is part of a larger project. I've simplified it here. I am implementing a word search program where word puzzles are produced and displayed. There are two main panels. One is the word search panel where there are rows of letters that spell words in different directions. The user …

Software Development java java-swing
Member Avatar for VernonDozier
0
5K
Member Avatar for freelancelote

Hi, why is it giving me the warning: deprecated conversion from string constant to ‘char*’ How may I fix this? Any help is welcome [CODE=cpp] #include <iostream> using namespace std; class Melarki { public: Melarki(): first(""){}; Melarki(char * mimi): first(mimi){}; ~Melarki(){delete first;}; char * first; }; int main() { Melarki …

Software Development c++
Member Avatar for freelancelote
0
622
Member Avatar for semsql

Hi everyone, Pertinent info: SQL Server 2005 Visual Studio 2005 I am having a major problem with my C# application when inserting about 250 records into a table. The entire table is locked and no other user is able to update a record. Any idea on how I can prevent …

Software Development visual-studio
Member Avatar for semsql
0
138
Member Avatar for euphoriae

Hi everyone! I have a homework problem and I can't seem to get it to work. We're supposed to make a snowman melt when you click on it with the mouse, but my snowman refuses to melt. I know it's a problem with the mousePressed method in the MeltingSnowman class …

Software Development java
Member Avatar for Ezzaral
0
182
Member Avatar for StainlessSteelR

I have to create a program for a Jewerly Store, that is a markup application that accepts the name of an item (string), the quantity, and the wholesale cost. The markup is based on the name of the item. The program needs to output a welcome statement, accept an unknown …

Software Development c++
Member Avatar for StainlessSteelR
0
111
Member Avatar for NinjaLink

Hello.. This is what my program is suppose to do: -find length of list -check for empty list -insert in back of list -delete from front of list [B]I have everything done except finding the length of list and check for empty list.[/B] I need help getting the length of …

Software Development c++ linked-list
Member Avatar for ArkM
0
3K
Member Avatar for M00nDancer

I found a quite interesting problem on the Internet, and of course, out of curiosity, I tried to solve it. Too bad nothing came to an end :(. The task was to count the alphabet's upper letters appearing in a given text and to print on the screen all the …

Software Development c++
Member Avatar for ArkM
0
101
Member Avatar for flash121

Hello! I've started learning assembly and I have some problems with a program. I'm trying to write a program that would print some text x-times (x would be inputed by me), but I always get an infinite loop, because it seems that the counter value doesn't get updated in the …

Software Development assembly
Member Avatar for flash121
0
144
Member Avatar for mikeregas

This program is suppose to be a spell checking program and I just can not get it to work can someone please take a look and let me know what I need to do to fix it [code]#include <stdio.h> #include <string.h> #include <stdlib.h> //CONSTANTS #define wrdlen [48] #define linelen [1024] …

Software Development algorithm c
Member Avatar for ArkM
0
175
Member Avatar for dinesh5

how do i create a simple interface with two buttons and a picture in the backgroud in python

Software Development python
Member Avatar for lllllIllIlllI
0
88
Member Avatar for bvrclvr1

Hi All, I'm extremely new to Python and would like to create a program to help automate some of the things I do at work. I need to take information from an IDX shell and create a word document with it. Does this sound possible? Would anyone be interested in …

Software Development python
Member Avatar for lllllIllIlllI
0
192
Member Avatar for anil_forum

I am trying to build an application through which i can send messages from server to client. My application is similar to the windows messenger application of windows operating systems /*(to see windows messenger service go to control panel -> administrative tools -> computer management -> click services & applications …

Member Avatar for stultuske
0
140
Member Avatar for PhoenixInsilico

[ICODE]#include<iostream> using namespace std; class Point{ float x,y,z; public: Point(float f_x=1.0, float f_y=1.0, float f_z=1.0); void setXYZ(float X, float Y, float Z); void setX(float X); void setY(float Y); void setZ(float Z); void getXYZ(float &X, float &Y, float &Z); float getX(); float getY(); float getZ(); }; Point::Point(float f_x, float f_y, float …

Software Development c++
Member Avatar for sidatra79
0
95
Member Avatar for gotrobotfriends

Hi all I was wondering if someone can let me know of a quick and easy way of interacting with a Javascript control on a web page. "<a href="#p189191" name="option66" onclick="selectPollOption(66);" class="vote">Vote</a>" That's the control I would like to activate, I was thinking I could use a regular expression to …

Software Development java javascript python
Member Avatar for gotrobotfriends
0
99
Member Avatar for adam291086

[CODE]#!/usr/bin/python # e begoli, python connector for mysql # import MySQL module import MySQLdb # connect db = MySQLdb.connect(host = "localhost", user = "adamplo1", passwd = "U7RJM5HQ", db = "adamplo1_UniProject") # create a database cursor cursor = db.cursor() # execute SQL select statement cursor.execute("SELECT * FROM User") # get the …

Software Development python
Member Avatar for Stefano Mtangoo
0
118
Member Avatar for bugmenot

I am using cin to input a single character from keyboard.The problem is that if 2 or more characters are entered then the rest of the characters are being considered as input for the further cin statements.Is there any way in which I can clear the inpu buffer memory after …

Software Development c++
Member Avatar for Lerner
0
141
Member Avatar for am_mad23

Write a C++ program that would be able to manipulate a list of fruits. First, create a link list that has this fruit list: [B]apple | banana | peach | apple | mango | durian | rambutan | kiwi[/B] i. Then, sort the fruits in alphabetical order and display the …

Software Development apple c++
Member Avatar for vmanes
0
128
Member Avatar for sagar_d

[code=cplusplus] template <class T> void trace(LogBuffer& msgBuffer, T& data) { data.trace(msgBuffer); } [/code] In the above template fuction we are using a generic class T, but when we are compiling on gcc4.1.3 compiler we ar getting the following error. error:request for member 'trace' in 'data', which is of non-class type …

Software Development c++ ios
Member Avatar for Alex Edwards
0
102
Member Avatar for afg_91320

hi guys i have a problem that asks me to work with a given structure and to set an array of 35 and initialize the elements. then i take a loop statement that will step through the entire array and display the contents of each element. since the question only …

Software Development c++
Member Avatar for Lerner
0
3K
Member Avatar for srivtsan

i got the code for this problem but not able to find where i am wrong my problem is as follows Given an array of numbers, find the longest subsequence whose elements grow monotonically: 1 4 8 2 5 7 3 6 => 1 4 5 7 1 4 8 …

Software Development c
Member Avatar for srivtsan
0
145
Member Avatar for srivtsan

i got the code for this problem but not able to find where i am wrong my problem is as follows Given an array of numbers, find the longest subsequence whose elements grow monotonically: 1 4 8 2 5 7 3 6 => 1 4 5 7 1 4 8 …

Software Development c++
Member Avatar for invisal
0
247
Member Avatar for tat2dlady

I know there is a way for the user to enter input and be able to accept it without the user having to press the Enter key but I do not know the command. Does anyone here know? For example, I have a menu like this: A Add a record …

Software Development c
Member Avatar for Narue
0
116
Member Avatar for rubentan

hi guys, im using microsoft c# along with sql server 2k8 to build my database software, i have 2 problems.. 1st is i cant seem to make an incrementing primary key that doesnt start with 1? i wanted to make my primary key start from 00001 then increment it by …

Software Development c c# c++ sql
Member Avatar for dickersonka
0
87
Member Avatar for grambo

Alright this is my first program in python, so be gentle. I have 2 files I need to basically combine to create a record in mysql. Features.txt has around 1300 records and property.txt has about 25,000 records. I can read in property.txt fine and get my insert statements. My problem …

Software Development python
Member Avatar for jlm699
0
130
Member Avatar for kjsalk

hello everyone in need of a little help here.i am beginner to programing and i have to produce a program that 1 outputs a message to the moniter asking the user their age as a whole number 2 use the input method to obtain a whole number from the user …

Software Development c++
Member Avatar for kjsalk
0
124
Member Avatar for CTOBiz

Friends, First off, I'd like to thank each one of you for setting up such a fantastic supporting network to help each other. Here's what I want to do and I think this is feasible but haven't done it myself as my focus can been more architecting web and DW …

Software Development c++ flash user-interface
Member Avatar for ArkM
0
130
Member Avatar for bcodrin

Hi.I want to thank in advance for all replys. Well let's get to the problem. I need to a C++ code that will do the following: 1.User inputs a number 2.All digits of the number inputed not divisable by 2(odd numbers) must be multiplicated. (* operation ). 3.Show multiplication result. …

Software Development c++
Member Avatar for Denniz
0
93
Member Avatar for stunt_man33

Hi, im having some problem while doing my assignment, i cant make my recursive function to loop as to get each digit from the number generated randomly. int random (int num) { srand (time (NULL)); num = rand(); cout << num << endl; if (num != 0) return num % …

Software Development c++
Member Avatar for Denniz
0
91
Member Avatar for adam291086

I am trying to send a message using SOAP. Everything seems to work but no message comes through. I get no error message at all here is my code [CODE]#!/usr/bin/python from SOAPpy import WSDL print "Content-type: text/html\n" wsdlFile = 'http://www.adamplowman.com/sendservice.wsdl' server = WSDL.Proxy(wsdlFile) username = 'adamplowman' password = 'DreamOn' destination …

Software Development python
Member Avatar for adam291086
0
143
Member Avatar for sganandhsg

hi friends How to set application path using VB.Net using MySQL..... The same function using VB 6.0 as Public AttnPath As String AttnPath = App.Path & "\Data" this type, i need vb.net help me plz... Regards Anandh

Software Development vb.net
Member Avatar for Renukavani
0
687
Member Avatar for clutchkiller

When switch"ing" (....) If the user inputs 1, would you just use case 1: or case '1': thnks

Software Development c++
Member Avatar for clutchkiller
0
138
Member Avatar for VernonDozier

I have an applet that is not initializing: [code=JAVA] import javax.swing.*; public class WordSearchApplet extends JApplet { public WordSearchApplet (int width, int height) { } public void init () { new WordSearchApplet (700, 800); } } [/code] Here is the error I get. [quote] load: WordSearchApplet can't be instantiated. java.lang.InstantiationException: …

Software Development java java-swing
Member Avatar for VernonDozier
0
107

The End.