132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ananth3125

here in the below coding i cant able to view the (.rtf) and (.doc) files so kindly guide me with below coding [CODE] Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Using fold As New OpenFileDialog fold.Filter = "document files (*.doc)|*.doc …

Software Development vb.net
Member Avatar for Pgmer
0
330
Member Avatar for ibthevivin

//This program will prompt for user to enter in the Fahrenheit temperature and convert it to Celsius. import java.util.Scanner; public class Project4 { public static void main (String[]args) { double temperature; double celsius; Scanner scan = new Scanner (System.in); System.out.println("Enter the current temperature in Fahrenheit: "); temperature = scan.nextDouble(); celsius …

Software Development java
Member Avatar for niranga
0
236
Member Avatar for rickymohanty

i am new to Python. And I am trying to make a drop down menu which will have some options (eg 4 options). I also need a Ok button in the same window. The user needs to select an option and click on "Ok". I need only single selection. When …

Software Development python tkinter
Member Avatar for Stefano Mtangoo
0
29K
Member Avatar for ladybug21

//I have this running but when the user inputs a different character than the program just out puts the error //message and that its. I want it to go back and ask the user if they would like to run the program again. Any //ideas? Thank you! [CODE]int main () …

Software Development c c# c++
Member Avatar for mzimmers
0
266
Member Avatar for express690

I'm having trouble writing an array program that deletes duplicate numbers in an array. I can't figure out the code for find the array size. I have the array max set to 25 but my array doesn't have 25 numbers in it. (let's say it only has 10 numbers in …

Software Development c c# c++
Member Avatar for WaltP
0
356
Member Avatar for phorce

Hello I'm trying to display the memory location(s) of an array of pointers. It works, but it prints the memory locations out as: e.g. [code] (0x7fff672e19a0) [/code] I know that is the memory location, but in other examples, I've seen it being displayed as [code] 4041 [/code] Here is the …

Software Development c++
Member Avatar for L7Sqr
0
126
Member Avatar for lbgladson

I have the following program written where Square extends Rectangle. I cannot figure out how to get the correct display for the x and y coordinates. It should display Expected: Square[x=5, y=5, width=30, height=30] but instead it displays Square[x=10,y=20,width=30,height=30]. [code] import java.awt.Rectangle; public class Square extends Rectangle { private int …

Software Development java
Member Avatar for niranga
0
117
Member Avatar for spoyer62

public class SimplifiedMath { public double max (double first, double second) { if ( 58 > 100) { return first; } else { return second; } } public double min (double first, double second) { if (35 < 13) { return first; } else { return second; } } public …

Software Development java
Member Avatar for niranga
0
108
Member Avatar for triumphost

Hey guys I'm here again with another problem. I want to search in a string for a string with quotes in it. Example: [CODE]String to search = {' </a></div></div></div><div class="clearfix"><table cellspacing="0" class="wsod_quoteData"><tr><td class="wsod_last wsod_lastIndex" nowrap="nowrap" '} What to search for = {' <table cellspacing="0" class="wsod_quoteData"> '} Then if found, from …

Software Development c++
Member Avatar for triumphost
0
173
Member Avatar for gnomelook

Help!! How to print this using loop & condition starements... 0 1 1 1 1 -1 0 1 1 1 -1 -1 0 1 1 -1 -1 -1 0 1 -1 -1 -1 -1 0 help pls..asap...

Software Development c
Member Avatar for gnomelook
0
136
Member Avatar for crownedzero

Using strings [CODE] #include <iostream> #include <string> using namespace std; string replaceSubstring(string, string, string); int main() { string string1 = "the dog jumped over the fence", string2 = "the", string3 = "that", newString; cout << "This program will replace a keyword in a sentence with another word.\n\n\n"; cout << "Our …

Software Development c++
Member Avatar for mzimmers
0
2K
Member Avatar for Firzin

So I have question regarding a program I need to write. I need to read a text file which consists of a location and the coordinates of it's longitude and latitude. The program should be able to read any amount of spaces and tabs in between the tokens. So it …

Software Development c++ file-system
Member Avatar for mzimmers
0
190
Member Avatar for Mirfath

hi! i have a form to enter data i want to put validations in the text boxes and prompt the user if he/she enters the wrong data i want to put validations for phone number Date of birth email i tried using regex but it says that i am missing …

Software Development regex
Member Avatar for Mirfath
0
138
Member Avatar for ananth3125

here is the coding for creating a table with book name, author name, isbn , tile etc,........ in the below coding i need the insert , retrieve, and update coding as vb.net coding [CODE] DataGridView1.ColumnCount = 4 DataGridView1.ColumnHeadersVisible = True Dim colhdrstyle As New DataGridViewCellStyle DataGridView1.ColumnHeadersDefaultCellStyle = colhdrstyle DataGridView1.Columns(0).Name = …

Software Development vb.net
Member Avatar for Phasma
0
299
Member Avatar for unmatchedz

hey ppl Trying to get this code working for this gui cube game It is an assignment so i'm being honest, I have know idea on how to get the tkinker function to work. have searched the internet but still having problems in getting it too work. I have tried …

Software Development gui python
Member Avatar for unmatchedz
0
212
Member Avatar for phorce

Hello, I am working on a script that reads each individual character from a txt file and then outputs it depending on whether it's in the alphabet or not.. The problem is, it won't output spaces or anything apart from the string.. e.g. The text file reads: [code] Hello, my …

Software Development c++
Member Avatar for Red Goose
0
108
Member Avatar for angeriel1

the program runs but fails to read the double word states (e.g New Jersey). am getting the error.java.lang.NumberFormatException: For input string: "Hampshire" [CODE] import java.text.DecimalFormat; import java.util.*; import java.io.*; import java.lang.reflect.Array; import java.nio.CharBuffer; import java.awt.*; //import java.awt.event.*; import javax.lang.model.type.ArrayType; import javax.swing.*; import javax.swing.event.*; public class PJ5 extends JFrame implements ListSelectionListener …

Software Development java java-swing
Member Avatar for hfx642
0
223
Member Avatar for Start4me

Hello everyone! I need to make a simple yet cool program for my professor. The program is this: To get the program to work, the user first presses a button on the form. Then, when the user presses an up arrow on the keyboard, the cursor will change to a …

Software Development vb.net
Member Avatar for Reverend Jim
0
479
Member Avatar for maynardjk13

Hi! I'm almost done with this program, but I have a problem: Whenever it displays the prime numbers, it throws in non prime numbers that are odd (like 9 and 15) Here is the code so far. [CODE] /* File: isprime.cpp Created by: Ricardo Renta Creation Date: 11/8/11 Synopsis: This …

Software Development c++
Member Avatar for mrnutty
0
252
Member Avatar for DaniwebOS

Hello everyone, I think I need a second eye on the code. I'm not sure where I went wrong but it was working at some point. Everything should run without a problem any idea what is going on? A second opinion would be highly appreciated... [ICODE]import java.util.Calender; import java.util.GregorianCalendar; public …

Software Development java
Member Avatar for DaniwebOS
0
212
Member Avatar for lxXTaCoXxl

I need some help with networking information. I've figured out most of the simple stuff and made it simpler still with an application extension, however there are a few things that still confuse me. With sockets it "appears" as though I have the ability to send information such as text …

Software Development
Member Avatar for lxXTaCoXxl
0
153
Member Avatar for pkrdimos

Hi all, As the title says, I have to create a C++ program (for my thesis) that will solve all the motion equations and have a graphic of the moving engine system. I've done all the "heavy" lifting but I am stuck on the graphics part as I haven't work …

Software Development c++ image
Member Avatar for mrnutty
0
204
Member Avatar for libathos

Is there a way i can modify the Bresenham circle algorythm in a way so that it actually draws arcs with specified start and end angle instead of complete circles? the algorythm in c is like this [CODE]void DrawCircle(int xM,int yM,int radius) { int f = 1 - radius; int …

Software Development algorithm c
Member Avatar for Adak
0
194
Member Avatar for BWall

How are you guys doing today? I'm having a hard time with my CS project. I have to write a hangman python code but it is kinda different from what I've seen around. I'll post my code and then explain what I am having trouble with: [CODE]from hangman_support import * …

Software Development python
Member Avatar for woooee
0
181
Member Avatar for violette

Hi all. i have a problem on my coding here. it should insert the new triggered alert into database but it does not work. please have a look and tell me which part i've done wrong. thank you :) [CODE]Protected Sub repeaterAlert_ItemDataBound(ByVal sender As Object, ByVal e As RepeaterItemEventArgs) Handles …

Software Development session vb.net
Member Avatar for bluehangook629
0
158
Member Avatar for lxXTaCoXxl

I've noticed that while programming sometimes a tool tip window pops up beside the selected class in the drop down window while typing. This tool tip often contains a description of the class or variable that is highlighted or selected. I was wondering how to do this for my own …

Software Development
Member Avatar for lxXTaCoXxl
0
94
Member Avatar for lscamaro

I'm writing a pig latin program and am having problems moving onto the next word and printing the words. I have to print from the first vowel onto the end of the word and then from the beginning of the word to the first vowel including the vowel itself. [CODE]#include …

Software Development c
Member Avatar for YourGamerMom
0
490
Member Avatar for violette

[CODE]Protected Sub updatedata() Dim strSQL As String strSQL = "UPDATE company_alert, company_financial" strSQL = strSQL & " company_alert.alert_value = (company_financial.receivable * 360 / company_financial.revenue)" strSQL = strSQL & "WHERE company_alert.alert_id='DSO' AND company_alert.stock_code = company_financial.stock_code AND company_alert.year_id = company_financial.year_id AND company_alert.period_id = company_financial.period_id" cmd = New MySqlCommand(strSQL, conn) cmd.ExecuteNonQuery() End Sub …

Software Development vb.net
Member Avatar for bluehangook629
0
165
Member Avatar for violette

[CODE] Protected Sub updatedata() Dim command As New MySqlCommand("UPDATE company_alert, company_financial SET company_alert.alert_value = (company_financial.receivable * 360 / company_financial.revenue)WHERE company_alert.alert_id='DSO' AND company_alert.stock_code = company_financial.stock_code AND company_alert.year_id = company_financial.year_id AND company_alert.period_id = company_financial.period_id", conn) command.ExecuteNonQuery() End Sub Protected Sub insertdata() Dim strSQL As String strSQL = "INSERT INTO company_alert (stock_code, year_id, …

Software Development vb.net
Member Avatar for bluehangook629
0
306
Member Avatar for kpeckly

have been trying to display on my data grip view but is not. i want a situation where by it will display on the datagrip view base on the invoice number, below are the code Private Sub getLastID() Dim oleDBDR As SqlDataReader Dim oleDBCommand As New SqlCommand With oleDBCommand .Connection …

Software Development display vb.net
Member Avatar for bluehangook629
0
176
Member Avatar for A.D.M.I.N

I want to take a function and repeat it by an amount which a user will input. Thanks in advance!

Software Development python
Member Avatar for Ene Uran
0
87
Member Avatar for ilovejava

hey guys I need help to implement a array list I have the skeleton structure written out but some of the methods do not work and I have troubles with the remove method please help and how do you do isEmpy method [CODE]//tried my best dont get some stuff public …

Software Development java
Member Avatar for Slimmy
0
201
Member Avatar for Nachodsk

[CODE]class Personaje(object): def __init__(self,vida,posicion,velocidad): vida = None posicion = None velocidad = None recibir_ataque = None def recibir_ataque(vida): recibir_ataque in range(1,100) vida - recibir_ataque print "La vida actual del personaje es de", vida, " Luego de haber recibido", recibir_ataque, " de dano" def excepcionVida(vida): if vida <= 0: print "El …

Software Development gaming python
Member Avatar for SgtMe
0
248
Member Avatar for shurshot

I have this bit of python code that imports pygames to draw lines. It auto creates lines when two or more points are clicked on. I'm bad at explaining but you'll see when you run the code. It's pretty simple but I find it kind of fun to mess with …

Software Development python
Member Avatar for Ene Uran
0
3K
Member Avatar for That_Dude

Hi, all. I am a undergraduate computer engineer major, and I am currently learning Bode plots. I am very fluent with C++ but have been out of the game, as far as creating something goes. I am looking to implement a program that can construct a Bode Plot. A bode …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
726
Member Avatar for alarifth

Hi everyone! When i compile my small piece of code it gives me the error [COLOR="Red"]C2512 : No appropriate default constructor available[/COLOR] this is my definition of class person: [CODE] // Person.h // A class defining a person #pragma once #include <iostream> #include <string> #include <functional> using std::cout; using std::endl; …

Software Development c++ oop
Member Avatar for mzimmers
0
10K
Member Avatar for rajeshpodder007

I made a downloader.i need it can run multiple time a moment.i mean to say when we click on vb.net application icon it runs only one time.if we again click on vb.net application it cant run second time. We need to stop the first application and then run again . …

Software Development vb.net
Member Avatar for Reverend Jim
0
166
Member Avatar for lxXTaCoXxl

I'm trying to get the Physical Address of the user's computer but having no luck. I developed a method that was working but isn't anymore. I'm also having trouble getting the IP Addresses Broadcast and Loopback. [CODE] string ip = IPAddress.Broadcast.Address.ToString(); string ipl = IPAddress.Loopback.Address.ToString();[/CODE] The physical address is the …

Software Development
Member Avatar for sknake
0
199
Member Avatar for Akill10

Hi, Been looking about and cannot find an answer to this. Is it possible to view the class diagram for your project in the express edition of VS? If not, are there any plugins etc. for it which would allow me to do so? If not, does anyone have any …

Software Development c#
Member Avatar for Akill10
0
110
Member Avatar for slygoth

In this code i would like to store the values that are being outputted. [CODE] fstream filestr; char check[4]; filestr.open("D:\\bio.pdf", fstream::in | fstream::binary); if(filestr.is_open()) { int i; char check[4]={0}; for(i=0;i<4;i++) { filestr.read(&magic[i],1); [COLOR="Red"]cout<<hex<<static_cast<int>(check[i])<<endl;[/COLOR] //<-- This LINE } } [/CODE] The numbers that are printed here i would like to save …

Software Development c++ pdf
Member Avatar for slygoth
0
107
Member Avatar for c.uetn

Help with java Button How about I'm making a music player but I like the look of the button you added the image as ImageIcon because for example the play button is round and I want to lose those edges rectangular button and wanted to find a way to insert …

Software Development java
Member Avatar for c.uetn
0
513
Member Avatar for Tortura

Hey guys, I created a main GUI for a measurement program. Beside all existing controls, there are two important buttons. START and ABORT. By pressing the START button, a method for measuring is run. Now I can not press any control on the form. That's okay, but I need the …

Software Development gui
Member Avatar for Tortura
0
223
Member Avatar for avgvstvs

I have just completed my first program in c++.I am an ultra newbie,have only been doing c& c++ for 12 days,so please forgive me if my program is shit.Anyways i would like the experts on this forum to evaluate my work and give me tips and hints to make myself …

Software Development c++ daniweb-feedback windows-vista-7-8
Member Avatar for avgvstvs
0
339
Member Avatar for BlackRocker

Write a program that uses two parallel arrays to store student names and their grades. It should use an array of strings that hold the names and a two-dimensional array of integers for grades. Use nested loop to add individual student grades and get the average grade of each. The …

Software Development c++
Member Avatar for BlackRocker
0
204
Member Avatar for jdh1231

So, I am suppose to make the bar chart looking like the picture attached below using Array and for loops. It suppose to output a bar chart (using "*") of temperatures for the hours. Range of temperatures should be from -30 to 120. Each * should have amount of 3 …

Software Development c++
0
140
Member Avatar for a.oprea

Hello. I want to ask you all how to remove an element from an arraylist? Let's say the arraylist is made of the Integer elements: 23, 43, 40, 10; I want to remove the number 43. How do I do that? And don't tell me arraylist.remove(1); because this removes the …

Software Development java
Member Avatar for JamesCherrill
0
214
Member Avatar for low1988

I'm going to do my graduate dissertation this year .My title is develop a forensic tools which is able to detect and analyse the file signature then compare it with the extension.If the extension is wrong match with the file signature then there is a feature in the tools that …

Software Development file-system vb.net
Member Avatar for akkbkht
0
1K
Member Avatar for Arjunah

This is a program which i am making of a quiz in which there are lifelines for helping the user solve his question. this function is to chose from whichever lifeline the user wants to chose. but my problem is that it is not inputing the string i.e not using …

Software Development c++
Member Avatar for WaltP
0
185
Member Avatar for slim1_1

Very new to C# and this forum. I'm not asking anyone to do this for me, but some hints would be very much appreciated. Assignment states that you retire at age 65 and deposit the same amount of money each year from the time you are 20 years old. Your …

Software Development c c# c++
Member Avatar for slim1_1
0
144
Member Avatar for nsyncpilu

Hy , Is there any way to remove the windows borders (the upper with the name and (space) close , minimize , maximize ,the right one , left , down) from an java app? I develop the app in NetBeans , so here is my code for opening the "main" …

Software Development java java-netbeans java-swing
Member Avatar for nsyncpilu
0
906

The End.