132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for virus.exe

Hi, this is not a HUGE problem but I was jw why at the end off all my codes I have to type, system("pause");. When I even do the Hello World! program thing the black screen just flashes. I was jw why no one elses codes have this. Its not …

Software Development c++
Member Avatar for WaltP
0
2K
Member Avatar for JadedTortoise

[B]Question:[/B]I ran into a point where it would be very helpful to send a function a portion of an array, instead of the entire thing. Now i can think of a couple work arounds like sending the whole array and a begin number, and range number, then computing off of …

Software Development c
Member Avatar for WaltP
0
186
Member Avatar for Cerberus

Hi, does anyone know how to set a JFileChoosers default filter back to accept all files after custom filters have been added? Thanks.

Software Development java
Member Avatar for peter_budo
0
171
Member Avatar for Slavrix

hey im trying to make a simple program to calculate backpay and pay rises for my dads business, ive worked out a pseudocode for it, but am having trouble implementing it. BEGIN Salary Increase numberOfBackpayMonths = 5 PRINT “Congratulations! You had a 6.5% pay rise retroactve for five months.” PRINT …

Software Development c++
Member Avatar for Slavrix
0
107
Member Avatar for Sukanto

I am new to JNDI, JTA, javax.sql though I am familiar with java.sql I want to access a database (a Derby database) using JNDI lookup and UserTransaction (as I want to learn about Distributed DB Transactions). I am using [b]Sun Java Application Server(SJAS) 8.2[/b] Database: [b]Derby[/b] Directory Services of : …

Software Development java
Member Avatar for Sukanto
0
155
Member Avatar for semmem1

I am trying to return an array of integers from a method into an array in my main. I know that you cannot pass an array in C, but you can pass a pointer to the array. My problem is though that every time I pass the pointer, I seem …

Software Development c
Member Avatar for semmem1
0
94
Member Avatar for ultra vires

There is a strange thing going on with my copy of Visual Studio.. the class for ADO isnt there .. what i mean is that i cant use System.Data.ADO it simply isnt there ..what do i need to do get ADO access for my programs (based on database connectivity)

Software Development visual-studio
Member Avatar for ultra vires
0
83
Member Avatar for Ved_TheOne

hi, i want to write a code, which helps me to move up or move down the elements inside the list box at the click of command button i have made use of 2 listbox's, one list box if filled with all possibles images, then at runtime user adds or …

Software Development visual-basic
Member Avatar for PVBert
0
628
Member Avatar for nnobakht

hey guys im supposed to write a simple calculator in java. Not in applet. Stack class has already been given and i was supposed to tokenize the input, have a function convert to take it from infix to postfix notation and eval to evaluate it. i have written the code …

Software Development java
Member Avatar for iamthwee
0
417
Member Avatar for Gumster

Hi all, im gumster new to DaniWeb, been programming vb for numerous years moving to python anyway, Im trying to create a small authentication module for a program im making where it asks for the username and password, i was just wondering how i go about masking the password so …

Software Development python
Member Avatar for ghostdog74
0
3K
Member Avatar for grunge man

i always hear about arrays and it makes sence to me but whats a tipical use for them may i pleas see an example because i dont understand why they eaven exisit

Software Development c++
Member Avatar for John A
0
153
Member Avatar for IwalkAlone

Q.Write a function to accept a main string, one search string and one replace string. Replace the first occurence of search string in main string by replace string{assume the length of search and replace string is same). Solution I tried [CODE] #include<stdio.h> #include<conio.h> void main() { char mai[80],search[40],replace[40]; int i,j,k,l; …

Software Development c
Member Avatar for John A
0
127
Member Avatar for Colin Mac

I used what's below to delete a directory. It only deletes the directory if it's empty. How could I delete a directory and it's contents? [code] #include <unistd.h> int main() { rmdir("C:\\haha"); return 0; } [/code]

Software Development c
Member Avatar for Colin Mac
0
100
Member Avatar for aot

So I have to enter a lot of text for display by Tkinter, and I've been rather miffed that I can't seem to find a way to get Eclipse (PyDev) to do any kind of auto-wrapping. Wrapping the lines myself with [inlinecode]"string1" + \ "string2"[/inlinecode] is, of course, beyond annoying. …

Software Development ide python tkinter
Member Avatar for jrcagle
0
68
Member Avatar for Nholdamek

I've been building this program to interface with the Swis ephemeris library. It's working beautifully, except for one thing. OK, I need to be able to specify it to retrieve information about multiple planets, such as longitude, speed, etc. So I have a function that parses the command line parameter …

Software Development c first-post
Member Avatar for Nholdamek
0
292
Member Avatar for tayster

this is about making a loop for powers stripe3 is the variable how do u do stripe3*10 stripe3 times for example if stripe3 = 5 then my question is how do u do 5*10 5 times because there isnt an opperation in c++ for exponents so i was thinking of …

Software Development c++
Member Avatar for tayster
0
150
Member Avatar for JamesDT

Ok, so here's the problem: I have a database with tables made with Microsoft Access. I know how to connect to this databse, and retrieve information in the tables, and update the information in the tables. I was hoping someone could help me with the code for inserting new tables, …

Software Development microsoft-access vb.net
Member Avatar for molze
0
105
Member Avatar for bigben09

What do I need to do in order to get my program to print out two decimal places? [CODE] #include "stdafx.h" #include <iostream> #include <ctype.h> using namespace std; int main() { char movie[50]; int adult_ticket_price, child_ticket_price; int adult_ticket_sold, child_ticket_sold; int percentage_of_gross_amount_donated; cout <<"Enter The Movie Name: "; cin >> movie; …

Software Development c++
Member Avatar for tayster
0
251
Member Avatar for jk1998

In my JApplet, I am able to change the background color of the panel but not the currentSurface which is an instance of PaintSurface extends JComponent. Could someone please help me out? Many thanks [code] import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.geom.*; public class Tanks extends JApplet …

Software Development java java-swing
Member Avatar for jk1998
0
179
Member Avatar for muhaa

Hi all i was wondering if any one could help me i have a program i made using wininet in c c++ and my program is not seeing if there is a connections before completing with the execution ive tried to get it sorted but cant seam to figure it …

Software Development c++ microsoft-windows windows-server
Member Avatar for muhaa
0
90
Member Avatar for brian.p

[code] ; Description: Program to input a character and then output it to the screen ; Registers used: ax, dx .model small .stack 100h .data .code mov ah, 02h ; DOS function call 2, character output mov dl, 41h ; the character 041h (i.e.'A') mov cx, 26 ; start the …

Software Development assembly
Member Avatar for Purple Avenger
0
9K
Member Avatar for jivosan

Sorry for the nubbish question , but I'm wondering which function will do the trick-read a char from keyboard without need to press "Enter"???

Software Development c
Member Avatar for Salem
0
166
Member Avatar for Derice

const char * strstr ( const char * str1, const char * str2 ); char * strstr ( char * str1, const char * str2 ); Locate substring Returns a pointer to the first occurrence of str2 in str1, or a null pointer if there str2 is not part of …

Software Development c++
Member Avatar for John A
0
142
Member Avatar for saqib

hello what is a far pointer? Recommend me some good books on data structures and algos

Software Development c++
Member Avatar for DEMWilson
0
187
Member Avatar for 8ball

I need to create a little assembly app for arm cpu which reads two 32 bit numbers from the address which register r0 points out. Then it compares absolute value of those two numbers and puts them back to those same addresses the way there's number which absolute value is …

Software Development assembly
Member Avatar for bitbank
0
250
Member Avatar for Arrow203

Hey all~ I'm very new to VB.net infact i've only been so far through 2 classes but I'm still going. My personal Project that I'm doing is a simply display with some buttons that when you click on them that link to an exe file on my desktop. I've gotten …

Software Development vb.net
Member Avatar for japelweb
0
221
Member Avatar for jhdobbins

Okay, thanks ahead of time for looking at this. First off the program is in C, not C++. I am trying to read in from a text file... a certain question.... but i fairly suck at programming in C. I have a file pointer set up and i have it …

Software Development c c# c++ first-post
Member Avatar for JeganathanK
0
147
Member Avatar for Stoney

I can't find this typing error. Somewhere on Line 44. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Weight extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Weight frame = new Weight(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void createGUI() { setDefaultCloseOperation(EXIT_ON_CLOSE); Container window …

Software Development java java-swing
Member Avatar for rgtaylor
0
329
Member Avatar for cigar

where can i download C++ PLEASE? CAN YOU HELP ME?

Software Development c++
Member Avatar for GreenDay2001
0
152
Member Avatar for gamodg

[color=#3333FF]presenting here a program fragement of my project two files mainn.txt mp.txt format i have given at the end of this code the problem is that while printing mp.txt the output is not in format as i expected [/color] [code] [color=#33CC00]DF: 1 SA: 2-2 DA: R1 D: 3 SA: R1 …

Software Development c ios open-source
Member Avatar for GreenDay2001
0
76
Member Avatar for pravly

hi everybody, how to draw shapes like(rectangle,circle)in VB.NET on the form load itself.... rather than using button_click or other things... plz do send me the code...

Software Development vb.net
Member Avatar for bikash123
0
117
Member Avatar for Stoney

I get a tip of $8.0 when I want $8.4. What am I missing here? [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Tip extends JFrame implements ActionListener { private JButton button; public static void main(String[] args) { Tip frame = new Tip(); frame.setSize(400, 300); frame.createGUI(); frame.setVisible(true); } private void …

Software Development java java-swing
Member Avatar for Shashikant
0
106
Member Avatar for mrjoli021

i have a string array and I need to change it to uppercase. what function can I use??

Software Development c
Member Avatar for mrjoli021
0
77
Member Avatar for yaya_star

Hello,,, I am creating a screen call (Contacts information) for my project using VB.NET where i want to add picture box contanin as(defualt picture) and button when click in it appear browse picture where you can select the picture you want and appear in the picture box. can any one …

Software Development vb.net
Member Avatar for yaya_star
0
95
Member Avatar for Manawyddan

Hi everyone! My name is Ricardo and i'm having a few problems with a program i'm writing. The program should deal with products information, i'm doing it using a structure, two procedures and a main function, the purpose is so that in the first function, designation of the products should …

Software Development c++ data-structure
Member Avatar for John A
0
123
Member Avatar for mmjepp

Hi! First of all, im from sweden so my english isn't the best :!:.. I read a guide "How to make a simple login page" ..(something like that) But i need help with my languages(aspx,C#,sql2k5) The problem for me is how to make the SP for checking if Username and …

Software Development asp c#
Member Avatar for brainbox
0
162
Member Avatar for tikal777

Hello again to good ol' DaniWeb. Again I'm stuck. I'm a newbie when it comes to C++. I was given an assignment ([B]ATTACHED[/B]), which I'm having problems with in the first part of [B]Menu Choice A[/B] section. I'm only that far, and haven't proceeded further. I've coded the following (with …

Software Development c++
Member Avatar for tikal777
0
113
Member Avatar for volscolts16

Background: > An n x n matrix that is filled with the numbers 1, 2, 3, ... n squared is a magic square if the sum of the elements in each row, in each column, and in the two diagonals is the same value. Write a program that reads in …

Software Development java
Member Avatar for iamthwee
0
1K
Member Avatar for olams

Hello everyone, Does anyone know how to write a source code for 3x3 determinants. I was given that for my C++ final exam and didn't know how to do it. I could only do the 2x2 determinants and that's what i put down. Any help is greatly appreciated. thanks

Software Development c++
Member Avatar for iamthwee
0
118
Member Avatar for gamodg

please suggest me how to position my output in tc++3 like [COLOR="Blue"]sa[/COLOR]:1111 [COLOR="#0000ff"]da[/COLOR]:112212 [COLOR="#0000ff"]d[/COLOR]:4 i want that irrespective of the length of data after [COLOR="#0000ff"]sa[/COLOR] or [COLOR="#0000ff"]da[/COLOR] the distance between[COLOR="#0000ff"] sa da d[/COLOR] should be constant

Software Development c++
Member Avatar for WaltP
0
64
Member Avatar for Cerberus

Hey, does anyone know what inteface is needed to listen for a file being loaded into a jtextcomponent. Thanks.

Software Development java
Member Avatar for Cerberus
0
94
Member Avatar for potato_bum

for example.. number.txt: (has these contents) 1.75:2.00:3.00 2.00:5.00:7.24 3.00:6.35:1.00 -- my source code is.. [code=c] #include <stdio.h> int main() { FILE *infile; double a, b, c; char d; double sum; infile = fopen("number.txt", "r"); if(infile == NULL) { printf("number DOES NOT EXISTS!"); } else { while(!foef(infile)) /*here's my problem*/ { …

Software Development c
Member Avatar for Aia
0
5K
Member Avatar for Dark_Omen

Ok, so I am trying to re learn c++ and the first thing I wanted to do was make a simple class for a circle (calculate the area and circumference of the circle). When I tried to compile it I get this error: [CODE]11 conversion from `Circle*' to non-scalar type …

Software Development c++
Member Avatar for ~s.o.s~
0
216
Member Avatar for Monyet

Hi, it is pretty much my fault for procrastinating, anyhow.. I need to get the best grip for this language in about 2 weeks using Microsoft Visual Studio 2005 Professional. I need to get comfortable with both, I have experienced with Java but still pretty much new... I know objects, …

Software Development c c# c++ visual-studio
Member Avatar for percent20
0
117
Member Avatar for arunprabhakar

HAI I HAVE ERROR IN RUNNING THIS PROGRAM I HAVE COPIED THE MAIN.H AND STRING .H. PLEASE GIVE THE SOLUTION AS SOON AS POSSIBLE CODING /* $Id: main.h,v 1.69 2005/01/18 06:19:46 prahl Exp $ */ #if defined(UNIX) #define ENVSEP ':' #define PATHSEP '/' #endif #if defined(MSDOS) || defined(OS2) #define ENVSEP …

Software Development c++ unix visual-studio
Member Avatar for Ancient Dragon
0
800
Member Avatar for ch1ck3n

My code is below. I'm pretty sure my issues are spanning my my .resize(). It's possible I'm doing my hashing completely wrong too, but it was right at one point. This code wont run at all right now, but it compiles. Is there a better way to go about sizing …

Software Development c++
Member Avatar for ch1ck3n
0
82
Member Avatar for potato_bum

for example.. number.txt: (has these contents) 1.75:2.00:3.00 2.00:5.00:7.24 3.00:6.35:1.00 -- my source code is.. #include <stdio.h> int main() { FILE *infile; double a, b, c; char d; double sum; infile = fopen("number.txt", "r"); if(infile == NULL) { printf("number DOES NOT EXISTS!"); } else { while(!foef(infile)) /*here's my problem*/ { fscanf(infile, …

Software Development c
Member Avatar for thekashyap
0
1K
Member Avatar for aot

I want to be able to use scales to let the user answer various questions on screen. However, though I can get scales to work fine in other programs, in this one in particular they seem to have bugged out. What's happening is that, if I set [inlinecode]showvalue = False[/inlinecode], …

Software Development first-post python
Member Avatar for bumsfeld
0
80
Member Avatar for roby4eldiablo

Hi all, someone can tell me where i can find an example of this kind of signal handler? i try to use fenv.h but on cygwin doesn't work (cygwin don't have it) and this program must run on cygwin and on solaris. i try also with SIGFPE, but when i …

Software Development c
Member Avatar for roby4eldiablo
0
98
Member Avatar for Duki

Hey guys, I'm stuck again. The program is supposed to get the estimated population after n years using the equation P + (B*P/100)-(D*P/100) and the growth rate using B-D. Here is what I have so far, but I can see I'm going to be getting stuck. How can I set …

Software Development c++
Member Avatar for Duki
0
4K

The End.