132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Theformand

I realize this is a pretty simple operation, however im totally lost, and no post I could find seem to touch on the exact same subject as mine. I have a text file, where each line is formatted like so: [CODE]float1,float2,float3,float4,float5,float6[/CODE] Each float is separated by a comma. The number …

Software Development c++
Member Avatar for griswolf
0
159
Member Avatar for zslgreen

What is the difference between an abstract class and an interface?give me an example?

Software Development java
Member Avatar for majestic0110
0
93
Member Avatar for tc121091

This is my first time to use the string function. And I met some errors while doing the practice. We now need to input some words, until we input a word with 4 letters. Then the program will show the smallest and the biggest word among our inputs. e.g. Enter …

Software Development c++
Member Avatar for tc121091
0
208
Member Avatar for CodyOebel

I am using the free alternative to SPY ++ known as Winspector, and was suggested to start using this to get more familiar with windows and handles and process handles etc... My question here is I notice when I put the crosshair over certain windows I get WINDOWS and a …

Software Development c++
Member Avatar for WaltP
0
175
Member Avatar for Mark_48

Hay im trying to find the average of the columns. but i can onli get the average of the rows. my code is like so . . [CODE] for (int l = 0; l < list1.Count; l++) { float sum = 0.0F; float average = 0.0F; string[] list1Values = list1[l].Split(','); …

Software Development
Member Avatar for Mark_48
0
97
Member Avatar for code07

1. In a bank fixed deposit rates are given below. Period Rate 6 months 8% 12 months 10% 24 months 12% a. Design Suitable user interface in windows application in VB.NET to calculate interest at maturity. Use Radio buttons for period. b. Calculate interest at maturity. c. Calculate total amount …

Software Development user-interface vb.net
Member Avatar for code07
0
324
Member Avatar for sachahutton

Hi, i'm working with a sql (2005) database and using visual studio 2010. I've created a system where one of the forms is a find/search form. A user can enter in for example, a customerID and once they click on "find/search" the customerID will be searched in the database and …

Software Development vb.net visual-studio
Member Avatar for sachahutton
0
347
Member Avatar for warlord902

I found a link to javadoc for JXSE 2.7 from [url]http://jxse.kenai.com/Tutorials/Tutorials.html[/url] which provides a link to javadoc on kenai.com but either the link is broken or the java doc is moved elsewhere. If anyone know working link to JXSE 2.6 or 2.7 please let me. Thanks

Software Development java
Member Avatar for warlord902
0
128
Member Avatar for Usmaan

Hi there, I'd firstly like to thank some of the daniweb members for helping me with my Hangman project. It's finally complete and I have uploaded it on my YouTube. Special thanks to [B]ddanbe, Xcelled194, Mitja Bonca and Momerath[/B]. Right, on to my next project. I'm making a Naughts and …

Software Development gaming
Member Avatar for ddanbe
0
169
Member Avatar for sha11e

How can I check that the user actually is inputting what I want them to? (For example letters or numbers); I need the user to input y or n, so here is how i tried to solve it: [CODE] char answer; do { system("cls"); cout <<"Want to play? <y/n>: "; …

Software Development c++
Member Avatar for Derek Elensar
0
158
Member Avatar for dhudnall

Hello Folks, I currently have a problem with trying to assign values using an XPathNavigator object in InfoPath. What I am trying to do is to perform a simple copy and nothing appears to be working. I don't know if I am doing something wrong or the syntax is incorrect. …

Software Development xml
Member Avatar for dhudnall
0
289
Member Avatar for zachattack05

Is it possible to set a object's value, and once that value is set not allow it to change? I could write a method to do it, but I wasn't sure if there was some sort of modifier I could use? I need to set a value once, and not …

Software Development
Member Avatar for zachattack05
0
88
Member Avatar for arshi9464

NOTHING HAPPENS AFTER EXECUTING THIS CODE, BUT IT COMPILES AND RUNS SUCCESSFULLY [code]import java.io.IOException; public class Runx { public static void main(String args[]) { try { String x="cmd /c dir"; Process p=Runtime.getRuntime().exec(x); } catch(IOException e) { e.printStackTrace(); } } }[/code] Please help.......................

Software Development java
Member Avatar for Tellalca
0
195
Member Avatar for Tellalca

Hey; I'm trying to do a hang man game in Java. I newly learned some stuff about programming some GUI using Swing and AWT, but I'm not still clear with it. The problem is that all the drawing is done by a single function paintComponent() from the JPanel that I …

Software Development gui java java-swing
Member Avatar for mKorbel
0
178
Member Avatar for ak24

Hello... I'm learning C with "The C Programming Language" book, and I'm stuck at exercise 1-10 which asks to: "Write a program to copy its input to its output, replacing each tab by \t, each backspace by \b, and each backslash by \\. This makes tabs and backspaces visible in …

Software Development c
Member Avatar for ak24
0
1K
Member Avatar for techie1991

Even after looking at a lot of books, I am not able to understand the problem in the following code: [CODE] //1.c static int y=23; void abc(int a){ printf("%d\n",a); } [/CODE] [CODE] //2.c #include<stdio.h> #include "1.c" int main(){ abc(12); printf("\n"); printf("%d\n",y); return 0; } [/CODE] I can understand that the …

Software Development c
Member Avatar for techie1991
0
236
Member Avatar for smrati.katiyar

[code] class complex { int real; int imag; public: complex(){}//why default constructor is always needed complex(int a,int b){real = a;imag = b;}// why can't we define only this constructor ~complex(){} }; [/code]

Software Development c++
Member Avatar for Narue
0
726
Member Avatar for Mark_48

I HAVE TWO LISTS AND I AM LOOKING TO SUM THE VALUES IN THEM. I HAVE TRIED SO MANY DIFFERENT WAYS. THIS IS WHAT I HAVE SO FAR: [CODE] for (int l = 1; l < list1.Count; l++) { string[] lineValues = list1[l].Split(','); float intValue = float.Parse(lineValues[l]); for (int k …

Software Development
Member Avatar for abelLazm
0
131
Member Avatar for Eng_suha

This is the full code and the single error!!!!! 1>d:\s\o.o\hws\new folder\shop\shop\main.cpp(37): fatal error C1075: end of file found before the left brace '{' at 'd:\s\o.o\hws\new folder\shop\shop\shop.h(8)' was matched [code] #include<iostream> #include<string> using namespace std; #ifndef SHOP_H #define SHOP_H class Shop{ friend ostream &operator<<(ostream &output,const Shop &S){ output<<"\nThe name of the …

Software Development c++
Member Avatar for Eng_suha
0
141
Member Avatar for twigan1015

I have a few orders with UPC codes, names , and prices this is an example UPC Item Price 0921115120 Dark chocolate 13.75 2222100051 Mint meltaways 14.10 What im suppose to do is allow to user to enter the products items sold and then view batch reports on how many …

Software Development vb.net
Member Avatar for codeorder
0
107
Member Avatar for kool.net

hi, can any one tell me how to i print a page in c#.net. actually i need it to print receipt in my project. Help me. Thanx in advance

Software Development asp.net c#
Member Avatar for ChrisHunter
0
410
Member Avatar for sc8515

I have a simple program to run the Romberg algorithm however when I tried to compile it, it keeps returning that error: conflicting types for 'vector' and error: conflicting types for 'free_vector' I really cannot see why this is happening. Would you be able to advice? [CODE=c] #include <stdio.h> #include …

Software Development algorithm c
Member Avatar for Ancient Dragon
0
427
Member Avatar for zslgreen
Member Avatar for tkud
0
81
Member Avatar for Dragon840215

Hey guys I need to store a single string into Memory for later use on different pages to be able to create a log file for my app. so on my 1st form(Login Form) i need to pass the Username to Memory and then read it from the memory later …

Software Development app-store motherboards-cpu-ram vb.net
Member Avatar for kvprajapati
0
154
Member Avatar for tracydo

Seem tangle myself up with coding here and couldn't solve much of problem after many long try. I need your fresh set of eyes. Below is my errors. Thanx /* *Description: Writing own method, Switch Selection Control, String,Accumulating, *Counting method, array base on last reviews from previous labs. *prepare a …

Software Development file-system java
Member Avatar for tracydo
0
863
Member Avatar for Der_sed

In my simple Silverlight class assignment... the last method : [CODE] FontFamily verdanaFnt= new FontFamily("Verdana"); myRichTextBox.Selection.ApplyPropertyValue (Run.FontFamilyProperty,verdanaFnt) [/CODE] The problem is that it changes the FontFamily of the whole RTB including the non-selected parts. It behaves kinda like: [CODE] myRichTextBox.FontFamily=verdanaFnt; [/CODE] What i am I doing wrong?

Software Development
Member Avatar for abelLazm
0
121
Member Avatar for Banjoplucker

[url]http://paste.pound-python.org/show/941/[/url] Having trouble getting a loop to write to a series of newly created sequential blank .wp files. Grateful for any help, thank you. Regards & a Happy New Year! Banjoplucker.

Software Development python
Member Avatar for djidjadji
0
111
Member Avatar for TGeorge824

Hey I have a question about running an application that uses a .jar file. If I have a file outside called Tester.java that uses a jar file, let's call it myJar.jar, and let's say the classes are packaged as myPackage.myClasses. I imported all the classes I needed using [code] import …

Software Development file-system java
Member Avatar for peter_budo
0
169
Member Avatar for NewtoC++

Sorry if this is posted in the wrong section. But I came across this question on a test: Which of the following will evaluate to true only if boolean expressions A, B, and C are all false? (a) !A && !(B && !C) (b) !A || !B || !C (c) …

Software Development java
Member Avatar for hanvyj
0
119
Member Avatar for TinyBelly

I've tried many time to solve this problem...but still not successful, I'm newbie..so anyone of guys can help me check this problem... [LIST] [*]Button "Back" is big as frame [*]Seems no TextField for NoOfTicket [/LIST] [CODE]import javax.swing.*; import java.awt.*; //import java.awt.event.*; public class ticketReservation extends JFrame { private JLabel jlbWelcome, …

Software Development java java-swing
Member Avatar for TinyBelly
0
173
Member Avatar for xanawa

i am trying to get the picture string from the database and when it is a null it gives me this error. [COLOR="Red"]Unable to cast object of type 'System.DBNull' to type 'System.String [/COLOR] [B]This is my code[/B][CODE]public List<Item> GetAllItemFromMenuID(List<int> ListOfItemIDs) { conn.Open(); List<Item> listOfItems = new List<Item>(); try { foreach …

Software Development
Member Avatar for xanawa
0
83
Member Avatar for xanawa

I have a column in the datagrid view which i would like to make the value of the checkbox true. Do you no how to do so ?

Software Development
Member Avatar for Mitja Bonca
0
116
Member Avatar for vedro-compota

Hi guys! is it possible to call parameterized constructor from derived class no-parameters constructor? To be clear - I want to override the most simple exception constructor (withpout parametrs) by other one - with string-parameter for class - [CODE]public class SetEception : ApplicationException[/CODE] thanks in advance)

Software Development
Member Avatar for vedro-compota
0
106
Member Avatar for judithSampathwa

hi there, i want to develop a login in asp.net C#. please can someone give me a guide to develop a login web page using MVC pattern i am using visual studio 2008 please can some show how to create a login using MVC thanks

Software Development asp.net c# software-architecture
Member Avatar for abelLazm
0
171
Member Avatar for Behseini

Hi I am trying to link selected item from one list box to another list box and make the second Item selected there as well. Lets say I have 2 list box populated by the city names in two different listbox in different orders and from different source, now I …

Software Development
Member Avatar for Behseini
0
2K
Member Avatar for programing

i make twwo single linkedlist,, but i didn't know how i can merge those lists ;; [ICODE]#include <iostream.h> class linklist { private: struct node { int data; node *link; } *p; public: linklist(); void append( int num ); void appendd(int size); void display(); }; linklist::linklist() { p=NULL; } void linklist::append(int …

Software Development c++
Member Avatar for arjunpk
0
244
Member Avatar for tmroper1331

I have the following XMl file: Code: <Vehicles> <Company name="Ford"> <Vehicletype Vtype="Suv"> <Price>12000</Price> </Vehicletype> </Company> <Company name="Ford"> <Vehicletype Vtype="Truck"> <Price>20000</Price> </Vehicletype> </Company> </Vehicles> And I am trying to transform it to: Code: <Vehicles> <Company name="Ford"> <Vehicletype Vtype="Suv"> <Price>12000</Price> </Vehicletype> <Vehicletype Vtype="Truck"> <Price>20000</Price> </Vehicletype> </Company> </Vehicles> Any help would be appreciated …

Software Development xml
Member Avatar for xml_looser
0
140
Member Avatar for kirtee2209

hi..im doing a C# windows form application in visual studio 2008 and for the database im using SQL EXPRESS 2005..i need to create a crystal report. my question is when i start creating a new crystal report, using wizard, i get 1 window where i have to choose Data: i …

Software Development sql visual-studio
Member Avatar for abelLazm
0
920
Member Avatar for matthewskyle

Im trying to create a webform that is a representation of a paper questionnaire that has 14 questions with yes/no answers. If an answer is no, then you must provide information as to why in 3 separate textboxes and store the information only when a user clicks no. I also …

Software Development vb.net
Member Avatar for Luc001
0
206
Member Avatar for ninjatalon

I have an assignment where I need to Sort the linked list according to Int Variable after the user has input the information. When I try using bubble sort I'm stuck because I don't know how go back to the beginning. If a user enters : 5 4 3 2 …

Software Development c++ linked-list
Member Avatar for ravenous
0
132
Member Avatar for narunaru

I'm trying to make the quicksort but it's not working at all. I made a helper function "swap" so I can call it back in the "quick"function. then used recursive method to do it till the array is sorted. The problem is.. IT'S CRASHING EVERYTIME I RUN IT... i think …

Software Development c++
Member Avatar for ravenous
0
152
Member Avatar for mattloto

Hey guys, so I just started learning computational geometry, and I decided to make a class for a Point and a class for a Ray. This is my code: [CODE]#include <iostream> #include <string> using namespace std; class Point { public: double x, y; Point(double x, double y) { this->x = …

Software Development c++
Member Avatar for mrnutty
0
147
Member Avatar for computerbear

I have never run into this problem before and I am frustrated. What am I missing? I am trying to initialize an array of five social security numbers. It does fine until the fifth one, then throws an error saying something about the indexer out of bounds. SSN has to …

Software Development
Member Avatar for spdesigns
0
136
Member Avatar for computerbear

I have Googled and looked and looked. What is the best cleanest way to format a social security number to look like xxx-xx-xxxx? And as long as I am asking, how about how to ensure that a nine digit number is entered? Thank you!

Software Development
Member Avatar for spdesigns
0
3K
Member Avatar for trume

Hi! I have to do 2 different codes for my task. I finally did the 1st and now I need to do the 2nd one too. But I don't know the way to do it differently. Do anyone know how to make this code more simple? It needs to have …

Software Development c
Member Avatar for Prashanth Jeyes
0
130
Member Avatar for sergent

I am making a program which includes comaring 2 numbers (int's) but later I want to call another windows function and it takes in CHAR not int. I need a way to convert my ints to char. I looked up this on internet and non if it worked. Do you …

Software Development c++
Member Avatar for mrnutty
0
210
Member Avatar for Nandomo

Any tutorials on how to use CFile or any other, to open a text file, get what's inside into memory, e.x Link List, and then put it back into text file when done? Please link me or guide me through this problem. Trying to get a Payroll system going.

Software Development c++
Member Avatar for Nandomo
0
117
Member Avatar for november_pooh

Hi all, I try to read file from file.. i put the file at drive D:\test.txt Please help me.. Thanks. Best Regards

Software Development visual-basic
Member Avatar for Jx_Man
0
356
Member Avatar for Howdydoody

Hey guys I have the following class code and i get an error in the addVertex method that says vertexList is not declared in scope but i dont know why. [CODE] #include <iostream> #include "DirectGraph.h" #include <string> #include <list> #include <vector> DirectGraph::DirectGraph(): vertexList(100) { } void DirectGraph::printShortestPath(int source) { } …

Software Development c++
Member Avatar for Howdydoody
0
305
Member Avatar for studentoflife

I'm returning over 30 tables in a sql stored procedure which come back in a dataset. I store this in session state and hold for 20 mins before refreshing. My problem is, I need to be able to search the dataset for a particular table by name. At the moment …

Software Development dataset session
Member Avatar for abelLazm
0
5K

The End.