43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for intes77

Im abit confused about the problem im solving right now. it says that i will create a program that would let me input any word, and count how many letters are there. and afterwards i will also make another statement letting me input any letter,then the program would determine if …

Software Development java
Member Avatar for BestJewSinceJC
0
179
Member Avatar for TheWolverine

Hi all, I am just getting into the world of OOP and I'm not totally sure in what situations it's better to use objects and when it's simpler to just revert to arrays. For example, I am currently re-writing a bit of scientific code written in C that simulates the …

Software Development c++
Member Avatar for TheWolverine
0
172
Member Avatar for Matt323

Hi, i'm newish to this website, (i've googled a lot for answers to my questions and often came accross very useful answers to my problems on this website) and i'm also in the middle of learning C++. As i learn new things i decide to make little programs that actually …

Software Development c++
Member Avatar for mitrmkar
0
386
Member Avatar for BobbieJean

Hello, I have an assignment for class that I have been working on and am nearly there. First of all, here is the description of the assignment: "Employee and ProductionWorker Classes Design a class named Employee. The class should keep the following information in member variables: Employee name Employee number …

Software Development c++
Member Avatar for BobbieJean
0
2K
Member Avatar for doctorjo5

I know that this is an easy one but it is hard for me to figure out. I need to make a program that can: * Open the file and read through all of the lines in the file. (got this) * If a line starts with "Subject:", skip the …

Software Development python
Member Avatar for woooee
0
185
Member Avatar for tokomonster

I just self-taught myself C++. I've got all the basics down, but I'm still working out some of the nuances. Basically, I'm passing an array into a function, and I need the function to be able to pass the length of the array to an integer. I'm using [CODE]int len …

Software Development c++
Member Avatar for tokomonster
0
195
Member Avatar for Simon180

I have a small problem with my code below when making my userlist when i connect a user it doubles the user name in list and am unable to find out why i posted my user list code below i be grateful if sumone can help me when i login …

Software Development pascal
Member Avatar for Simon180
0
120
Member Avatar for Encrypted

I'm not sure if I'm not comparing the strings properly or not, but for some reason my toppingCost function will only return 0 or a huge wacky number (when I mess around with the code a bit). Does anyone see anything wrong with this? [CODE] // represent the cost of …

Software Development c
Member Avatar for Dave Sinkula
0
137
Member Avatar for songweaver

Hey guys, My teacher gave me a program to look at for using arrays with methods to which it creates a series of 10 random numbers and then uses a print method to print them out on one line then, using a selection sort method to arrange them in numerical …

Software Development
Member Avatar for ddanbe
0
105
Member Avatar for cnuzzo

I am using python 2.6 and am new to using Tkinter. I am trying to create a basic template GUI for a Toplevel Frame with multiple frames inside of it. I ran into an issue where I am not able to clear my frames properly. I think I have an …

Software Development gui python tkinter
Member Avatar for cnuzzo
0
1K
Member Avatar for DHPena

Hello everyone. I'm developing a program where I need to write some data on a FIFO file, and I'm using the command Write() for that. My problem, is that with that command I can't send integers, so I was thinking about Convert them to Char, and then increment them on …

Software Development c
Member Avatar for DHPena
0
442
Member Avatar for bd338

Hello everyone! I've written this boot loader, using NASM: [CODE] [BITS 16] [ORG 0x7c00] jmp $ times 510 - ($ - $$) db 0 dw 0xaa55 [/CODE] I know, the code is VERY simple, but I just want to know how I could run it on my computer? I've assembled …

Software Development assembly
Member Avatar for bd338
0
150
Member Avatar for himit

Hi, I want to pass the value of a variable in my href. Is it possible? Example:- <xsl:variable name="URL"> <xsl:value-of select="catalog/cd"/> </xsl:variable> <a href="[COLOR="Red"]&lt;xsl:value-of select='$URL'/&gt;[/COLOR]"> Link to catalog </a> Please help me, how could i achieve this task?

Software Development xml
Member Avatar for himit
0
164
Member Avatar for StaticX

Here is a smaller program I made but the concept is much the same, what I understand( which is obviously not the case ) with this program is: The function returnFunc is called 3 times in main Each time is is called it returns a value from the array Is …

Software Development c++
Member Avatar for StaticX
0
83
Member Avatar for webdragon89

I have a 3x3 matrix with values: (0,0)=3 (1,1)=4 (2,0)=2.4 the rest of the values are zero and the code: [CODE]#include <iostream> using namespace std; class sMatrix { public: sMatrix(); sMatrix(int,int); int getR(); int getC(); bool rValid(int); bool cValid(int); void setEl(int,int,double); double getEl(int i,int j); void print(); private: int nr, …

Software Development c++ matrix-multiplication storage
Member Avatar for tetron
0
401
Member Avatar for G_Waddell

Hi All, I've published a app using Clickonce Deployment for use on our LAN (so I've set it to online only for ease of updates etc) When I run the setup on my own machine, the app installs and runs with no issue however when I run the setup on …

Member Avatar for G_Waddell
0
162
Member Avatar for adcodingmaster

Hi all. Can you please give me some ideas for software engineering project. This is not my final year project. Just a project for this course. There will be no implementation of the project. It only involves Documentation. So please help me. Thanks in advance

Software Development c++ engineering
Member Avatar for adcodingmaster
0
209
Member Avatar for riotburn

Hi, first post...I am writing a program for simpsons rule for numerical estimation of integrals, [URL="http://en.wikipedia.org/wiki/Simpson%27s_rule"]wiki here[/URL] , and I finally got the code to execute with no errors. Now I am just getting a blank black box with no results. Any help? Thanks in advance. [CODE] // hw2.cpp : …

Software Development c++
Member Avatar for jazz_vill
0
421
Member Avatar for programer411

Hi I'm supposed to write a program that has the input include: • m lines, each including n characters. If the character read is not a space, the character belongs to the boundary of the shape. • Two numbers that specify the coordinates, namely the row and column indices of …

Software Development c++
Member Avatar for tetron
0
473
Member Avatar for mrnobody

Hi, I'm currently doing a program to search for text in powerpoint files using interop in vb.net 2005. When a user does a search, it will open the powerpoint (.ppt) file and do the search. This is working fine. What I want to achieve next is if the powerpoint file …

Software Development vb.net
Member Avatar for mrnobody
0
103
Member Avatar for rena0514

in this program i have to use listners, and radio buttons and buttons....right now i am doing the first part of the program where when the user selects the radio button for circle two circles appear on the screen..... [code] import javax.swing.JFrame; public class shapes { public static void main(String[] …

Software Development gui java java-swing
Member Avatar for javaAddict
0
155
Member Avatar for herrschteiner

Good day, I am attempting to write a Python script that has a given hexadecimal value, and a given list of strings. The script randomly samples the list and pulls out 3, 4-string lists. The strings are joined, converted to integers, converted to hexadecimal values, added together and the sum …

Software Development python
Member Avatar for herrschteiner
0
222
Member Avatar for Olliepop

Hey guys! Would some kind soul please be able to tell me how i can add some form of text field (for user input) which can be positioned anywhere easily with X and Y values and has no border (or the border is removable).. I've seen it many many many …

Software Development java
Member Avatar for Olliepop
0
141
Member Avatar for PDB1982

I'm getting the following error and I don't know how to fix it: Error 1 error LNK2001: unresolved external symbol "public: static int HotDogStand::DogCounter" (?DogCounter@HotDogStand@@2HA) CartTesting.obj CartTesting I'm trying to use the HotDogStand::JustSold() function to increment the DogCounter variable by 1, or none (depending on user entry). I think my …

Software Development c++
Member Avatar for mitrmkar
0
87
Member Avatar for KirkPatrick

I have a program where my JFrame contains a tabbed pane with 3 tabs, I am wanting to make it so that when tab1/jpanel1 is doubled clicked it displays the contents of the JPanel on the second monitor. In my case the second monitor will be a large plasma screen …

Software Development display java
Member Avatar for KirkPatrick
0
3K
Member Avatar for the_prox

Hi there, I'm working on a simple java program that allows a user to input numbers via console, throws an exception when a string is entered, and tallys up and prints the integers when the user simply hits enter with no input. i.e. Please enter a value: 5 Please enter …

Software Development java
Member Avatar for Estudiante
0
13K
Member Avatar for gerard4143

This is a Linux brainteaser for the C comfortable and leisurely bored. I'm not looking for the answer.. Note the compile lines are commented at the bottom of the program - Ubuntu and derivatives please use the second compile line or it will not work. So what does this program …

Software Development c slackware ubuntu
Member Avatar for gerard4143
0
136
Member Avatar for vincenzorm117

In a function I placed the int array: factor[ g + 1] . g being input from the standard input but the program makes the array into this: factor[-1]. By the way I'm using xCode on mac. Why does this happen?

Software Development c
Member Avatar for vincenzorm117
0
109
Member Avatar for XinJiki

I am working on a homework assignment: File Input to the program is the body of the letter. Keyboard Input to the program is the name and address of the recipients. The file contains all the letter except the names, which are denoted by #N#. This occurs exactly once in …

Software Development c++ file-stream file-system
Member Avatar for Shinedevil
0
254
Member Avatar for sexyzebra19

I need this for matrix multiplication, I'm putting any 2 dimensional matrix into 1 dimension by column major order, i.e. the matrix 1 2 3 4 is stored as [1 3 2 4]. To try and figure it out I've worked out the pattern for 2x2 matrices: [code=php] data_[1] = …

Software Development c++ matrix-multiplication
Member Avatar for dusktreader
0
154
Member Avatar for Encrypted

I have no idea why, but I'm having problems with getting my strings to compare properly. Below is my code. The part I'm having trouble with is in the while loop. For some reason the programs looping even when my string matches the constant. Any help would be appreciated. [CODE] …

Software Development c
Member Avatar for Encrypted
0
115
Member Avatar for tanvirahmad

Hi Experts i m using these code for selecting data grid row [CODE] While i <= DataGridView1.Rows.Count - 1 If Trim(DataGridView1.Rows(i).Cells(0).Value) = Trim(TextBox1.Text) Then DataGridView1.Rows(i).Selected = True Exit While End If i = i + 1 End While [/CODE] it's working nice. but , when no of row more then …

Software Development vb.net
Member Avatar for ukshir
0
4K
Member Avatar for isralruval

i have the following function which works, its encrypts a text file, well its suppose to shift the letters of a text file by whatever the user wants, lets say the text file says "zoo" if the user wants to shift the letters by 1 to the right the output …

Software Development c++ encryption ios
0
71
Member Avatar for renyges

hi guys i have develope a database based system recently but its shows a error as in title do anyone can help me???? its realy urgent guys here is my code : [code] Imports System.Data Public Class Form2 Dim inc As Integer Dim maxrows As Integer Dim con As New …

Software Development dataset open-source vb.net
Member Avatar for renyges
0
85
Member Avatar for dusktreader

In my application, i currently make many (parallel) calculations based on a time parameter. The calculation is a parametric function of time, so, each time value renders a unique solution. Currently, I have many threads that are calling the same calculation function, and the time parameters are often the same. …

Software Development c++
Member Avatar for dusktreader
0
291
Member Avatar for orwell84

okay, so I wrote a program in Perl to find prime numbers and, when learning C, I decided to translate it into C. The thing is that...well...it doesn't work. No matter what I do, I get the same message when I say ./primes.c at the terminal: Segmentation fault. I know …

Software Development algorithm c perl
Member Avatar for orwell84
0
113
Member Avatar for dbbd

I'm using a modulu on a variable that has a hex numeric value, apparently I;m doing something wong: [CODE] import sys import fileinput if len(sys.argv) != 2: print 'Usage: ', sys.argv[0], 'val' sys.exit(1) offset = sys.argv[1] print 'offset=',offset mod = offset%4096 if mod != 0: print "unaligned: ",offset [/CODE] since …

Software Development python
Member Avatar for dbbd
0
258
Member Avatar for angels21usa

I don't know anything about programming but I would like to figure out how to program this idea I had for calculating prime numbers. I know that this looks a little bit jumbled, but logically it should work. My basic idea is that the square root of the first number …

Software Development c++
Member Avatar for angels21usa
0
96
Member Avatar for irmak1771

Is there a way to know which data(row) dataadapter.update changed in the database? I have a datagridview, changes in the gridview are updated with dataadapter.update at the database. But I have two databases so according to changes made in the datagridview the second table should be recalculated. So I want …

Software Development
Member Avatar for Geekitygeek
0
176
Member Avatar for ticktock

Hello all! I am in the process of creating a restaurant application that lets the user select an item from a menu list (a listbox) and on a press of a button the selected item from the listbox transfers to to my current orders list (multicolumn listview, 3 columns; foodname, …

Software Development listview
Member Avatar for Geekitygeek
0
673
Member Avatar for snakay

Hi, I'm having problem when trying to read from ArrayList.Here is my code [code] ArrayList arrList; public ARMakbuz( ArrayList Alist) { arrList =new ArrayList( Alist); } private void ARMakbuz_ReportStart(object sender, EventArgs e) { foreach (ArrayList item in arrList) //Here I get exception { Fields["KOD"].Value = item[0]; Fields["DESC"].Value = item[7]; Fields["QTY"].Value …

Software Development
Member Avatar for snakay
0
153
Member Avatar for skwatamkar

hello friend this is the code of my splash screen i want to play a background music when this screen is appears who can i do that i have "hbd.au" file.which i want to play at back ground.I also want to stop the music when it end i.e recursive playback …

Software Development java java-swing
Member Avatar for skwatamkar
0
140
Member Avatar for doddware

The project that I'm currently working on is for an large embedded application with a multi-person team. During a recent review of the code I came across the following statement [CODE]bSlcIsolated[logical-1] = (!!p_bIsolated);[/CODE] The interesting part is the double inversion [CODE]!!p_bIsolated[/CODE] The register being double inverted, is a private byte …

Software Development c++
Member Avatar for Salem
0
185
Member Avatar for elmaco93

Ok, first of all, hi everyone at Daniweb! This is my first post on this amazing site and I'am building a little application that checks at load up if a text file is empty, and if it's empty a FolderBrowserDialog will pop up and let you choose a path wich …

Software Development
Member Avatar for elmaco93
0
120
Member Avatar for wtvrinc

I am trying to read multiple files which contain values under various Column headers (like pressure, temperature etc)...I using "infile" to read values and assign it to a structure. However whenver there is a bad character in the file or less number than the number of parameters, the output gives …

Software Development c++
Member Avatar for kesh1000
0
89
Member Avatar for badx

I NEED HELP WITH THIS BUTTON IVE ATTACHED THE FORM AND CODE ERROR. [code] public partial class Client : Form { public Client() { InitializeComponent(); } private void clientsBindingNavigatorSaveItem_Click(object sender, EventArgs e) { this.Validate(); this.clientsBindingSource.EndEdit(); this.clientsTableAdapter.Update(this.dataSet.clients); } private void Client_Load(object sender, EventArgs e) { // TODO: This line of code …

Software Development dataset open-source visual-studio
Member Avatar for Geekitygeek
0
151
Member Avatar for hpdp

Hi, I'm new to xslt. I need to write a xslt on medical journals. I made it work. But I found if I need to add something later, it's hard to do. Right now, I'm trying to add links to different sections. I know I need to use test on …

Software Development xml
Member Avatar for pritaeas
0
166
Member Avatar for spiricn

Ok first of all I'd like you guys to know this is like my first thread ever so go easy on me if I'm not doing something right :P Right then , so I've been programming in python for some time now and I love pretty much everything about this …

Software Development gui python
Member Avatar for spiricn
0
175
Member Avatar for noname1015

Hi, i am doing with deleting row permenately from database currently,but the problem i face right is that i can delete row from datagridview only, but the data inside database remains unchange.I want to delete a row which i selected permenately when i click a delete button . Here is …

Software Development vb.net
Member Avatar for noname1015
0
4K
Member Avatar for sjfleming

Hi, I'm trying to read an excel worksheet that has cells with decimal numbers with exponents of 2 or more. When I read a cell that has a value of say 1002.00 in the cell, I'm getting 1002 when the code is reading the cell. In the formula bar in …

Software Development c c# c++ microsoft-office
Member Avatar for sjfleming
0
8K

The End.