43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for computerbear

Requirements are listed throughout. I have tried with and without the converter. prefix. Please help. [CODE] namespace Assignment_4b_Moon_money { //program that contains a method that calculates the conversion of any amount of money into the fewest bills; it calculates //the number of 20s, 10s, 5s, and 1s needed. This assignment …

Software Development
Member Avatar for computerbear
0
196
Member Avatar for HASHMI007

[CODE]//how can make this program by composite class.plz conver this program using composition...............................! #include<iostream.h> #include<stdlib.h> class point { friend class circle; private : int x,y; point (int xx,int yy )//:(int x(xx),int y(yy)){} }; class circle{ float r; point p1,p2; public : circle (){r=0;} circle (int a,int b,int c,int d){ p1.x=a;p2.x=b;p1.y=c;p2.y=d; …

Software Development c++
Member Avatar for HASHMI007
-4
90
Member Avatar for chad33

My homework assignment is to do the following steps below. I am able to write steps 1,2,3, and 5. I am stuck on how to go about writing code for step 4. Can I include this step into one of my for loops or do I need to write another …

Software Development java
Member Avatar for Slyvr
0
317
Member Avatar for thecoolman5

hey, I use DEV-C++ and I want to know how to display text in a new windows project. this code that i used from an example doesnt work. [CODE]#include <windows.h> #include<iostream> #include<string.h> /* Declare Windows procedure */ LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM); /* Make the class name into …

Software Development c++ data-structure microsoft queue
Member Avatar for thecoolman5
0
300
Member Avatar for Ninjaboi

In a nutshell: How can I statically link .dll files into my programs executable? I know it's possible, just have never done it before. I know there is also some issues that arise in doing so ( as well as bloating the executable's size ) but I'm still game for …

Software Development c++ ide
Member Avatar for Ninjaboi
0
2K
Member Avatar for toferdagofer

i wrote some code to take an array and run it through a function to reverse the elements of the array and then return a pointer to the new array. For some reason im not getting the results i want. It has to do with my reverseArray function. Specifically in …

Software Development c++
Member Avatar for toferdagofer
0
107
Member Avatar for plasticfood

i am getting an error in this. basically it sorts a queue in abc order. [CODE]public class Queue2{ public static void main(String [] args){ LinkedQueue q = new LinkedQueue(); q.enqueue("d"); q.enqueue("v"); q.enqueue("b"); q.enqueue("a"); q.enqueue("d"); System.out.println(q); System.out.println("----------------"); sort(q); } public static void sort(LinkedQueue q){ LinkedQueue qFinal = new LinkedQueue(); int count …

Software Development java queue
0
76
Member Avatar for stow19

hey all, I've been trying to shuffle a deck of cards but my shuffle results in the deck duplicating cards. i've used the the knuth shuffle and I had no luck i've found: [CODE] var cards = Enumerable.Range(0, 51); var shuffledcards = cards.OrderBy(a => Guid.NewGuid());[/CODE] but I don't know how …

Software Development
Member Avatar for stow19
0
124
Member Avatar for Morten Brendefu

I did an experiment regarding sorting of 256.000 random "names" using TListBox component. A friend of mine say that TListBox is faster than my code at sorting, so I wanted to test this out of curiosity. Method of testing. When I have created 256 thousand random textstrings, each 6 characters, …

Software Development delphi pascal
Member Avatar for TrustyTony
0
2K
Member Avatar for luislupe

I'm trying to build my first template function, but it generates a compile error when lines 21 and 22 are not commented. What I'm trying to do is to have a template function that can return multiset<int>, multiset<double> or multiset<string> depending on the attribute I want to extracto from the …

Software Development algorithm c++ ui-ux
Member Avatar for mike_2000_17
0
329
Member Avatar for twigan1015

I know im suppose to show code, but im stuck on how to make an integer, I kinda feel bad wasting a thread for a simple answer, but I cant figure it out, what im trying to do it make an integer values in the range of 10 to 1000. …

Software Development vb.net
Member Avatar for twigan1015
0
108
Member Avatar for Wrai

I'm having issues with basically moving the snowman itself. I know I have to repaint image in a different position, but I tried and failed. The snowman always end up having a line of color and shape following it as an aftereffect. Can anyone help me out on how to …

Software Development java
Member Avatar for Wrai
0
1K
Member Avatar for arezz09

i hve create 1 listview and all data from accessdatabase (using oledbconnection) in database hve 4 column, so in listview 4 column.. can i view only 2 column in listview, example only column 1 & 2 only in listview.. i using this code [CODE] ListView.Items.Clear() While (myDR.Read()) With ListView.Items.Add(myDR("column1")) .SubItems.Add(myDR("column2")) …

Software Development listview vb.net
Member Avatar for debasisdas
0
136
Member Avatar for Suzie999

Sorry for noob question. If a condition is tested with or, and the first condition is met, are the further conditions tested? For example, is "b" even tested in the following code?... [CODE]bool a = true; bool b = false; bool c = false; if (a || b) { c …

Software Development
Member Avatar for Suzie999
0
143
Member Avatar for stan_l

I have a generic script in another language which I use to query an ASA5500 firewall. Because of thousands of possibilities in even the 'show' commands, I write small .cmd files which are macro-executed from the main script. A .cmd file looks something like outfile("config.dat") showline("terminal pager 50000",0) makebuff(2000000) showline("show …

Software Development python
Member Avatar for TrustyTony
0
299
Member Avatar for MeandJava

Hello everybody, I am working on a school project now and I want to have a blinking LED. The piece of hardware we use is not familiar because it is designed by school. I have the methods to put on the led and to put off, but can't get it …

Software Development java
Member Avatar for MeandJava
0
150
Member Avatar for Formby

I have an array set up to receive the names of forms when they open. The form name is sent as a Form not a String therefore when I run my code I cannot check for whether the field is empty in the normal way (ie. array(1) = "") as …

Software Development vb.net
Member Avatar for Formby
0
140
Member Avatar for arshi9464

I was reading a bit about the JDBC, i've made a lot of programs related to JDBC, but i've never been able to understand the concept of Class.forName(). Please explain it fully, i know the basics, as what are the strings passed, what is done and all. I wanna know …

Software Development java
Member Avatar for arshi9464
0
97
Member Avatar for yosi501r

Hello everybody, I try to find out how to download any file from a URL that doesn't specify. For example: [url]http://translate.google.com/translate_tts?q=Daniweb[/url] ^^This URL directs to an .mp3 file, which is the spoken text by Google Translate. I have this code already, but it helps only when I use URL with …

Software Development file-system java pdf
Member Avatar for yosi501r
0
454
Member Avatar for Javam

Hey, I am having a problem figuring this out. I didn't use file I/O before this so be gentle at me :P. Here is my problem: I am writing to a file, an object Book. The constructor looks as follows: [CODE]public Book(float bookId, String bkName, String bkAuthor, int year, String …

Software Development java
Member Avatar for Javam
0
168
Member Avatar for ThatGuy2244

I was wondering how I could display more than 256 colors with the VGA color palette. correct me if I'm wrong, but the reason that you can't display more than 256 colors at once is because each byte in video memory corresponds to one pixel on the screen. But because …

Software Development assembly motherboards-cpu-ram video
Member Avatar for ThatGuy2244
0
317
Member Avatar for shack99

Hey everyone, I have an Xml file in which I want to compare elements; [CODE] <Students> <Student id = "a"> <Name>*** </Name> <Age>17 </Age> </Student> </Students> <Students> <Student id = "b"> <Name>*** </Name> <Age>17</Age> </Student> </Students>[/CODE] if student "a" is of the same age as "b" I want to display …

Software Development c# xml
Member Avatar for shack99
0
701
Member Avatar for Ravenn

hi:) i'm writing a windows form program that controls 4 stepper motors, using visual studio express 2010, c++ i'm using a for loop that has to cycle for up to 1200 times. it works well enough but it's kinda slow and, when it's connected to my hardware and given more …

Software Development c++ visual-studio
Member Avatar for jonsca
0
254
Member Avatar for Thigina

Hi, im a student doing a project on attendance system.... i have problem where the text entered (username)from formA jTextField1 need to pass to FormB in order to the combo box in FormB shows(subject,course,time) that correspond to the username was entered in Forma....i have try it....but got error... Here is …

Software Development java microsoft-access
Member Avatar for Thigina
0
141
Member Avatar for shazzy99

[COLOR="Green"]Trying to take input from user, put it in array and do the sorting[/COLOR] The code is: [CODE] #include <stdio.h> #include <conio.h> #include <stdlib.h> class Sort { static int array[5]; static int index; static int i; public: void insert(int num) { array[index] = num; index++; } int sortarr(const void *x, …

Software Development c oop
Member Avatar for Narue
0
186
Member Avatar for msqueen082

Hello Today I am trying to put an error message showing that the client has no stock..I think I have to use the clientidlist to show if the client id does not show up in the clientidList than show error message stating the client has no stock..but I am not …

Software Development vb.net
Member Avatar for HookDevil
0
111
Member Avatar for globberbob

Hey there, working on a program thats going to have a bunch of functions, but for now I am stuck on something that will be reused throughout the program alot: passing a string pointer to a function. It may seem redundant or arbitrary that I am passing it as a …

Software Development c++
Member Avatar for globberbob
0
7K
Member Avatar for Eyo
Member Avatar for GLOBusa
0
1K
Member Avatar for missc

hi i have two table : Guest and Country.. which are linked by a country id foreign key in guest table .. now in my program i would like to do a data grid view showing all guests details .. how can i show the name of the country instead …

Software Development
Member Avatar for missc
0
79
Member Avatar for jwxie

I am new to assembly. I found this code here [url]http://www.daniweb.com/software-development/assembly/threads/117744[/url] What I am having trouble with are the following lines [CODE]L0_95: ; this segment prints ASCII code 0 - 95 mov si,6 ; refers to the string we declared at the beginning mov cx,4 ; I think this is …

Software Development assembly
0
116
Member Avatar for leo88

hi, anyone know how to fix the inputs in a textbox must be a number ?

Software Development c#
Member Avatar for leo88
0
182
Member Avatar for Formby

I've looked all over the internet for a suitable solution to my problem, and I just can't fine a simple and effective one; so I hope I can get some help here! First off I am programming a hotel booking system for my college computing project. This consists of a …

Software Development microsoft-access sql vb.net
Member Avatar for Formby
0
159
Member Avatar for Jake.20

I need help ... again. I'm having so much problem in here, on how to multiply column 0 to column to which is. The column 0 is the quantity, and the column 2 is the price. I have a pizza hut Ordering system. Here is my problem. After i click …

Software Development listview vb.net
0
88
Member Avatar for ThePythonNoob

I made myself a project which is to make a virtual inventory but I have been having difficulty with pickling the variable: inventory. Could someone please insert the strip of code in order to save the variable in a seperate file and make it able to import it. [CODE]import pickle …

Software Development python
Member Avatar for woooee
0
79
Member Avatar for gingerfish

i have this code, i need to have [B]for()[/B] inside this boolean method, but it shows an error that return method is missing. how can i solve it? [CODE] public static boolean findPrevious(int dataIdx, int featIdx, String data, String[][] array){ for(int i=0; i<dataIdx; i++) { if(array[i][featIdx] == data) return false; …

Software Development java
Member Avatar for Ezzaral
0
189
Member Avatar for shyla

Hello guys it my first time trying c# i am trying to solve this problem and this is what i got so far i dont know where to locate the auto implementation properties to which class i a little bit confused appreciate any help the question is add below [CODE]using …

Software Development
Member Avatar for shyla
0
133
Member Avatar for Jake.20

I need help i'm out of ideas, i don't know how to add numbers in a currency format. need help please. Thank you in advance.

Software Development vb.net
Member Avatar for codeorder
0
216
Member Avatar for stupid guy

hi all, i have an applet code here..i wanna do database operations later on..but i m stuck to this basic applet function..have a look [CODE]/* * @(#)Appletsamp.java 1.0 11/04/09 * * You can modify the template of this file in the * directory ..\JCreator\Templates\Template_2\Project_Name.java * * You can also create …

Software Development java
Member Avatar for JamesCherrill
0
143
Member Avatar for sergent

C:\Users\Kostya\Desktop\c++\MacroWriter\ifexists.cpp|27|error: ambiguous overload for 'operator=' in '((farm*)this)->farm::sendeachbase[i] = 0'| Ok so I am making a class for my program and I want to initialize some of its variables to 0's. I haven't done anything with classes for a while so I am not good with this stuff. This is my …

Software Development c++
Member Avatar for mrnutty
0
255
Member Avatar for cwarn23

Hi, I have 2 images stored in the variables [ICODE]Image img_arrowl; Image img_arrowr;[/ICODE] and now I need a function or method to set the opacity of these two images. So the syntax I'm after would be something like the following: [CODE] img_arrowl = set_imgopacity(img_arrowl,0.75); img_arrowr = set_imgopacity(img_arrowr,0.75); [/CODE] The only …

Software Development image java
Member Avatar for mKorbel
0
2K
Member Avatar for ursdestiny

Hello, I have date saved as varchar (Day,DD,MM,YYYY)in my database(DB) and it is displaying on my DB binded datagrid. I have binded it through VS.NET 2008. Is there any way I can get the sorting of my datagrid from date? Please tell me the possible solutions for it. Thanks Adnan

Software Development
Member Avatar for abelLazm
0
73
Member Avatar for missc

hi, for a 'total cost' field in sql i used the data type 'money'.. in c# what data type should i use to match that of the sql?? decimal or float?? thanks

Software Development
Member Avatar for Momerath
0
191
Member Avatar for bahed121

Hello All, Can any one tell me how we bind data to a ComboBox from a dataset? Thanks for your precious help

Software Development dataset
Member Avatar for bahed121
0
119
Member Avatar for sdr001

Note: vector < vector < string > > addresses; I am having a problem with this line of code: addresses.push_back(addy.c_str); I am trying to push back an email address in the i location of the 2-d vector. I have tried: addresses.push_back[(addy.c_str)]; and addresses.push_back[i][(addy.c_str)]; but nothing is working >:/ I appreciate …

Software Development c++
Member Avatar for sdr001
0
162
Member Avatar for Behseini

Hi Guys, I have a problem with selecting several item from a combobox which are suppose to call same method. let's say I have a combobox populated like this list One Two Three Four Five Six Now I would like to let if user select one of these three option …

Software Development
Member Avatar for Behseini
0
409
Member Avatar for Bastiondar

Is changing the currentLoc variable with an [B]IF[/B] statement a bad way to terminate this loop below? I'm told: [I]"...something in the loop body must cause the expression to become false at some time. One of the things you do not do ever, is write an if statement to change …

Software Development c++
Member Avatar for Bastiondar
0
352
Member Avatar for jason75080

This program accepts input in the form of a String of names and grades. It picks out the names and picks out the grades and puts them in seperate arrays. Then it needs to output them together sorted by grades and then by names. I can get the Grade Order …

Software Development java java-swing
Member Avatar for jason75080
0
5K
Member Avatar for kazekagerandy

i am working on a virtual make-up software and the only thing i lack to totally finish it is the lipstick part. is there a way that i can trace the edges of the lips of the picture that im editing and fill its insides with colors from a colordialog …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
162
Member Avatar for diniboi

Whats up guys? I need help my code is not working too great could someone please help me? My Input should be : 03/12 hello there My Output should be : March the 12th: hello there It needs to work for January, February, March, April, May and June. And all …

Software Development python
Member Avatar for diniboi
0
199
Member Avatar for HookDevil

Hi to all, I have a severe problem with memory when executing my application. At start it merely uses about 14.000 K without doing anything. Then, when the main code starts in a seperate thread, it spikes up to 700.000 K (observed in TaskManager). Program in question is an implementation …

Software Development motherboards-cpu-ram vb.net
Member Avatar for HookDevil
0
298

The End.