132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shit3432

*Doing the PSEUDOCODE but stuck in the middle. Please help me out.* Scenario: After practicing and learning problem solving skills for an extended period of time, you have decided that life would be easier if you did not need to continue with school. Rather, you decide that winning a large …

Software Development algorithm java
Member Avatar for stultuske
0
212
Member Avatar for Reapt

Creating a text based game. I have a method for each of the following: Race, profession, name. So for instance: public static void main(String[] args) { // TODO code application logic here intro(); name(); System.out.println("Welcome " + name); } public static void String name(){ System.out.println("Enter Name:"); String name = sc.next(); …

Software Development java
Member Avatar for Reapt
0
156
Member Avatar for Nandomo

I have a webservice that draws a line chart, first line: an range of dates and their stock values. Second line: a moving average of the dates, so if I input a value of 5 it will give me the same data as line 1 but with 5 day intervals. …

Software Development
0
125
Member Avatar for Nandomo

I am working on a web service. I have a form with a button. When I click the button it calls my service class and I populate a list from an xml document with stock information. Then from the form class it calls another method inside the service class to …

Software Development
Member Avatar for Nandomo
0
194
Member Avatar for Garidius

Hello to all, Please some help with this. I'm newbie to XML, XLS, Xpath, etc. How can I set correctly the reference in the command "for-each select" to avoid issues with this Top node that has namespace? I'm trying to get a XLS stylesheet to get some values. The issue …

Software Development xml
Member Avatar for Garidius
0
378
Member Avatar for smitsky

I'm having a problem accessing information between classes. The following simple program illustrates the problem. I have two classes. Int Cell and second. IntCell has a single data member: storedValue. I initialize the value of storedValue to 0, and then assign a value of 16 to it in main() on …

Software Development c++
Member Avatar for Ancient Dragon
0
203
Member Avatar for jigs baldaniya

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Ascending_and_Descending_ex_2 { class employee { public float exp; public string ename; public string designation; public float sal; public employee(float e,string n,string d,float s) { exp = e; ename = n; designation = d; sal = s; Console.Write("{0} {1} {2} {3} ", …

Software Development display oracle
Member Avatar for Momerath
0
224
Member Avatar for GeneM1000

I have a form with a lot of checkboxes on it. I want to be able to set all the checkbox properties to "checked" in my code. Here is what I would like to do: For Each ctl As Control In Me.Controls If TypeOf ctl Is CheckBox Then ctl.checked = …

Software Development vb.net
Member Avatar for GeneM1000
0
320
Member Avatar for cvandal

Hello, I'm trying to calculate the maximum and minimum distance between 10 points. My method to calculate the maximum distance is working fine however my method to calculate the minimum is returning 0.0 and I'm not sure why. Could someone please take a look at my code and tell me …

Software Development java programming-construct
Member Avatar for cvandal
0
213
Member Avatar for TheFearful

This is the code that I have for inserting a node, but I don't know how to do the delete function. Any tips would be helpful // Constructor Tree::Tree() { root = NULL; } // Destructor Tree::~Tree() { freeNode(root); } // Free the node void Tree::freeNode(Node* leaf) { if ( …

Software Development c++
Member Avatar for TheFearful
0
165
Member Avatar for Dane2259

I'm trying to setup the programming environment for Princeton's online course at this website: http://algs4.cs.princeton.edu/code/ However, when I try and run one of the programs I get the following error: /Users/dane/algs4/algs4-2/RandomSeq.java:45: cannot find symbol symbol : variable StdRandom location: class RandomSeq double x = StdRandom.uniform(); ^ /Users/dane/algs4/algs4-2/RandomSeq.java:46: cannot find symbol …

Software Development ide java web-design
Member Avatar for stultuske
0
288
Member Avatar for Pilot122x

private void Cottage_Click(object sender, EventArgs e) { richTextBox1.Text = "create cottage"; richTextBox1.Text = "create Bob"; } So when I run the code what gets printed is Bob of course I knew this would happen from the moment I wrote the code but I do not know what to put instead, …

Software Development
Member Avatar for Pilot122x
0
154
Member Avatar for j.heller

hello daniweb community; After a click on a button I need to "direct" the user from the current window to another, like you may know it from installations ("Yes I accept TOS"->click->new window please select installation path). Kind regards;

Software Development python tkinter
Member Avatar for j.heller
0
403
Member Avatar for m.a.u.

Greetings everybody, I would like to ask you which C++ libraries you use for ethernet communication? In web I found several; [boost.asio](http://www.boost.org/doc/libs/1_55_0/doc/html/boost_asio.html) [Nut/OS](http://www.ethernut.de/api/index.html) [Sockets](http://www.alhem.net/Sockets/index.html) Is there another and easy? By the way, which one of these three libraries are easier to use :) . Thanks in advance

Software Development api c++
Member Avatar for m.a.u.
0
170
Member Avatar for teitsu

package userinput; /** * * @author CHIEF_OGUNDE */ import javax.swing.JOptionPane; public class Main { /** * @param args the command line arguments */ private static void show(string, "Not Yet Implemented"); public static void main(String[] args) { // TODO code application logic here int ERROR_MESSAGE; String first_name; first_name = JOptionPane.showInputDialog("First Name","Enter …

Software Development java java-swing
Member Avatar for stultuske
0
203
Member Avatar for beastie805

I got a small program here, I am just trying to return a string value from a function through a reference parameter but I keep getting an error. Any help or tips will be appreciated #include<iostream> using namespace std; int timesTen(int, string&); int main() { int number = 6, product; …

Software Development c c# c++
Member Avatar for beastie805
0
451
Member Avatar for inspire_all

#include<stdio.h> #include<conio.h> int main() { char cyp[150],eng[26]; scanf("%s",eng); gets(cyp); getch(); return 0; } eng is accepted but only one letter is accepted for cyp.

Software Development c
Member Avatar for rory.starkweather.7
0
387
Member Avatar for m.a.u.

Greetings everybody, I have been develolping a program for isochronous USB communication. In run time, when allocating memory for transfer, libusb_transfer, ENOMEM error arises. I have been looking for a solution for this problem, but I have not come to a conclusion, yet. What might be the reason of this …

Software Development c++
Member Avatar for m.a.u.
0
486
Member Avatar for smitsky

Hi. Why am I getting different output when I call the calculate() function? The output on line 184 gives 1.0001, while the output from line 433 gives 1. Thanks. #include <iostream> #include <string> #include <limits> #include <vector> #include <iomanip> using namespace std; /** * Global Variables */ string k; int …

Software Development c++ printer queue
Member Avatar for smitsky
0
201
Member Avatar for admiri92

i'm not sure if a pointer can do the job of an iterator, or otherwise, or they are different things?

Software Development c++ programming-construct
Member Avatar for Moschops
0
253
Member Avatar for Reapt

Using netbeans IDE 8.0, and have JDK 1.8. Created a project and file that does this. public class Tutorial { public static void main(String[] args) { // TODO code application logic here system.out.println("Hello World!"); } } and when running i get this error... Exception in thread "main" java.lang.RuntimeException: Uncompilable source …

Software Development ide java java-netbeans
Member Avatar for JamesCherrill
0
365
Member Avatar for Aditya_8

gimme the error plz it says undefined symbol _main in module c0.asm #include<iostream.h> class largest { private : int num1,num2,num3,big; public : void enter(int a,int b,int c); void max(void); void display(void); }; void largest::enter(int a,int b,int c) { cout<<"Enter numbers n"; a=num1; b=num2; c=num3; cin>>a>>b>>c; } void largest::max(void) { big=num1; …

Software Development c c# c++
Member Avatar for Ancient Dragon
0
167
Member Avatar for mR-_-EBoOo

how I can introduce printf and scanf in microsoft visual c++ 2010 express i used #include<stdio.h> , #include<isotream> and using namespace std; put it still doesnt work ???

Software Development c++
Member Avatar for rubberman
0
128
Member Avatar for Jaks_maths

This Program prints the numbers in given array(Row-Major Order) in Spiral order. Ex: Order Is 3*4 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Spiral Order Of Matrix is 11 12 13 14 18 22 26 25 24 23 19 15 16 …

Software Development c matrix-multiplication
Member Avatar for rubberman
0
296
Member Avatar for glao

Hello , I have the following code : int a = 2; int *ptr = &a; int *second = &a + 1; printf("\n ptr = %p\n", ptr); printf("\n second = %p\n", second); which just prints the address of pointers and the address of second is 4bytes next the ptr. Output: …

Software Development c
Member Avatar for glao
0
187
Member Avatar for catastrophe2

hi so this project requires an input of U, M, or D and as many as you like of them (i think, might be only up to 100 based on charUMD[100] array in code) also, you have to end it with # in order to indicate the end. i am …

Software Development c++
Member Avatar for catastrophe2
0
335
Member Avatar for Satyam_1

i am using vb.net application with OleDb database. In a form i have Search,Add,Edit,Delete buttons for the data. Although search data is working but Add,Edit,Delete are not working. Here is my code. Imports System.Data.OleDb Public Class Form1 Dim CN As New OleDb.OleDbConnection Private Sub Form1_Load(ByVal sender As System.Object, ByVal e …

Software Development open-source seo vb.net
Member Avatar for Sulaiman_1
0
286
Member Avatar for omojolinho

Good day whiz coders. Please, i need help on swapping the first two elements in an array. For instance {"I", "am", "too", "handsome"} should turn to {"am", "I", "too", "handsome"}?

Software Development
Member Avatar for Sulaiman_1
0
126
Member Avatar for mR-_-EBoOo

You are required to write a C++ program to covert a positive inter code into English name equivalent for the digit. A valid code is of size between four (4) to six (6) digits inclusive. A zero is not allowed in a code. Example: If input is 234056 the output …

Software Development c++
Member Avatar for deceptikon
0
270
Member Avatar for samkri

I m using VS2010 with SQL server 2008 at the backend. I m creating a windows application in which I have 2 listboxes.the data is being retrieved from SQL server database in listbox1.i want to select all itms from this listbox1 and add them to listbox2. And remove itms from …

Software Development
Member Avatar for Sulaiman_1
0
189
Member Avatar for vampshay

Please help. How to connect vb6 to mysql. What are the codes? Thanks.!

Software Development mysql visual-basic
Member Avatar for Alireza_5
0
5K
Member Avatar for Nandomo

So I am making an application on visual studios and I wrote a method to return a double after going through a list of data. I printed the list and know its there but the method pretends its not there and returns the code i initialize the variable with. Help? …

Software Development
Member Avatar for Nandomo
0
148
Member Avatar for Raymond_3

10) A statement that creates invokes findAll() based on the argument 8 and assigns this to a new array 11) A print statement that prints out the array created in the above step. Which i did with the following bit of code in my driver ArrayMethods arrayTwo = new ArrayMethods(); …

Software Development java
Member Avatar for John Code
0
173
Member Avatar for Brittany_1

I really love working with structs, and I get how they work and everything. And I know my issue right now is the math (I'm horrible at math!) But my problem: I need to create a program that reads from a .txt file of employees (let's say 5) an they're …

Software Development c++
Member Avatar for David W
0
148
Member Avatar for michelemalta

Hey all, I've been making a caesar cipher but seem to have encountered a problem. My program reads an integer from a text file and stores it as the shift value. Then my goal was to add that shift value to the alphabet array. Here is a part of my …

Software Development c++
Member Avatar for vmanes
0
212
Member Avatar for SerenityG

Hello, I have this program that runs in C++ that I need to run in C. This is my program in C++: #include <iostream> #include <string> #include <cctype> using namespace std; char encode (char plaintext) { if (isupper(plaintext)) { if (plaintext > 'M') { plaintext += 13; } else { …

Software Development c c++
Member Avatar for David W
0
236
Member Avatar for Jake_4

Could anyone explain the problem im having on line 28, (value = amp*sin(2*pi*freq*t);) i keep getting this error message 28 11 [Error] cannot convert 'double' to 'float*' in assignment #include <cstdlib> #include <iostream> #include <math.h> #include "dp_lib.h" using namespace std; int main() { double pi=3.141592653589793238462643383279502884197169399375; float* value; unsigned long length …

Software Development audio c++
Member Avatar for StuXYZ
0
4K
Member Avatar for CreatorZeus

So decided I should switch to VS13 for the added benefits. Copied the cold, transfered the files, alls good right? Wrong. Actually its not that bad. Just one main problem. `ltm` See this fella? This is the one guy that is standing in the way of me and the debachury …

Software Development c++ visual-studio
Member Avatar for JasonHippy
0
246
Member Avatar for CreatorZeus

so im trying to convert my code from localtime to localtime_s. it was this: time_t now = time(0); tm *ltm = localtime_s(&now); i seem to be having some strctual errors. Can i have some help?

Software Development c++
Member Avatar for CreatorZeus
0
5K
Member Avatar for suburbios0

Hello, I have the following code in XML: <?xml version="1.0" encoding="UTF-8"?> <agency> <destinations> <destination id="bel">Belize</destination> <destination id="mad">Madeira</destination> <destination id="per">Peru</destination> </destinations> <traveler id="coelho"> <passport>P-123456-08</passport> <name>Pedro Coelho</name> <born>1964-10-05</born> <trip> <start>2013-07-01</start> <end>2013-07-15</end> <itinerary destination="bel"> Viagem em classe executiva para Belize via Frankfurt. </itinerary> <plane date="2013-07-01"> Pedir refeição vegan. <airport>Barajas</airport> Alertar assistente antes da …

Software Development xml
Member Avatar for xml_looser
0
341
Member Avatar for ferizhandi

hi all i want to open a file but this file in other directory.and i want to use this function: int open( char *filename, int access, int permission ); i can not use other function, because i have use only system call function. when file exists beside of my code, …

Software Development c file-system
Member Avatar for naveen1993
0
249
Member Avatar for akkbkht

Hi Everyone, I am here to start a defferent project, intresting for me of video clips comparison in C#. I would like to develop a destop application which can compare a video sample clip A with a destination video clip B. All I want to do is E.g if I …

Software Development file-system video
Member Avatar for akkbkht
0
326
Member Avatar for GregDen

I am writing an application in Visual Basic 5.0 that calls Crystal Reports 4.6. I used to be able to do this on my old PC which ran Windows XP, but now when I try to do it on my new PC which is running Windows 7 (64-bit), I can't …

Software Development microsoft visual-basic
Member Avatar for miquel.matas
0
550
Member Avatar for j.heller

hello friends; I'v used the tutorial (http://www.daniweb.com/software-development/python/code/216550/tkinter-to-put-a-gif-image-on-a-canvas-python) but now the animation of my .gif doesn't work. I have used much more .gifs (animated) to check if the one was broken but no animated .gif is working in my GUI. Any idea how to fix this problem? Kind regards;

Software Development gui python tkinter
Member Avatar for vegaseat
0
501
Member Avatar for ariez88

Hi , I m using VS2008 with SQL server 2008 at the backend. I m creating a windows application in which I have 2 listboxes.the data is being retrieved from SQL server database in listbox1.i want to select few itms from this listbox and add them to second one through …

Software Development
Member Avatar for samkri
0
802
Member Avatar for parsa123

i write code with class f that have constructor : public f(int number){ this.number=number; } i want to write method that get one f then add it with f which the method was called on it public void add(f number) { //the code } what is the code????

Software Development java
Member Avatar for Doogledude123
0
162
Member Avatar for satish_dukkipat

int i,j=4; i=j++*++j*j--; what is the result of i and how it is evaluated please help me. the result is 125 and i don't understand the evaluation part

Software Development c first-post
Member Avatar for deceptikon
0
224
Member Avatar for jalpesh_007

Dear all, I am developing SOAP web service using netbeans. As i have got preferred SOAP request and SOAP response,now i want to add security information like username and/or password in my SOAP header Request. Please tell me how can i modify or add username in my SOAP header Request …

Software Development java
Member Avatar for Ewald Horn
0
3K
Member Avatar for mrabrar09

here where am doing mistake and program is showing error non static method cannot be refferenced to static context

Software Development java
Member Avatar for mrabrar09
0
219
Member Avatar for rainbow365

Hi, Does anybody have the idea on Data collector sets in Reliability and performance monitor.. I want to programmatically delete all the existing data collector sets.. any pointers plzz.. I have found the following code, to do in Windows. [url]http://msdn.microsoft.com/en-us/library/bb509350(VS.85).aspx[/url] But I need to do it in C#. can anyone …

Software Development
Member Avatar for markuspoeh
0
245

The End.