132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Griff0527

I am trying to edit my current homework assignment to include a loop that lets the user repeat the computation for new values until the user says they want to end the program. I was given a hint to use integer division and the % operator to implement this function. …

Software Development c++ html-css
Member Avatar for NathanOliver
0
279
Member Avatar for minihannah

For a uni project I've been writing a program to simulate video feedback. So basically I have 2D arrays representing the 'screen' and the 'camera' and I'm copying a portion of the screen to the camera then putting the resulting 'image' back on the screen. I'm creating really basic fractals …

Software Development c++
Member Avatar for minihannah
0
1K
Member Avatar for Dcurvez

hi all :) I am now working on a calculator that is mimic to windows calculator. I have the whole thing done except for the percent button. Have looked everywhere and cannot seem to find out how to do it! can someone help me here?? Here is a peek at …

Software Development vb.net
Member Avatar for Dcurvez
0
122
Member Avatar for Purnima12

[I]Now, I may have bitten off a bit more than I can chew with this promised program for my pops, but I am confident, with time, I can puzzle out a solution with some help! Background Info: My father is a doctor responsible for monthly schedules, usually penciled painstakingly on …

Software Development puzzle python
Member Avatar for Purnima12
0
2K
Member Avatar for bruno386

Hi Guys, Another quick question which I cannot find the solution for......... I need to load a directory into an array and then delete any file which has the name of an integer. for example 1.jpg, 500.jpg...these files will be deleted. I already implemented a similar function elsewhere in my …

Software Development
Member Avatar for kdion1024
0
278
Member Avatar for gabec94

Hi, I just finished up AP Computer Science a few weeks ago and decided to write an app that allows me to quiz myself with vocab words and definitions, it works fine while I'm running it in IDE, but when I make it a JAR it refuses to open (I'm …

Software Development gui ide java java-netbeans
Member Avatar for gabec94
0
156
Member Avatar for SoulMazer

Hi, I have a very simple problem yet I can't find out how to do it for the life of me. I am creating a simple CGI script with Python and part of it needs a HTML form. This is what I have so far (excludes imports, etc): [code=python]font_size = …

Software Development html-css python
Member Avatar for SoulMazer
0
196
Member Avatar for btml

hi :) i managed to compile it but when i try it - it scream Segmentation-Fault. i have no idea where it happens exactly . only know that it happen :( can someone help me ? thanks in advance the program try to implement some kind of hash table : …

Software Development c
Member Avatar for Banfa
0
173
Member Avatar for fellixombc

Alright, my server only loops 3 times (recv's two strings that have been sent) and then freezes when there is no more information being recv'd. Note, this is happening in the listen() function. Main.cpp [CODE]/* * File: main.cpp * Author: fellixombc * * Created on May 23, 2010, 2:14 PM …

Software Development c c# c++ client-server
Member Avatar for fellixombc
0
1K
Member Avatar for omGac0W

Hi I'm REALLY new at C and am getting this "constant out of range in comparison error". The line with the error is this: [CODE]printf("Would you like you enter additional sets of data? (yes/no)"); scanf("%c", &answer); while( answer == 'yes'); <------ this line [/CODE] I haven't done character strings in …

Software Development c
Member Avatar for Banfa
0
1K
Member Avatar for kingnebula

Hello, I am trying to make a small utility that will search a process's memory for a specified value. I am currently able to both read and write memory values. But I'm not sure how I would go about scanning the memory for a value and getting it's base address. …

Software Development c c# c++
Member Avatar for kingnebula
0
210
Member Avatar for nshh

Hi, Please answer the below questions....thanks 1) How can I free the memory from main(). But the memory was allocated in function a(). void a() { char *b=malloc(10); } main() { a(); } 2) How can I return the local pointer variable? main() { char *a=result(); } char * result() …

Software Development c c# c++
Member Avatar for Radical Edward
0
133
Member Avatar for mitch9654

Hi, I am trying to run an applet on a website, but when trying to access a file to write (reading works like a charm), do some wrapping: [CODE] try { FileOutputStream fos = new FileOutputStream("http://mitch9654.zymichost.com/songs.DAT"); OutputStreamWriter osw = new OutputStreamWriter(fos); BufferedWriter bw = new BufferedWriter(osw); } catch (FileNotFoundException e) …

Software Development java
Member Avatar for mitch9654
0
922
Member Avatar for The_Prince

Hello fellow coders! This is my first time and post on forum but hope to stay here seems like a good friendly place Anyway the following code is to count the number of digits on user input. This includes decimal numbers. So far the code does what it does 1. …

Software Development c++
Member Avatar for NathanOliver
0
166
Member Avatar for circusfreak

Creating a program to read a text file full of words in alphabetical order. I then have to read it into a Linked List. The linked list should output total number of words, which I have managed to do. After this it needs to calculate the min and max depth …

Software Development data-structure java linked-list
Member Avatar for NormR1
0
139
Member Avatar for Duki

I have a datagrid showing my items - I want to modify a field in the database when the user clicks a button. So if row 3 is selected, I want to modify "SomeField" in Row3 to True. Is there an easy way to accomplish that?

Software Development sql
Member Avatar for Duki
0
94
Member Avatar for GAME

Is there anyway, I can have my richtextbox display this character("•") with it showing the box like shape(when the richtextbox doesnt know how to read the character)?

Software Development
Member Avatar for finito
0
87
Member Avatar for fpsasm

Hello, I am using strncpy to copy the first line of a multi-line buffer. I have successfully found the amount of characters to the end of the first line, and I have performed a strncpy to copy the first line of the buffer to a char *. However, some of …

Software Development c
Member Avatar for fpsasm
0
171
Member Avatar for dansnyderECE

I want to represent 2^32 elements in a vector. In reality, I allocate about 500,000 elements and then everything else is there to be used by my program (for storage of data). So I have to have say.. elements: [0-999999] = 0 [100000-599999] = info [600000 +] = 0 <-really …

Software Development c++ storage
Member Avatar for dansnyderECE
0
166
Member Avatar for BLKelsey

Hello all, I'm still new at C++ and I'm almost through with this assignment. The thing I'm trying to do it have it repeat the hangmanMenu (which are switch statements) until this user chooses to exit, in which the program will exit. Can I get some ideas on how to …

Software Development c++
Member Avatar for mrnutty
0
132
Member Avatar for Patplays852

Hello, I've made a Jeopardy game using VS2010 and I mistakenly made it as a .NET 4.0 project. I am wondering if there is any easy way to convert the project into a .NET 2.0 project so more people will be able to use the program. [URL="https://sourceforge.net/projects/ezjeopardy/"]https://sourceforge.net/projects/ezjeopardy/[/URL]

Software Development vb.net
Member Avatar for rohan_tahil
0
244
Member Avatar for m.a.u.

Greetings, I want to develop a program to check if my computer dowloads any file and after completion of the download it should inform me. Is there any .dll file method or any thing you can tell me to use or to follow. What should I do for this? Thanks

Software Development
0
69
Member Avatar for jinfiesto

Thus far, installing and getting Python 2.6 running properly on x64 Windows 7 has managed to be a fat pain in the butt. Latest in my saga of silliness, is that the PyDoc server doesn't run properly. Initially, I was getting "pydoc is not recognized as an internal or blah …

Software Development python
Member Avatar for jinfiesto
0
192
Member Avatar for ryan461

I've got this exercise from a book that wants me to program two rolling dice, add the value of the dice to together and basically track each time a number is rolled. So ive got an array with 11 spots for the numbers 2 - 12. Whats not working in …

Software Development c
Member Avatar for ryan461
0
111
Member Avatar for santosh5471

I wrote an application in VB6. While testing I want it to run only when a pen drive with specific VOLUME SERIAL NUMBER is attached. Can any body help me in finding out the volume serial number attached to the system. Regards

Software Development visual-basic
Member Avatar for santosh5471
0
570
Member Avatar for Umar Ali

Hello Guys I need help with adding new row in a JTable. I have created the JTable using Netbeans IDE under Swing Controls. Then I removed all the columns, so that I would add them manually. Now, the function GetFlightInfo() returns an ArrayList with n numbers of rows with 6 …

Software Development ide java java-swing
Member Avatar for Umar Ali
0
170
Member Avatar for kelokely

I have a series of files similar to that 1A2B_A.txt, 1A2B_2C.txt, 1A2B_DF.txt, 1B23_D.txt, 1B23_B.txt, 1B23_25.txt, and many more I want to combine each three files starting with the same four code before the "_" Thanks in advance

Software Development python
Member Avatar for TrustyTony
0
95
Member Avatar for haxin

hi..., im having set of points... i need to form a cluster of those points.... i will get another set of points ... and i have to check whether those set of points lies in that cluster or not. please help me how to cluster points i have.... thanks in …

Software Development java
Member Avatar for kivanc
0
298
Member Avatar for sbedford

Hi I am trying to create a delphi program to autoinstall other multiple utilities such as adobe reader, winamp etc. I am firstly wondering how to execute an external exe file. and also, is there a way to pass mouse clicks through delphi to this external program? Thanks Sean Bedford

Software Development adobe delphi pascal
Member Avatar for david Booch
0
324
Member Avatar for mick3339

I am trying to implement an expert system in C. I have written each rule in the expert system as a function. However, I want my system to be more flexible and can process these rules from an external file specified at run time rather than hard-coded. This will provide …

Software Development c
Member Avatar for gusano79
0
720
Member Avatar for Duki

Hey Guys, I have a tabpage on my form, and I want to populate it according to which fields are set in a database. For example, I want tab#1 to list database fields of all items that have a particular field set to True. I want tab#2 to list the …

Software Development
Member Avatar for Duki
0
221
Member Avatar for xGrimReaperx

Hello, I have a homework to do and I am sitting on it already 7 days and I cannot find out how to make graphics like : using (Graphics g = this.CreateGraphics() g.FillEllipse(Brushes.DarkGray, new Rectangle(45, 65, 200, 100)); g.FillEllipse(Brushes.Silver, new Rectangle(45, 60, 200, 100)); appear after you insert password abc …

Software Development
Member Avatar for nick.crane
0
1K
Member Avatar for adams161

Hi, i got a jeditor pane working to display web links in my program. normal web pages display fine, and I got a hyperlink listener and that is working so they can click links. I use setPage("url as string");. what I'm noticing is if the page has pictures on it, …

Software Development java
Member Avatar for leiger
0
108
Member Avatar for tchiloh

i try to insert data in database, but i have a problem. example: [CODE]double price = 12,55; mySelectQuery = "INSERT INTO order (total)" + "VALUES (" + price+ ");";[/CODE] now price are 2 values because the ",". now C# see 12 and 55. so a get a error that a …

Software Development mssql
Member Avatar for Ketsuekiame
0
5K
Member Avatar for bubacke

hi all, ive got this problem, i think it is an interplay of ifstream and vector... the following code compiles and links without problem, but when i debug i get the message "expression: vector subscript out of range". i know that "out of range" means i am trying to access …

Software Development c++
Member Avatar for bubacke
0
484
Member Avatar for rbhave

Hi, I am having problems with my C++ Programs on Sun Solaris server since I have upgraded my C++ compiler from Sun Forte Developer 7 compiler to Sun Studio 9 C++ complier 5.6. I have my own string class which I had issues but now compiles ok after puting option …

Software Development c++
Member Avatar for psoma74
0
333
Member Avatar for dansnyderECE

I'm trying to copy a string into a character array to be used in .write(). Here is a bit of my code to show you what I mean: [CODE] //input_buffer is a string that is determined during runtime int length = 5; char * buffer = new char [input_buffer.size()]; buffer …

Software Development c++ ios
Member Avatar for dansnyderECE
0
104
Member Avatar for aint

I am working on the folowing code, which basically counts every letter in a given text. I want to store the numbers in letter names: A=1 B=3 and so on... I guess it stores the number underthe name 'letter', but not under the corresponding letter 'A'. It would be great …

Software Development python
Member Avatar for TrustyTony
0
107
Member Avatar for j-green.10

I want to make a loop that will keep asking for an input until 0 is entered into the input. How would I go about doing this

Software Development c++
Member Avatar for jerry emmy
0
87
Member Avatar for VINOD_2553

Hi i just want create a project to school i card i do evry thing in my project but i have no idea to save photo of student on icard simply i want save image in data base or access imege on form to print icard please heme me how …

Software Development image visual-basic
Member Avatar for santosh5471
0
154
Member Avatar for Tyrone.Wilson

I have a program in which I have used a .myFileType file. obviously windows does not recognise the file type and so I have to browse for the file in the application. how do I make it so that windows knows .myFiletype's native application and launch the application on double …

Software Development file-system java
Member Avatar for NormR1
0
145
Member Avatar for rojo821

my java programs are not running. actually they are running but the are invisible. I click on task manager and they show running. I actually click on the screen and you hear an error ding as if you are clicking on the window in a wrong spot. I have windows …

Software Development java window-manager
Member Avatar for stultuske
0
186
Member Avatar for ibrahim72ro

I need to populate the bynarytree with data from a file, an .txt. How can i do it? i need emergency help. thx a lot #include <stdio.h> #include <conio.h> #include <stdlib.h> #include <string.h> struct information { int CNP; char* nume; int varsta; }; struct bynarytreenode { information info; bynarytreenode *left, …

Software Development c++
Member Avatar for daviddoria
0
180
Member Avatar for uttamsarnaik

Hi, I want to block Ctrl + Alt + Delete. I have blocked it now it is not showing task manager. but problem is that after clicking this combination windows shows window security window with shut down, task manager, lock computer etc options. I don't want this window to come …

Software Development window-manager
Member Avatar for Ketsuekiame
0
141
Member Avatar for dansnyderECE

Im trying to open a file, and then read a user defined number of characters from said file. I want to do this using scanf but I can't quite figure out how it works. I can get scanf to work just fine but I can't determine how to specify the …

Software Development c++
Member Avatar for dansnyderECE
0
96
Member Avatar for tskellyfla

Hello again, YOu guys have been such a big help in helping me understand what I'm doing wrong in my programs I'm hoping that I can get help again. I am currently writing a code in C. I'm supposed to be writing a code that has the Fibonacci Series up …

Software Development c
Member Avatar for tesuji
0
106
Member Avatar for gispe

Hi all, i started programming with .NET (i have express edition) and wanted to make a conection to an SQL Server.. the problem is that i cant conect :( previously i had .net 2005 - i started having the issue there - i unistalled it, n installed visual studio 2008. …

Software Development sql vb.net visual-studio
Member Avatar for finito
0
246
Member Avatar for urbangeek

hi guys, can't understand why the answer of the following program is 7? Please explain.. [CODE]#include <stdio.h> #define SQ(x) x*x int main() { int a,b; a=5; b=-SQ(a+2); printf("%d",b); return 0; } [/CODE] thank you..

Software Development c
Member Avatar for urbangeek
0
163
Member Avatar for jerryjerry

hi, Through getter setter methods we can indirectly access private data members of the class as shown in the below code. Then what is the significance of encapsulation in OOPS concept. I am not getting the appropiate answer for that. Can anyone help me? Thanks in advance [CODE] #include<iostream> using …

Software Development c++
Member Avatar for Fbody
0
155
Member Avatar for monaprerita

[code]import java.awt.*; import java.awt.event.*; import java.applet.*; public class AL extends Frame implements WindowListener,ActionListener { TextField text = new TextField(20); Button b; private int numClicks = 0; public static void main(String[] args) { AL myWindow = new AL("My first window"); myWindow.setSize(350,100); myWindow.setVisible(true); } public AL(String title) { super(title); setLayout(new FlowLayout()); addWindowListener(this); …

Software Development java
Member Avatar for NormR1
0
1K

The End.