132,726 Archived Topics
Remove Filter ![]() | |
So I need to write a program that will approximate PHI (the golden ratio) using Fibonacci Numbers. It has to be within a negative power of 10 (between -1 and -16) oh PHI. So for example, if I put -2 into the input, the approximation of PHI would have to … Software Development vb.net | |
i have code using method yet i could not make it work.. Can someone help me.. Thank you. package scsiaug10; import java.io.*; public class Main { public static void main(String args[])throws IOException{ BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a Word:"); String s = read.readLine(); char c[] = new char[s.length()]; … Software Development java | |
I don't get why ISO don't include VLAs in C++ standard. C++ is supposed to be a C extension, and C99 clearly supports VLAs. It is not hard to implement and does not break any existing C++ code. It is useful for beginners, who do not yet know pointers, and … Software Development c++ | |
I am trying to insert one file at the end of another but the first file's formatting gets messed up. It's lines start bleeding into the later pages. [code]Dim oWord As Word.Application Dim oDoc As Word.Document Dim oDoc2 As Word.Document Dim oDoc3 As Word.Document Dim oSelection As Word.Selection oWord = … Software Development vb.net | |
I have most of my code written but I need some help with a part of it, I need to get in one more variable and not positive how to go about it. I need to enter I as a variable for Industrial use: $1000.00 is usage does not exceed … Software Development c++ | |
I have an app I wrote in Python/wxPython. When I click a button, the action that is taken will depend on whether or not a modifier key (such as CTRL) is currently pressed. I can't toggle a swich based on a keypress event (eg ctrldown = True or False) because … Software Development python | |
Hello daniweb! Yes, I'm another amateur coder who needs a little assistance getting some code to work, I hope it's alright :?: A little background is necessary I suppose, so the deal is I'm a self taught noob who's working on a pet project of crafting a little program that … Software Development android c c# c++ java-swing | |
Here is the code I have so far and when I compile it I get errors import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; public class Bible2a { public static void main ( String [] args )throws FileNotFoundException { Scanner dataFile=new Scanner(new File("test.txt")); /*int colonPosition = verse.indexOf(':');*/ while(dataFile.hasNextLine()) { String verse = … Software Development java | |
Hello I have a problem to convert a String to double. I use the below code but the messageBox show 11,07 with a Comma(",") instead of a dot(".") I beleive this depends on any regional settings on the computer. On my other computer I get the result "11.07" which is … Software Development c++ | |
Hi Everyone, Is there anyone who can help me with Ordered Binary Decision Diagrams in Java. Do you know how to draw a simple Ordered Binary Decision Diagram usinh Java? Any help will be appriciated. Thanks Software Development java | |
I have an xml file document and I am trying to display the xml contents in a datagridview. Can I please get some help with this? what am I doing wrong? I had it working when I pull one column at a time [CODE] Dim gridtable As DataTable = New … ![]() | |
This calculator performs two digit task successfully but what do i need to alter it i want it to evaluate 3 digits [CODE] public class Calculator { private long currentInput; //current input private long previousInput; // previous input private long result; // result of calculation private String lastOperator = ""; … Software Development java | |
I'd like to take values between a date range and enter into a table I have a date range @startdate and @enddate i'd like my user to enter the date range and then for the system to take the date range entered and insert them into a table, however, my … Software Development | |
Hi there. I am trying to make a program that outputs the word "MATRIX" on every line, with the past line being cleared and making some kind of falling word effect. I am beginning learning assembly, and I need some ideas as to how to make this happen. I am … Software Development assembly | |
Hi, New user here. I recently got into developing a simple communications application for client-server model over the internet. I am using winsock in VB6 and trying to send text based messages just to get me going. However, i have been unsuccessful. I am able to connect on same computer, … Software Development client-server visual-basic | |
Hey guys, Im having a little problem with adding textbox.Im generating unique key with OrderNumber+ProductId+Series. OrderNumber:18501 ProductId:2100 SeriesNumber:01 Series starts at "01" and gets added one everytime I hit button1,so next time I press button1,it will be "02".When I add them up this is the result I get: Result:18501-2100-1 But … Software Development vb.net ![]() | |
hey, I have a text box that is written in it a sentence like that for example ( vsdgv hsch hjscbfhs bsh hgfg shjgfug hfudgf ) & I have a list box what i want is that once I press the command button, the sentence get splited into its words … Software Development visual-basic | |
Here unsystematic play with linked list structure Object Oriented style. If you have performance critical code, please do not use this but use the superb faster than list [URL="http://pypi.python.org/pypi/blist/"]blist module[/URL] (including sorted versions of main data structures). As OO newbie (though with some 30 years of other programming), I wanted … Software Development data-structure linked-list python | |
i do an exercise and i have 2 questions. the exercise is to take an array example from my c++ book and make it template. for start my code is this: [CODE]#include <iostream> #include <iomanip> #include <cstdlib> #ifndef ARRAY_H #define ARRAY_H using namespace std; template<typename T,int elements> class Array { … Software Development c++ | |
This is what I have so far. I have to create array of 10 int values as local variable then iterate through the array elements using pointer, print address, and value of the each item. But this is my output. It should print values from 0 to 10, but mine … Software Development c | |
um, I'm using Turbo C++ IDE with the blue screen thingy. but it won't run. i mean, whenever i try to run it to show output, it says "Error not an exe FILENAME.LIB" um, im kinda new at this, i just need it for school. how do i fix it?...:'( … | |
It pretty much works fine...except for the fact that it wont output the total amount of withdrawals and deposits. I have no idea how to make it do that. Can anyone help? [CODE]#include <iostream> using namespace std; float userInput() { float balance; cout << "Please enter your current checkbook balance..." … Software Development c++ | |
Having trouble trying to read characters from a file into a 2D array. I know this topic has been discussed before but your help will be greatly appreciated. I know there is more efficient ways of writing the entire code but im not that familiar with programing. Any suggestions are … Software Development c c# c++ file-system | |
I am exporting data to excel but inserting rows is very slow about 2 seconds per row pls help using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.OleDb; using System.Data.SqlClient; using System.IO; using Microsoft.Office.Interop.Excel; namespace Dashboard { public partial class Form1 … Software Development c# dataset microsoft-office open-source vb.net | |
i want to do a project in c programming.. what topic should i choose and what all should i include to make it look decent? | |
Hello, I want to implement a 3d environment, at first will start with a cube. And i want to implement a click event for this object, like Click event for a button. The problem is i don't know how to implement this, or where to start. Can someone give me … Software Development | |
![]() | In the code below, when I try to output out_phrase_char, I get a message that says "The Debugger has exited due to signal 10 (SIGBUS).The Debugger has exited due to signal 10 (SIGBUS)." Please help me as soon as possible. This is due at 11:59pm. [CODE]// classes example #include <iostream> … Software Development c++ |
Hey, everyone. My goal here is to be able to load a 3x4000*4000 multidimensional array, modify it, save it, and QUICKLY access it (as if accessing a 100x100 array). I'm not really sure how this works in the JVM but...I mean I'm at a loss. Would making a single int[] … Software Development java | |
Dear all, I have problem i have table name "WO" in oracle db i want "Whenever I start my program, I want it it look at all the works orders, and if any works order has a date that is exactly one month before today's date, then I want the … | |
Hello , i have read the manual page of alloca , it is documented there that "alloca works similar to the malloc but it allocates memory from stack and frees automatically. i can't get how can i use that in a program . if i'm not wrong can i use … Software Development c | |
when i am trying to use delete button on my frame it is showing such exception and stack trace is here java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer at MyFrame.actionPerformed(AcctHld.java:225) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253) at java.awt.Component.processMouseEvent(Component.java:6099) at javax.swing.JComponent.processMouseEvent(JComponent.java:3287) at java.awt.Component.processEvent(Component.java:5864) at java.awt.Container.processEvent(Container.java:2109) at java.awt.Component.dispatchEventImpl(Component.java:4460) … Software Development java java-swing microsoft-access | |
I want the to calculate the value of user input by multiplying the number by it the increment i.e. if input is 5 then calculation should be 5*1*2*3*4=120, I have tried but so far not successful any help will be appreciated. The code is below: [CODE] import java.util.Scanner; public class … Software Development java | |
Below I have attached my code. The problem I am having is that I do not think it is properly computing the sum. It seems as if its missing a number or something along those lines. The program is supposed to read an input number, n, which must be a … Software Development c | |
Hi, Is there a way I can access the Exchange Mails/Calendars/Addressbook without .NET or non cross platform thing? I want to access them with C++ but on both MS and Linux I was looking at EWS but it seems it is tied to MS and .NET Please share with me … | |
Hi all, In c,i want to split string into array. Example: char *string="abcdefgh"; into char arrays like 'ab','cd','ef','gh'. Any suggestions or ideas are welcome... Software Development c | |
HI how can store multiple array into one array [CODE] int id[5] = { 1,2,3,4,5,6}; int size[5] = {35,76,85,78}; int PerBox[5] = {12,24,44,54}; double Price[5] = {3.32,6.76, 13.45,6.08,7.8}; int item[200],i; for(i=0;i<4;i++) { item[i] = {id, size, PerBox, Price}; } [/CODE] each element should store id, size, perbox, price and output: … Software Development c | |
From a text file, i should get the necessary information in order to create a beat map, a representation of what we see in music sheets, from this text file: [CODE]3 measures 3 4 time signature 4 beats 4 note, measure 1 3 note, measure 1 1R rest, measure 1 … Software Development c file-system | |
Hi everybody, I have been having trouble with the output of a set of points for my triangle program. When I run my program, it outputs in the end "triangle1 coordinates: Vertex A is java.awt.Point[x=12,y=13]" and I have no idea how to format it to hide the "[B]java.awt.Point[/B]" part. Any … Software Development java | |
What is Socket Programming in Java? Please give me some idea about it. Software Development java socket-programming | |
I am supposed to read a text file containing "lyrics", then format it out based on special symbols like +,-,[] and spaces. Here's the lyrics syntax: [B]Spaces are significant:[/B] A single space between two words makes the two words go in two successive beats. Each additional space causes the lyric … | |
hello friends [U]how can i disable view state[/U] in vb.net,so that i have the properties of labels as i left,when i return to a page. i am developing a windows application. thanks in advance. Software Development vb.net | |
I am trying to write a program where a user of my app can change the link location and label name. Is this feasible? At work we have testing scenarios that change at different locations, and instead of me sending updates every week, allow the user to update the link … Software Development vb.net | |
Any idea why declaring a const int inside a data member of a class would cause error C2582: 'operator =' function is unavailable in 'CMyClass'? There is a lot going on in CMyClass and I don't know where to start looking for the error. I am using the default operator= … Software Development c++ | |
Hey all im a beginner in c++. Ive written this programme and ive tried to make a calculator using switch statement but its not working like it should.I would be very thankful if u point out whats wrong with it. [CODE]#include<iostream.h> #include<conio.h> void main() { clrscr(); float x,y; int choice; … Software Development c++ | |
sorry.. i just wanna ask about the comment for this coding so that I can easily understand how this coding works. can anyone helps me to put the comments on it? [CODE] // array of structures #include <iostream> #include <string> #include <sstream> using namespace std; #define N_MOVIES 3 struct movies_t … Software Development c++ ![]() | |
What happens if you inherit multiple interfaces and they have conflicting method names? [CODE]using System; namespace WindowsApplication1 { public interface a { void b(); } public interface c { void b(); } public class Class1:a,c { public Class1() { // // TODO: Add constructor logic here // } #region a … Software Development | |
Use the Node class. Create a tester module that contains the following function definitions and code for testing them. The function definitions are: 1. A function length (not len) that expects a single linked structure as argument. The function returns the number of items in the structure. 2. Define a … Software Development data-structure python | |
Hi, Am very very struct is there possible way to multiple variable into one element in array c and is there posible to do case statement with array. What I try to if max capacity of ship is less than max capacity of harbour but I need to check every … Software Development c |
The End.