132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mhm_ra

i write a program which write a value of a pointer into file using "out" now i need to read this data from the file but when i read it and print it on the screen a minus value appear. can you help me by tell9ing me how to read …

Software Development c++
Member Avatar for peter_budo
0
202
Member Avatar for har58

Exception in thread "AWT-EventQueue-1" java.security.AccessControlException: acc ess denied (java.util.PropertyPermission oracle.jserver.version read) hi, i m building an online examination application. The code is getting complied .but it throws an exception.Below i m pasting d code as well as exception.plz help me. It is a simple program for login. It matches d …

Software Development java java-swing oracle
Member Avatar for har58
0
946
Member Avatar for glyvery.happy

[CODE] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace yeah { class Program { static void Main(string[] args) { string name; System.Console.WriteLine("What is your name:"); name = System.Console.ReadLine(); System.Console.WriteLine("the name is " + name + "!!!!!!"); System.Console.Read(); System.Console.Clear(); System.Console.WriteLine("wait there's more! "); System.Console.Read(); System.Console.WriteLine("Simple Test "); System.Console.Read(); System.Console.Clear(); int …

Software Development
Member Avatar for Lusiphur
0
177
Member Avatar for raniajay

Hi, I am just a starter in C++,i am having some doubts in solveing some C++ programing problems... I will be thankful if u help me solving it.. Queries r: write prog 2 find the square root of a number using repeated iteration technique. WAP to accept n +ve integer …

Software Development c++
Member Avatar for arashyjrt
0
137
Member Avatar for sourabhtripathi

[CODE] int a[10]={3,45,6,78,89,334,4,77,54,60}; int *p=a; [/CODE] what will *p++ do ? as ++ has more priority than * therefore ++ will be executed fisrt ? but its postincrement so it will happen after change of line or statement. so will it increment the pointer or increment the value hold by …

Software Development c
Member Avatar for jaaz....
0
306
Member Avatar for Andreas5

Hello, i got in trouble once again, this time in excersise 14-4 in Accelerated C++. When i compile i get an error message that you probably know. [QUOTE]fatal error LNK1169: one or more multiply defined symbols found[/QUOTE] Can anyone see what i am missing here? Edit: This is all in …

Software Development c++
Member Avatar for Andreas5
0
115
Member Avatar for emclondon

hello guys, I am trying to add an image to java panel. I have tried Paint, ImageIcon and every other sort of methods and failed. can someone explain me how do I add an image onto a panel? thanks for your time. cheers!

Software Development image java
Member Avatar for emclondon
0
570
Member Avatar for Anteater7171

I put in a partially transparent PNG image in Tkinter and all I get is what is in the attached image. How do I make the dark triangle on the right clear? (like it's supposed to be) This is python 2.6 on Windows 7, btw.

Software Development python tkinter
Member Avatar for ultimatebuster
0
74
Member Avatar for SoulMazer

Hi, I've just finished writing a Pong game with Python and pygame and thought it would be cool to make it multiplayer over the net with a friend. So, I changed my old asynchat-based instant messaging server into a server for this multiplayer Pong game. The only bad thing about …

Software Development python
Member Avatar for ultimatebuster
0
140
Member Avatar for ultimatebuster

I'm kind of confused over the iterator object/concept and the yield statement and its usage. According to my understanding, all the python sequence are iterators, as they don't need the classic [icode=java]for (int i=0; i<list.length; i++)[/icode] to iterate through lists/arrays. Am I correct over this? Am I missing anything? Also …

Software Development python
Member Avatar for ultimatebuster
0
101
Member Avatar for tldorr

I need some assistance with my calculator code. I have developed a fully funcitoning mortgage calculator up to this point. I have one small change that I want to do. Right now this is considered an applet and I want it to be considered an application. It is my understanding …

Software Development java java-swing
Member Avatar for NormR1
0
403
Member Avatar for preethi_ga

Hello, In .NET im using the backend as SQL Server. but when i write codings for all insert,update and delete in .NET and run the form, the error it shows like "Oledb exception was unhandled by the user" and error in SQL query. the codings are....follows.. [code] imports system imports …

Software Development vb.net
Member Avatar for olobo
0
7K
Member Avatar for maieutiquer

I have 3 text fields and a button, and when a user presses the button, I would like to check if he has inserted integer values in the first two of them. If yes, then the sum of both of them is shown in the third one. If not, then …

Software Development java
Member Avatar for maieutiquer
0
116
Member Avatar for enkidu75

The point is to read a file and then display the information from a 2D array. Then find the highest value in each column and divide all the numbers in each column by the high value for that column. Then display the quotients (which I put back into the original …

Software Development c++ file-system
Member Avatar for StuXYZ
0
154
Member Avatar for the reporter

i have to filter the user input in the comboxbox under my "search tab" eg. if the user were to type "y", "YAHOO" or any words related to "y" will appear on the filter list and allow the user to select. anyway my combobox values are taken from text file …

Software Development apple finance java java-jsp java-swing
Member Avatar for Darryl.Burke
0
1,000
Member Avatar for wolfeater017

Im having troubles learning how to make an executable so can someone show me what Im doing wrong [import time from cx_Freeze import setup, Executable setup( name = "hello", version = "0.1", description = "the typical 'Hello, world!' script", executables = [Executable("hello.py")]) [GO AHEAD AND IGNORE THE REST OF THE …

Software Development python
Member Avatar for wolfeater017
0
1K
Member Avatar for ekofo

Hi clecer people! I am new can i have a little help here please. I wanted to mcuh the name and password of employee, entering and exiting the building ( it works but not completely) The task Implement a system that restricts which members of staff that have access to …

Software Development gui java java-swing
Member Avatar for NormR1
0
120
Member Avatar for dupowdis

Thanks for the help in advance. So basically I have some Strings (lets call these Strings "Numbers") that looks like this. [CODE] Numbers1 = " 3.74343E-01 4.82245E-01 1.95635E-01 -1.05565E-01 3.81702E-02" Numbers2 = " 2.23965E-01 1.29925E-01 4.08791E-02 -4.21790E-02 -1.21410E-01" Numbers3 = " -2.73593E-01 8.63407E-02 -1.37682E-01 -3.01382E-01 -1.51439E-01" [/CODE] My program is …

Software Development java
Member Avatar for NormR1
0
95
Member Avatar for benshrupendra

Hello All Friends, I found an error on above mention code (Found error on red/Bold code). [CODE] namespace wyUpdate { using namespace System; using namespace System::Collections::Generic; using namespace System::IO; using namespace System::Runtime::InteropServices; using namespace System::Threading; using namespace Microsoft::Win32::SafeHandles; public ref class PipeServer { public: [StructLayoutAttribute(LayoutKind::Sequential)] value class SECURITY_DESCRIPTOR { public: …

Software Development c++
Member Avatar for jonsca
0
146
Member Avatar for SHARKASI

i've just 3 days to give the full program to the doctor but i've a problem and i'm tired to find this problem could anyone help me to fix it please this program is currency converter the code is here: import java.awt.*; import javax.swing.*; import java.awt.event.*; import javax.swing.event.*; import javax.swing.Icon; …

Software Development java java-jsp java-swing
Member Avatar for jon.kiparsky
0
212
Member Avatar for War_Archer

I wrote a code with fork() but I keep on getting the problem undefined reference to fork(). I know my code works 100% because I run it on my school computer and it works. How do I fix this problem? I use code blocks IDE with GCC compiler and GDB …

Software Development c ide
Member Avatar for War_Archer
0
2K
Member Avatar for abhijeet kamble

hey, iam working on c++ and i need help . will u plz tel me how do i insert time to my system.... i tried with time.h and bios.h but it doesent work .. also how do i execute a batch file of .exe from c++.

Software Development c++
Member Avatar for Ancient Dragon
0
164
Member Avatar for bonett09

So I have this question: Write a program that creates a constant MULTIPLE of type int. Set MULTIPLE to 3. Output the times table between 1 and 10 for MULTIPLE. Modify the program to output the times table of 7. And so far I've written this: //5. - Homework class …

Software Development java
Member Avatar for jon.kiparsky
0
121
Member Avatar for Jacobah

Hi I try to change images and location. first I define CStatic array (m_x) when i try to show him: m_x[0].SetBitmap(hBitmap); I have error: "expression must have class type" (on m_x[0]) what is my mistake???? [CODE] CStatic *m_x[2]; // = {&m_1, &m_2}; m_x[0]= &m_1; //Row 1 CString ReqBMP(Letter[m_A1]); hBitmap = …

Software Development c++
Member Avatar for Jacobah
0
86
Member Avatar for Yaserk88

Hey does anyone know if there is an error function in the math library of C++? I think there is so, but I just can't figure out how to use it.

Software Development c++
Member Avatar for tesuji
0
631
Member Avatar for help1

#include <stdio.h> #include <conio.h> int HM=67.50, MS=87.00, Ms=92.75 ,a,b,c; float oHM, oMS, oMs, T; void main() { clrscr; oHM=HM*a; oMS=MS*b; oMs=Ms*c; T= oHM+oMS+oMs; printf("Hi! May I take your Order?");; printf("Here's our Menu"); printf("Happy Meal for 67.50, McSavers1 for 87.00, McSavers2 for 92.75"); printf("How many Happy Meal do you want?"); scanf("%d, …

Software Development c++
Member Avatar for sfuo
0
109
Member Avatar for prashanth s j

Hi all, I wanted to write the following line to the file. [code] sys.stdout.write("123: The metro polis\n") [/code] But the line that was written is: [code] sys.stdout.write("100: The metro polis ") [/code] How do I get the \n to be written in the text form to the? file(ie it should …

Software Development python
Member Avatar for TrustyTony
0
102
Member Avatar for Maria5683

I'm using the Scanner class and need help in setting up get and set methods for where the program asks the user to enter a first name and a last name as String type.( 2 methods, 1 for first, 1 for last) I need to know how to store the …

Software Development display java
Member Avatar for NormR1
0
186
Member Avatar for Tommymac501

When I read a record, no mater what switch I use in the Open, large numbers are converted to scientific notation. These numbers are for mailing, so it's a combination of a zip, plus4, delivery point, etc. I need to keep the number intact Is there some way to read …

Software Development python
Member Avatar for Tommymac501
0
2K
Member Avatar for kerp

Hi! I've recently started to make some programs with the windows API using C++. The problem I'm having right now is that I've created an application, and now I want to share it with the world (or at least some selected few). I've coded the program on my laptop win …

Software Development api c++ visual-studio windows-api
Member Avatar for kerp
0
427
Member Avatar for neil_mahaseth

There are N coins kept on the table, numbered from 0 to N - 1. Initally, each coin is kept tails up. You have to perform two types of operations : 1) Flip all coins numbered between A and B. This is represented by the command "0 A B" 2) …

Software Development c++
Member Avatar for neil_mahaseth
0
144
Member Avatar for linkingeek

Here is a code for writing a text file from console but i have problem regarding its portability. [CODE]import java.io.*; class KtoD { public static void main(String args[]) throws IOException { String str; FileWriter fw; BufferedReader br = new BufferedReader( new InputStreamReader(System.in)); try { fw = new FileWriter("test.txt"); } catch(IOException …

Software Development java open-source
Member Avatar for jon.kiparsky
0
117
Member Avatar for virusisfound

Hello, I have create a program in C# windows application & I want to chage the color of datagrid view. Like backcolor,fieldcolor

Software Development
Member Avatar for ddanbe
0
335
Member Avatar for jazzvibes

Hi Daniwebers I'm trying install pygame into my Python 2.6 installation. I'm running Windows 7 64bit. I had everything working before, but I was trying to install pygame into a into a Python 3.1 installation and i kept getting an error, so I thought i'd uninstall everything and try again. …

Software Development python
Member Avatar for jazzvibes
0
411
Member Avatar for Dendei

hey guys, emm can someone explain fast for me how to get to the programming state where u get a window with some options on the side and can then switch to code i cant remeber how to get there :) hope u understand thx for answers :)

Software Development c c# c++
Member Avatar for n.sehrawqat1987
0
94
Member Avatar for jan1024188

I have a problem....I wrote program which makes computer beep, but there is no beep when executing a program. I included [B]windows.h[/B] header, defined [B]speed[/B] and wrote following line [CODE]Beep(2750, speed);[/CODE] Why there is no beep?

Software Development c++
Member Avatar for +_+man
0
394
Member Avatar for localp

I have an opensouce project, that is been used c++ as its language. Now i need to use visual studio 2008, as the IDE in making some changes in the source. How do i import this project to my VS2008 environment? is there any converter i can use that could …

Software Development c++ ide visual-studio
Member Avatar for localp
0
66
Member Avatar for ivareske

Hi, I am writing a program which is using taglib to read audio tags. When calling the taglib dll, sometimes a std::cerr message is generated. I want to catch these messages and save them in a log. I have tried std::ofstream ostr("log.txt"); //or std::ostringstream ostr; std::streambuf * old_buffer = std::cerr.rdbuf(); …

Software Development audio c++
Member Avatar for vijayan121
0
173
Member Avatar for AngelicOne

I have a button for edit and delete. I include editbutton.enabled=false in page load when dataset if dataset is empty [CODE] SqlDataAdapter da = new SqlDataAdapter("select * from Book", con); da.Fill(ds); if (ds.Tables[0].Rows.Count > 0) { dataGridView1.DataSource = ds.Tables[0]; } else { button2.Enabled = false; }[/CODE] Now, when the user …

Software Development dataset
Member Avatar for AngelicOne
0
279
Member Avatar for prem2

hi , I am new to java.Can anyone what is the different between the following code for the java String Declaration. [code] import java.io.*; import java.util.*; class Sample1 { public static void main(String args[])throws IOException { String str="First String"; String Str1=new String("Second String"); System.out.println("The variable is "+str); System.out.println("The variable is …

Software Development java
Member Avatar for ~s.o.s~
0
473
Member Avatar for GAME

Hello, I have a void that goes like this [COLOR="Red"]private void Blah(Stream File)[/COLOR] Then When I go to use it I want to use it like this [COLOR="Red"]Blah(path)[/COLOR] [COLOR="Red"]The path represents a file.name[/COLOR]. It is real complicated. I mean over a 1000 lines of code for the [COLOR="red"]Blah(Stream File)[/COLOR] The …

Software Development file-stream visual-studio
Member Avatar for Geekitygeek
0
121
Member Avatar for smoothe19

How do i write to a text file [B]WITHOUT[/B] deleting the current information in it? basically write on the next available line.

Software Development java
Member Avatar for localp
0
79
Member Avatar for Razorfox
Member Avatar for jonsca
0
64
Member Avatar for Jay V.

I am at my wits end with this code. I've been working on it for at least 2 weeks and the same error appears. The error, itself, is the incompatible types error. It appears underneath the division symbol. [CODE]// DivideByFive.java - This program determines if a number is divisible by …

Software Development java java-swing
Member Avatar for kashokreddy14
0
151
Member Avatar for makaveli0129

Ok so i have this floppy image that just prints a message now the problem that i am running into is that i have to jump to memory location 0x1000 and then jump back to the original place but have no clue how to do it this is what mbr …

Software Development assembly image
Member Avatar for ko3dm
0
249
Member Avatar for AngelicOne

How to edit the datagridview column if it was populated using a dataset? I would like to edit the column header text and width.

Software Development dataset
Member Avatar for Lusiphur
0
143
Member Avatar for nosson

I'm having trouble dividing two elements of an array.... it seems to work in some instances, but not right now... I have two matrices[row][col] sized and am trying to transpose the elements to a matrix to a vector/array. That all works fine... but when I then try to divide the …

Software Development c
Member Avatar for WaltP
0
171
Member Avatar for sdert

We try to search and remove duplicate files and need the best program for this purpose.

Software Development shell-scripting
Member Avatar for rodriguez19
0
82
Member Avatar for TejaDharma

Hi, I'm unable to change the date format in java. I'm given the code as follow. [CODE] java.util.Date date = new Date(); [/CODE] But it displays like july 17 13:01:43 GT 51:25 2010 But i need only this format july 17 13:01:43 2010 Can u pls help on this?

Software Development java
Member Avatar for TejaDharma
0
92
Member Avatar for Candee89

I'm having the most difficult time trying to word pseudo code for this program i have. When I start to write the p.code it's like i don't know how to word it. I understand its just like translating the language to terms where non programers can understand it. but i've …

Software Development
Member Avatar for Lusiphur
0
278

The End.