132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Simplicity.

Hi all, I have developed the code below to solve a non-linear scalar hyperbolic conservation law (Burgers' equation). I want to advance to solving a one dimensional system of Euler equations for Gas Dynamics (which is also a hyperbolic partial differential equation) in the similar manner. Can anyone advise on …

Software Development python
Member Avatar for TrustyTony
0
195
Member Avatar for neilio86

I need to figure out how to get the min/max in this array. I heard that it can be done using the algorithm library. we have yet to learn that. any help would be appreciated. [CODE]#ifndef Lab4_h #define Lab4_h void GetTemperatures (int Temperatures[], int NumTemperatures); double ComputeAverageTemp (int Temperatures[], int …

Software Development algorithm c c# c++
Member Avatar for pseudorandom21
0
258
Member Avatar for Labdabeta

Is there any software out there that can help me create 3d models for use with OpenGL drawing of models (i.e: triangles, square and polygons in 3d space). I need to be able to make polygons in 3d and be able to access the values of the vertexes. Does anybody …

Software Development c++ opengl
Member Avatar for mrnutty
0
110
Member Avatar for darkdai

hey everyone, i was wondering if anyone can tell me how to prompt the user the enter the filename to be searched for using FindFirstFile. and if there a way of setting a default path to search in

Software Development c
Member Avatar for Ancient Dragon
0
111
Member Avatar for leo88

Hi, I am still a new in C# and visual Studio. I now wants to create a database in visual studio, after i click file in visual studio, as step below : 1)file>> new >> project 2) Other Project types >> Database Is that my steps correct? Where to find …

Software Development visual-studio
Member Avatar for leo88
0
96
Member Avatar for CrazyProgrammer

My question is a simple one how do I bind a passwordBox defined in code ie: [CODE] public PasswordBox Password { get { return m_pwd; } } [/CODE] to a contentpresenter in wpf considering that the datacontext of the usercontrol is already set to the .cs file that contains the …

Software Development asp.net c#
Member Avatar for CrazyProgrammer
0
220
Member Avatar for breezi3

I need help completing the classes below, I don't think the code I have so far is correct because I keep getting errors. Please help me complete and understand the classes. 1. Create an abstract class named CoffeeOption. This class should have the following components: a. A protected double instance …

Software Development java
Member Avatar for NormR1
0
216
Member Avatar for SMITA6076

[CODE]/*********************************************************************************** * * File: Customer.java * * Author: Austin Smith * * Date: 04/04/2011 * * Description: The Customer class handles all client information * such as name and address. * **********************************************************************************/ public class Customer { /*** Defaults/Constants ***/ public static final String DEFAULT_NAME = "ERROR: Invalid Name"; public static …

Software Development display gui java
Member Avatar for SMITA6076
0
251
Member Avatar for Kprosser1029

Hi I need help creating a word count file, the file should print the name and number of times the words were counted in a file. I need to use the JFileChooser and the results should be printed in the resultArea of the JTextfield. example: and 33 use 24 Here …

Software Development file-system java java-swing
Member Avatar for NormR1
0
292
Member Avatar for ret801

can someone show me the syntax for inserting Number literals and strings into python strings like the print statement for example(i.e print("string %s"),(SumNum)) .. I have forgotten. and could someone explain the difference between syntax and semantics to me , i have forgotten that also XD

Software Development python
Member Avatar for ret801
0
139
Member Avatar for JohnDove

I'm confused about how to link my app to an Access database - there seems to be a number of approaches. I can add in my database via the Data Sources tab. Fine if I want to bind controls and view/edit data. But is this the best approach for queries …

Software Development vb.net
Member Avatar for vagheladev
0
124
Member Avatar for centerline00

Hello all, I am having a mental blank on checking user input (that is string) to check if it contains an integer value. as in: [code]for(i=0;i < nNames; i++){ cout<<"\nEnter a last name: "; getline(cin,name[i]); [/code] I have checked the C++ string class for string.length() and others, I am just …

Software Development c++
Member Avatar for centerline00
0
263
Member Avatar for programing

hi plz i wanna ask how i can print stack from bottom to top ... :( ?

Software Development c++
Member Avatar for Narue
0
155
Member Avatar for Labdabeta

I decided to post this problem in a new thread. I have a simple program in OpenGL and it doesn't work. What happens is that a transparent window forms and when you hit the 'X' it says that the Release of the Device Context and Rendering Context failed. Here is …

Software Development c++ microsoft opengl
Member Avatar for Labdabeta
0
203
Member Avatar for ToucheAmore

so im a noob at coding just started yesterday. I bought a visual basic 2010 guide book and i am working on my first example/practis program. I keep getting this error in my code before i go to try to test it out. 'picShowPicture' is not declared. It may be …

Software Development vb.net visual-basic
Member Avatar for Thijk
0
143
Member Avatar for praveendasika

In the below code , what is the 'e' in 'e.X.ToString()' and how do you know that you have to use the letter 'e', what does it represent , I can get around this bit please help [code] public partial class ImageTest : System.Web.UI.Page { protected void ImgButton_ServerClick(Object sender, ImageClickEventArgs …

Software Development
Member Avatar for zachattack05
0
168
Member Avatar for buster2209

I want to change the text color [I]programmatically.[/I] eg; [CODE]textBox1.Forecolor = Color.Red; textBox1.AppendText("Red Text/n"); textBox1.Forecolor = Color.Green; textBox1.AppendText("Green Text/n");[/CODE] The problem is, this changes the [I]entire[/I] text to green where I want to have the two different lines in two different colors. Can someone help?

Software Development
Member Avatar for gusano79
0
147
Member Avatar for lexusdominus

Hey, ive got two string types [CODE] string string1 = '1'; string string2 = '2'; string string3 = string1 + string2; [/CODE] Ok, ive simplified my code. I would like string3 to equal '3', and not '12'. I dont know anything about casting. Please dont tell me to use an …

Software Development c++
Member Avatar for lexusdominus
0
121
Member Avatar for arunmag

Hi friends, I just wrote a small batch file that open an application. When it opens that it displays a window with four buttons and by default the cursor in on the firs button. Now I want to click on the second button that browses for the files to open. …

Software Development file-system shell-scripting
Member Avatar for Batch Devil
0
246
Member Avatar for n3red

I wanna know how to print only part of a string. For instance: [CODE] public static void main(String[] args){ String a = "daniweb.com"; System.out.println(a); } [/CODE] I wanna say print only characters after the 4th one so the output would be: [CODE]> web.com[/CODE]

Software Development java
Member Avatar for n3red
0
121
Member Avatar for Bitprior

Hello, and greetings to those I may be speaking with in this thread over time. I present to you a problem, rather fringed and minimal and troublesome. First, I'll start by saying that I don't really consider myself a programmer so much as I do an enthusiast who now, suddenly, …

Software Development c++
Member Avatar for rubberman
0
197
Member Avatar for dante5458

How can i count the number of zeros in an integer using assembly ???

Software Development assembly
Member Avatar for gusano79
0
102
Member Avatar for matadori

I'm trying to program the traditional minesweeper game. I have problems with Swing as I'm not sure how to proceed. I tried adding one JPanel to a JFrame and then using JButtons to imitate the tile buttons. Then I encountered a problem when I tried to program the functionality of …

Software Development algorithm gui java java-swing
Member Avatar for JamesCherrill
0
135
Member Avatar for Jsplinter

I'm just starting a search for a library or code sample for grouping numbers together based on their distance from one another. For instance, in the set{1,2,4,25,28,29}, is there an algorithm that would identify two groups of numbers subsetA{1,2,4} and subsetB{25,28,29}? Nothing really came up in my google search, but …

Software Development algorithm c++
Member Avatar for Jsplinter
0
258
Member Avatar for Arunabh Nag

How do i find out the number, names and datatype of fields in an Access table.....using code.....

Software Development vb.net
Member Avatar for SadiSerdari
0
2K
Member Avatar for jacksantho

Hi, I installed Xampp on my server(windows 2003).I am having perl script(i.e cgi program).Inside cgi program, i wants to use HTML HYPERLINK-that should points to my PHP program and plus i wants to pass one parameter to this hyperlink. Is it possible to call PHP script?If is it possible means, …

Software Development perl php
Member Avatar for jacksantho
0
220
Member Avatar for stupendousomega

I have a user input an integer... But if it's really long, it throws an exception and starts looping infinitely. How would I make it cut the number after the first 7 digits and only use that? Like, if I inputted 654897654321648435435135813513843513543514, it would only accept 6548976. Please help.

Software Development c++
Member Avatar for mrnutty
0
215
Member Avatar for matadori

I'm trying to remove a JButton from a JPanel but my code does not work. Any help is appreciated. This is the JButton. Problem is the line 25 I guess. [CODE] class SquareButton extends JButton implements MouseListener { String text = null; GameArea ga = null; public SquareButton(GameArea ga) { …

Software Development java
Member Avatar for mKorbel
0
2K
Member Avatar for lxXTaCoXxl

The idea is to do basic math to find the difference in size between the object and the form. To do this take the object size (int1, int2) and the form size (int1_1, int2_2) then get the difference by subtraction. The math is (int1 - int1_1, int2 - int2_2) so …

Software Development
Member Avatar for lxXTaCoXxl
0
227
Member Avatar for kutuup

I've trawled the internet searchiing for an explaination on how to do this. I'm working on an assignment and we are told to "transmit a whole object to the server". As far as I know, the send function of winsock2 only allows you to send data of type char, so …

Software Development c++ tcp-udp
Member Avatar for kutuup
0
496
Member Avatar for niths

hi all, i had a problem with displaying the data in textbox. My code is here [CODE] string note = "SELECT Notes,NDate FROM Ticket_Notes WHERE TicketNo ='" + tktno.Text + "' "; SqlCommand cmd3 = new SqlCommand(note, con); SqlDataReader id = cmd3.ExecuteReader(); while (id.Read()) { dnotes = id.GetValue(0).ToString(); ndate = …

Software Development display
Member Avatar for CsharpChico
0
186
Member Avatar for lxXTaCoXxl

So I don't want the icon from my application to appear on the taskbar. Not even when the application is minimized or even visible. I don't know how to do this and can't find any information on the subject.

Software Development
Member Avatar for lxXTaCoXxl
0
80
Member Avatar for shyla

How do i get the data to appear line after line in notepad and with the dashes in the phone number that my code [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Friends { class WriteFriendRecord { static void Main(string[] args) { Console.WriteLine("Enter your friend's details: "); Friends.Friend f …

Software Development c# file-stream file-system
Member Avatar for CsharpChico
0
218
Member Avatar for faithingod1970

I once upon a time had problems with buttons and getting windows to show up, now cannot get output of loan data into JList, code is below, any suggestions? next change is to add array (which I think I can do) and graphics in the form of a graph but …

Software Development display java java-swing
Member Avatar for NormR1
0
309
Member Avatar for TrustyTony

To be more clear, I post this 'unnecessary optimization' of Vegaseat's code in new thread instead of end of old one. Just to show that this is even simpler than [URL="http://www.daniweb.com/software-development/python/code/363346/1554115#post1554115"]checking if given day is first weekday of the month[/URL].

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for arjunpk

hi the code which i use to export a data table to excel works fine..... but when i open the excel file it gives me the following warning THE FILE YOU ARE TRYING TO OPEN IS IN A DIFFERENT FORMAT THAN SPECIFIED BY THE EXTENSION. VERIFY THAT THE FILE IS …

Software Development c# microsoft-office open-source
Member Avatar for C#Jaap
0
307
Member Avatar for judithSampathwa

hi there, i have a tab control with 3 tab in a form in C#.NET, and also i have a button which shold be doign adding rows to the datagrid view. how can i code the button so that when the active tab is tab on to add a row …

Software Development c# vb.net
Member Avatar for umair.sabri
0
410
Member Avatar for bhdas1

Hi, I have developed a Java swing based application to work in Windows 7 platform. But the application is having some issues as below : 1. I have a few tabs labeled like A , B , C ,D side by side in my application. If I am using jre5 …

Software Development java java-swing
Member Avatar for mKorbel
0
98
Member Avatar for narlapavan

i am using QT software in solaris, i opened remote system through QFtp methods i.e.. connectToHost() after that, loged in through login(). now my problem is, i am trying to get data from remote system, through int get ( const QString & file, QIODevice * dev = 0 ) at …

Software Development c++ qt
Member Avatar for Topi Ojala
0
221
Member Avatar for novice20

Hi, I want to do something like this: I have two lists: list1 = range(6) list2 = range(10,15) i want a dictionary like this: adict ={0:10, 1:11, 2:12, 3:13, 4:14, 5:15 } I did the following: [CODE]list1 = range(6) list2 = range(10,15) adict = dict(zip(list1,list2))[/CODE] i get : [B]TypeError: list …

Software Development python
Member Avatar for novice20
0
232
Member Avatar for isengwa

wat's guys? i have a java program and i want to connect it with mysql,how can i get my prob solved?or if i can view any source code that can help me.

Software Development java mysql
Member Avatar for sam.udo
0
114
Member Avatar for man in a can

Hi Folks, So the problem im having is trying to make some code less clunky. I recieve a list of random codes in the form of an Enumeration. I then retrieve a number of codes i read in from a properties file going from most important at the top to …

Software Development java
Member Avatar for JamesCherrill
0
102
Member Avatar for mhosny

Hello, I am working as a software tester in Software Quality Assurance department in small company. And what I want to do is design a tool or application to test the performance of any software. Basically I want to create an application that I can use while I am doing …

Software Development vb.net
Member Avatar for mhosny
0
148
Member Avatar for Jimmyteoh

[CODE=java]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Plane extends JApplet implements ActionListener { JTextField input; JLabel prompt1, prompt2; JButton yesButton, noButton; int section, seats[], smoking; int nonsmoking, people; public void init() { input = new JTextField( 4 ); input.addActionListener( this ); prompt1 = new JLabel( "Please type 1 for …

Software Development c++ java java-swing
Member Avatar for Nick Evan
0
212
Member Avatar for Helpmeicantcode

Ok so I have what is a simple problem in my eyes, but I cannot seem to make it work in any way. I have two forms and get from the first to the second real easy, using a basic show and hide code snippet as follows [CODE] GamescreenFrm secondForm …

Software Development
Member Avatar for Mitja Bonca
0
140
Member Avatar for sachintha81

I have done pretty much all my programming using C# and very much a newbie to C++. However now I have to convert to C++ and is finding it a bit difficult. For example, I wrote a pretty simple program using C# to acquire a RegistryKey, then using a recursive …

Software Development c# c++
Member Avatar for drkybelk
0
372
Member Avatar for bhagawatshinde

Hi all, I have a problem while deleting xml File. In detail i have generated xml file with encrypted format. now when i am importing this file with decryption all data read and inserted to database using dataset. Record inserted successfully but when all process completed i want to delete …

Software Development dataset file-system
Member Avatar for samueal
0
149
Member Avatar for jeff4L

When I declare my variables, should be it be like [B]int delay = 0[/B] then initialize to [B]int delay = 0[/B] or [B]int delay[/B] then initialize to [B]int delay = 0[/B]? I'm a bit confused about initializing my variables... [CODE]void calc_pipe() { /* Declare local vars */ int i; int …

Software Development c
Member Avatar for jeff4L
0
185
Member Avatar for prasanthsagar

HI guys, I have a form in my website. When I close the form, I want to fire an event which displays another page or dialog box containing some button. Please help me in this. Regards, Prasanth

Software Development
Member Avatar for abelLazm
0
88
Member Avatar for montjoile

with this structures: [CODE]//Structure of binary tree typedef struct nodo_ab { int etiqueta; list primerapos; list ultimapos; char dato; struct nodo_ab* izq; struct nodo_ab* der; struct nodo_ab* padre; } nodo_ab; typedef struct nodo_ab *abb; //Structure of list typedef struct nodo_lista{ int dato; struct nodo_lista *sig; }nodo_lista; typedef struct nodo_lista *list; …

Software Development c++
Member Avatar for montjoile
0
170

The End.