132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Mensa180

Hello all! I was bored and upon my father's challenge I made a program that tells you the 20 day SMA for a specific date, I only have 100 days of data but can up that to over 8000 whenever I get my logic sorted out. The problem is I …

Software Development python
Member Avatar for Mensa180
0
169
Member Avatar for xavier666

Okay, this time, i have to say it's a weird error. This code runs fine in Code::Blocks 8.02 but fails to run in my college compiler. I think my college compiler is the GCC Compiler (same as my home compiler) but in LINUX environment. Something like [CODE]vi sort.c cc sort.c …

Software Development c
Member Avatar for Banfa
0
653
Member Avatar for restrictment

Hey guys, sorry I am asking so many questions lately, but I am learning this stuff by myself, and find it easier to ask questions here than look online. Plus when I try using the search engine on this site, it takes me to some quite random threads. Anyhow, onto …

Software Development c++
Member Avatar for trcartmill
0
233
Member Avatar for nwalser

I am trying to create a program the checks the frequency of letters in a string but when i run the program it doesn't work right? Any suggestions for how i can fix this? import java.util.*; public class LetterFreq{ public static void main(String[] args){ String[] lines = new String[50]; Scanner …

Software Development java
Member Avatar for cale.macdonald
0
190
Member Avatar for Sorb3t3ro

I just want to share and ask about what I experienced, Im just a starter in C++ and I noticed everytime I make a program which has a [B]looping statement[/B], after compiling the program and try to run or execute the program([B]it happens only after compiling[/B]) it takes 13 to …

Software Development c++
Member Avatar for Sorb3t3ro
0
2K
Member Avatar for *Moonlight*

Hi, I have a quick question...so I have this program that asks user to enter an integer and then it analyzes that integer..it outputs factors of that number, and tells whether its composite or prime, abundant or deficient, and so on...and then after telling few things about that number..it asks …

Software Development c++
Member Avatar for jephthah
0
663
Member Avatar for charpays

How can I do this? FILEOUTPUTSTREAM and FILEINPUTSTREAM provide code that will write bytes to file and read them back

Software Development java
Member Avatar for Ezzaral
0
50
Member Avatar for dragonlvr4evr

[QUOTE=hay_man;246195]I am using c++ and need to devise a method to determine the check digit of a credit card. The user enters the card no. as a string. The card no is then divided into blocks of length, x. these blocks are then added. I have the code to convert …

Software Development c++
Member Avatar for WaltP
0
114
Member Avatar for skorm909

ok so basically what im wanting to do is setup functions and call on them later... this is kind of what i want [CODE] void mainmenu(){ //what i want in there... //if statements etc } void etc() { //whatever goes here} int main() // and then have them get called …

Software Development c++
Member Avatar for Luckychap
0
78
Member Avatar for ice616

how would i write nested for loops for this program? there are 3 products. product 1 is $12.50, product 2 is $8.90 and product 3 is $20.10. write a C++ program that reads the product number and the quantity sold per day, and then calculates and display the total retail …

Software Development c++
Member Avatar for Stefano Mtangoo
0
137
Member Avatar for drhelp

this is the code i have entered and keep getting the error: error pointer to a function used in arithmetic and error cannot convert 'const int' to 'double' for argument '1' to 'double f09kkk_lat {cout<<places[i]<<""<<fixed<<setprecision[2] <<fo09kkk_lat_long_dist(brunel_lat,brunel_lon,lat[i],lon[i]<<endl; } cout<<endl;

Software Development c++
Member Avatar for WaltP
0
251
Member Avatar for Stefano Mtangoo

Hi, I know this is compiler thing but I just wanted to know if anyone here have ever been succesful in compiling libvorbis/libogg with MINGW. It's weeks now I cant do it! I have tried with MSYS but nope i cant get far. I wonder why these developer consider only …

Software Development c++
Member Avatar for Stefano Mtangoo
0
469
Member Avatar for theonlywalks

Hi everyone, I have searched high and low across google, even throughout my textbook... I have this project where you have to design the different types of CPU schedulers. If there are three processes (arriving in this order), P1, P2, P3, and each process has a CPU Burst, then an …

Software Development algorithm c++ queue
Member Avatar for Salem
0
134
Member Avatar for Chris_Giarla

Hello Everyone! This is my first post as a Daniweb member and I am hoping that the people here are as great as they seem. I am a junior in a CS department and I am learning IA32 Assembly as an elective. I am trying to write some basic C …

Software Development assembly
Member Avatar for Salem
0
199
Member Avatar for Ahsan Baig

Hello everyone I have made a windows form application using Visual C# 2008. The form conntains a panel where im drawing different graphics objects like arcs, lines etc. But the problem is that when the window is restored after being minimized, the panel is refreshed i.e. every figure is erased. …

Software Development
Member Avatar for Geekitygeek
0
122
Member Avatar for mikabark

Hello guys. Can I write structure data to child pipe? Usual examples are about writing char* or int type. I tried to write structure. But it does not look work. Will you check my code? ----------------------------------------------------------------------- [CODE]struct work_list { int heavy_rate; //0 - 5 level int work_owner; //thread id } …

Software Development c++ data-structure
Member Avatar for nezachem
0
143
Member Avatar for churni

hi, i have some code which is taking a value of how many moves a function is making to an array of numbers, and displaying it but basically, when i call the function initially, it will give the correct number of moves, when i call it again its adding the …

Software Development c
Member Avatar for churni
0
101
Member Avatar for riotburn

Hi I have written a program for bootstrapping bond interest rates. The bond price I am getting is 101.99825... when it should be more like 101.999999..... The inputs to test are Bond Price = 102, ttm = 36, f = 2, face = 100, n = 5. Heres the program, …

Software Development c++
Member Avatar for riotburn
0
119
Member Avatar for suncica2222

Simple: I have buffer LPBYTE lpBuf And I need size of it.I tried sizeof(lpBuf); but doesnt work properly. How to do it,which function to use?

Software Development c++
Member Avatar for suncica2222
0
2K
Member Avatar for Jongor

Hello fellow seniors, i can display all the data from array after i input all the data, but do not know how to display it on displayDonor() Any help is highly appreciate. [CODE]import javax.swing.JOptionPane; public class DonorMenu{ public static void main(String args[]) { int choice = -1; do{ choice = …

Software Development java java-swing
Member Avatar for Jongor
0
112
Member Avatar for charpays

How can I Define a JFrame subclass that has four vertically positioned buttons. The labels for the four buttons are Senior, Junior, Sophomore, and Freshman. When a button is clicked, display a message that identifies which button is clicked, using JOptionPane.

Software Development java
Member Avatar for BestJewSinceJC
0
213
Member Avatar for soUPERMan

I want to create an array of the object student, and be able to add a student, delete a student and change the student attributes. Please help. I need to add and do all these things using an interactive user input (Scanner). here's the student class i created. [CODE=java] public …

Software Development java
Member Avatar for BestJewSinceJC
0
1K
Member Avatar for i_luv_c++

hey guys im working on a homework problem which requires two things -count the total number of clumps -determine the longest clump i finally made my code to recognize the number of total clumps however i still cnt figure out how to determine the longest clump any help be great!thanks:) …

Software Development c++
Member Avatar for JasonHippy
0
254
Member Avatar for Freespider

heyy... i need to analyse diffrent text(strings) inputs... and there is no pattern between the inputs... i have a question in my school...i need to do like a little storage with char**...and each time i get a string i need to input it into the char**, if the char** gets …

Software Development c storage
Member Avatar for abhimanipal
0
97
Member Avatar for Oron123

hi, i have a big exe program that i wrote in c# (big means that i have a lot of class in it), i want to write a script in python that will check the program. what is the right way to check the program, convert the c# program to …

Software Development python
Member Avatar for jcao219
0
140
Member Avatar for riahc3

Hey I currently have [CODE]Private Sub LabelClick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label14.Click, Label15.Click, Label16.Click, Label17.Click If sender.backcolor = Color.LightGray Then sender.backcolor = Color.Green ElseIf sender.backcolor = Color.Green Then sender.backcolor = Color.LightGray End If End Sub [/CODE] But there are ALOT of labels (about more than 300) …

Software Development vb.net
Member Avatar for Oxiegen
0
1K
Member Avatar for houlahan

everytime i try to append a new object to file it just over rights the whole file this is the code im using to add a new object to the file: [CODE] public void add1() { FileOutputStream fos = null; { ObjectOutputStream out = null; try { fos = new …

Software Development java
Member Avatar for houlahan
0
3K
Member Avatar for ogimy

i have make this program to update database.but it have something error. pop up show this message "An unhandled exception of type 'System.InvalidOperationException' occurred in system.data.dll Additional information: ExecuteNonQuery requires an open and available Connection. The connection's current state is Closed. " [code] Private Sub cmdUpdate_Click(ByVal sender As System.Object, ByVal …

Software Development vb.net
Member Avatar for Oxiegen
0
232
Member Avatar for ogimy

[CODE]My situation is to update the balance in database.In database i have 3 column which is user name, pin code, and the balance.i have three customer, each customer have user name, pin code, and balance.The question is how to update balance of customer first, how to update customer second, and …

Software Development vb.net
Member Avatar for Oxiegen
0
104
Member Avatar for chonyt

was using c# to develop some application and wanted to connect my application(windows) with SQL database. using sql 2005 express and visual c# express; but it kept on throughing the following exception while i try to run my app. so help me out "An attempt to attach an auto-named database …

Software Development mssql
Member Avatar for edgias
0
118
Member Avatar for Mz3g

Hi guys, I am doing a TCP/IP time server/client. I already wrote the two programs but when I run them I don't get any output. Simply, the idea is the client asks the server for Time or Date and the server has to respond and terminate after the second request. …

Software Development c client-server
Member Avatar for abhimanipal
0
216
Member Avatar for adil30000mir
Member Avatar for edgias
0
75
Member Avatar for tetarpy

I have a program entitled "Club Administration Software". When I try to call up the database, it replies with runtime error 91. Any suggestions? I am using win7 and have it in compatibility mode. It worked great in XP. Thank you for your help.

Software Development visual-basic
Member Avatar for vb5prgrmr
0
101
Member Avatar for realone

Hello All, Can anybody help me, i am having challenges getting collections value into the database Here is my sample code. but is not working at all rather is crashing the applications Dim collections As New System.Enrolment.CustomerBiometricsCollection() collections = Me.PrintCaptureWizard1.ShowDialog() Dim dbs As New DBClass Dim mee As String mee …

Software Development vb.net
0
137
Member Avatar for SimarRajput

Guyz I have a table named fec in which i hv column named EndDt having Date/Time Data type.Now i want to display those records in my report which have EndDt less than Date i pick from DateTimePicker and month is current month. [code] Private Sub DtpDefault_ValueChanged(ByVal sender As System.Object, ByVal …

Software Development dataset vb.net
Member Avatar for Oxiegen
0
139
Member Avatar for duomaximus

Good day, Hi, I'm trying to develop mapping feature for a tool. It has a wx.ScrolledWindow that contains wx.lib.buttons.GenBitmapTextButton as map nodes. When the number of map nodes reached around 50+ the scrolling becomes too slow. Any ideas on how to improve the performance of the scrolling when there are …

Software Development python
Member Avatar for duomaximus
0
427
Member Avatar for eXsolved

Hey Guys/Gal's I'm trying to figure out how to make an array of function pointers, but let me explain what i mean: The array will need a 'key' value (string | char*) and a 'value' (function pointer). So basically the array holds a list of short names of functions. I …

Software Development c++
Member Avatar for eXsolved
0
223
Member Avatar for lukermsdn111

Hi, im a total Java beginner and was just hoping someone could help me work out why i'm getting an 'illegal start of expression' error on the first line: (public boolean isFull()) of this code: [code] public boolean isFull() { for (int a = 0; a < 10; a++) { …

Software Development java
Member Avatar for masijade
0
190
Member Avatar for london-G

hello I have strings here, ecah stored individually a = hello b = bye c= hi Label1.text = a label1.text = b label1.text = c it is in the command button sub and i want them to show respectively when the button is clicked like this: a first, then b, …

Software Development vb.net
Member Avatar for Oxiegen
0
103
Member Avatar for ernst1234

hello, i'm new to c# and as school assignment, I need to make a marque where when a button is clicked a text from a text box would be sent to a label and the label will move left to right as a marquee. and delegate must be command to …

Software Development
Member Avatar for Geekitygeek
0
158
Member Avatar for nats01282

I have been told that C++ and C# are very simular, as i am learning C++ and ust downloading XNA which use's C# I just wanted to know if C++ and C# are similar (exept the fact they both begin with the letter C )

Software Development c c# c++
Member Avatar for venkat arun
0
160
Member Avatar for gnarlyskim

I'm looking for a few suggestions on different ways to input a polynomial into an array (coef[]) using a degree (double degree). I have one way that works, but my most recent project needs a new way to do the same thing (not sure why but it can't hurt to …

Software Development c++
Member Avatar for venkat arun
0
103
Member Avatar for student21

i have sucessfully coded my form so that when a user enters data into the texxt box and searches any matching data is displayed on another form my problem is when no data matches the search criteria the form that would display the result still opens but is blank how …

Software Development vb.net
Member Avatar for student21
0
100
Member Avatar for joydsouza90

:?: How do you make an object, say a rectangle, move in turbo c++, using right and left arrow keys? I want the object to move when a user presses right or left arrow keys. Please reply ASAP either here or at my email [I]<<email address snipped>>[/I]

Software Development c++ email
Member Avatar for kirit275
0
1K
Member Avatar for The 1

Help people hows it going? I need some help with a bubble sort algorithm, i basically have to use a bubble sort to look through a number of car registration numbers and put them into ascending order... Im just not quite sure how to get it done... I asked a …

Software Development algorithm java
Member Avatar for maye13
0
117
Member Avatar for balthy

Hey guys, I'm new to programming and C, and I'm trying to write a program for a weighted dice, but I'm awful at math, and I can't figure out how to get it; it took my stupid self long enough to turn rand() into a number between 1 and 6. …

Software Development c
Member Avatar for jephthah
0
2K
Member Avatar for iamai

Hello once again, i convert this class [CODE] public class Position { #region initialization // position stuff decimal latitude_fractional=0; string latitude_sexagesimal=""; decimal latitude_decimal=0; decimal latitude_decimal_mem=0; CardinalDirection latitude_direction=CardinalDirection.North; decimal longitude_fractional=0; string longitude_sexagesimal=""; decimal longitude_decimal=0; decimal longitude_decimal_mem=0; CardinalDirection longitude_direction=CardinalDirection.West; decimal altitudemax=0; decimal altitude=0; decimal geoidseparation=0; DateTime sattime=DateTime.MinValue; DateTime satdate=DateTime.MinValue; #endregion #region properties …

Software Development c# vb.net
Member Avatar for Oxiegen
0
115
Member Avatar for DaveTran

I'm now trying out for loops with different sized iterations (is that the right word?) This loop [code] for (int i = 0; i < 5; ++i) { for (int j = 0; j < 3; ++j) { Console.WriteLine("i = {0} j = {1}", i, j); } } [/code] outputs …

Software Development
Member Avatar for Geekitygeek
0
156
Member Avatar for kux

if u pass a std::vector by value to a function, does all of it's content get copyed? thx

Software Development c++
Member Avatar for kunal kislay
0
2K
Member Avatar for xairzx

hi all im creating a simple timer.it have NumericUpDown and Progress Bar. i use NumericUpDown to set the timer in minutes.I also put Progress Bar to indicates the percentage of times completed.For example if i set the timer to 1 minutes so if it at 0.5 minutes the Progress Bar …

Software Development vb.net
Member Avatar for Oxiegen
0
1K

The End.