132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aladar04

[CODE]/*manimbo_mp5*/ import java.io.*; public class manimbo_mp5{ public static void main (String[]args) throws IOException{ BufferedReader br=new BufferedReader (new InputStreamReader (System.in)); Integer x=8,y=1,heads=0,tails=0; String ht=""; while (x>0){ System.out.print ("Enter toss #" + y + " result: "); ht=br.readLine(); if (ht=="h"){ heads++; } else if (ht=="t"){ tails++; } x--; y++; System.out.println ("Tails: " …

Software Development java
Member Avatar for aladar04
0
104
Member Avatar for Clawsy

Hello, I have to take a snapshot of my screen and send the image to a client using Datagrams. I think my problem is at the client part. The image is null, and I don't know why. Here is the server part. I tried to send 534 byte packets (bigger …

Software Development image java tcp-udp
Member Avatar for Clawsy
0
3K
Member Avatar for Justin12345

This is due in 2 days its supposed to be simple but i just cant get it. Write a program that will print out statistics for a user-specified number of coin tosses. First the user should be asked about the total number of coin tosses possible. For this project, the …

Software Development java
Member Avatar for aladar04
0
504
Member Avatar for Clawsy

I'm am trying to send over socket a very big array - length about 1300000 .... and I use ObjectInputStream and ObjectOutputStream. The problem is when I read the input stream... I get this exception: java.io.StreamCorruptedException: invalid type code: FF at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1356) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) at objectThread.run(objectThread.java:27) [CODE] //ois is the …

Software Development java
Member Avatar for Clawsy
0
1K
Member Avatar for Excizted

Hello. I'm wondering if I'm duplicating this class by doing the following. [CODE]SimpleClass *point; SimpleClass sc; sc.somevalue = something; point = new SimpleClass(sc);[/CODE] This post is quite tiny, I'm not being lazy, but I couldn't think of anything else needed for this question. Thanks :)

Software Development c++
Member Avatar for mrnutty
0
96
Member Avatar for atrusmre

I have a program that I'm writing that connects to a database, calls a new form , and dynamicly creates controls (textbox, and label) for each item so that they can be edited. The problem I'm having, is I don't know how to pass these values back to the main …

Software Development
Member Avatar for thikkamsantosh
0
98
Member Avatar for beforetheyknew

Hi guys, I'm still quite new to programming and have an exam soon where we have to hand-write programs(no IDE). Never done this before, just you guys all give fantastic guidance, i wanted to see what you all thought. Any general advice would be appreciated! Theres some small things im …

Software Development ide java
Member Avatar for Phaelax
0
118
Member Avatar for Ash_Pokemaster

Hello pals. We're having a project to make a Backup and Restore program in Python. As we think that making a GUI is of course very important, we started using Tkinter after initially trying wxPython which was kind of difficult given the time we had. Either way, we made a …

Software Development gui image python tkinter
Member Avatar for Ash_Pokemaster
0
2K
Member Avatar for ShadowScripter

Hey, I've been working on a project for a while, and had some difficulties at the beginning with the d3dx9.h and lib files, then after some threading here I got the help I needed, or so I thought. It worked well until I decided to make a new project, using …

Software Development c++ visual-studio
Member Avatar for Excizted
0
934
Member Avatar for eduard77

Hello I am rather new in visual c++ and I learned to code but I didn't find in any book how to ad an interface to my program. So please tell give me some references where from I could learn how to add a proper interface in visual c++. Thanks

Software Development c++ microsoft
Member Avatar for Excizted
0
163
Member Avatar for tqmd1

Dear Programmers What are the possible alternative codes against following codes [CODE]If Len(PasswordTextBox.Text) > 0 And Len(PasswordTextBox.Text) > 0 Then MsgBox("ok", MsgBoxStyle.Information) else MsgBox("Enter User Name and Password", MsgBoxStyle.Information) End if [/CODE]

Software Development vb.net
Member Avatar for Stevoni
0
101
Member Avatar for shock1

Write the definition of a function printGrade , which has a char parameter and returns nothing. The function prints on a line by itself the message string Grade: followed by the char parameter (printed as a character ) to standard output . Don't forget to put a new line character …

Software Development c++
Member Avatar for Narue
0
340
Member Avatar for overpower8

Hello. I have a program that reads from file, modifies its content and saves. But there's a problem - when i write only one block of data, two of them are been written! [CODE]class person { ... }; ... person User; fstream File; File.open("file.dtb", ios::in|ios::out|ios::binary); // Adding 1 record: File.seekp(number, …

Software Development c++ ios
Member Avatar for overpower8
0
108
Member Avatar for blue3hree

please answer me.show why my code does not loop and it repeats question number 1. [CODE] #include <stdio.h> #include <stdlib.h> #include <time.h> /*prints the ASCII art for "FAIL"*/ void ascii_fail(void) { printf(" /%c__%c /%c %c\n", 92,92,92,92); printf(" /:/ _/_ /::%c %c ___ \n", 92,92); printf(" /:/ /%c__%c /:/%c:%c %c /%c__%c\n", …

Software Development c
Member Avatar for zalezog
0
227
Member Avatar for punter999

i want to create an editor GUI in wxpython with all the menu bar options and other things.kindly let me know if something similar has already been done or not if yes please let me know some of the dummy example so i can get an idea how to start …

Software Development gui python
Member Avatar for vegaseat
0
127
Member Avatar for babaidebnath

Hello guyz, Presently I am having a problem with printing in c#. I have a pre printed bill, and I need to print values into some specific points of that bill. Any suggestion ?

Software Development c c# c++
Member Avatar for MxDev
0
135
Member Avatar for MxDev

Hi guys, how to make a button the default action for a textBox specially when Enter button hited??? Thanks [EL-Prince]

Software Development
Member Avatar for MxDev
0
73
Member Avatar for yup790

can someone suggest a good [B]free[/B] online tutorial for c# thx:)

Software Development
Member Avatar for MxDev
0
104
Member Avatar for scarface9477

I am starting out in programming and have little knowledge of Java. I use linux and after a while got sick of using gedit and javac to learn. So I now use eclipse. I am trying to get input from a text file and when I write the code I …

Software Development java
Member Avatar for scarface9477
0
2K
Member Avatar for randomkid73

Hello, I have done some research and keep getting results to hide the console window. What I would like to do is to hide the output of a command. For example, I have a segment that renews the PC's IP connection, so I get a long stream of the new …

Software Development c++ dns file-stream
Member Avatar for marco93
0
111
Member Avatar for localp

I need to OCR a image and get the text of it .. i wanted to do this in java but , i found out that its hard to implement it that way. so i am trying to do this in C++ .. is there any possibility to do this …

Software Development c++ image
Member Avatar for localp
0
38
Member Avatar for k2k

hi, please assume it is already connected to the access database( it is connected) since i could get all the data out and put them onto a JTable. What is wrong now ... is that i am trying to insert new data to the access db and i got [code] …

Software Development java java-swing microsoft-access
Member Avatar for javaAddict
0
131
Member Avatar for sunshine24

Hi This my first c programme.It asks 5 objective questions and displays the result at the end. [B]But when i compile it and run, it asks only for variables A,C and E .It doesn't ask for the inputs to question no. 2 and 4.It only displays these questions and skip …

Software Development c objective-c
Member Avatar for sunshine24
0
163
Member Avatar for Emmaliu

Hi everyone, I'm new here and I'm new to C# program. I want to create a user name and passward verify windows application. I did some research, and finally get to connect to the database. Now I want to display the whole table which stores all the information. I know …

Software Development c# display
Member Avatar for kanchanraaj
0
1K
Member Avatar for nguyen duy khoi

this is the small game using mouse device, I write it in turbo C++, it is a example about using asembler in Turbo C++, but when I write it in Visual C++ 6.0, It haves many error, I think it is a big difficult. Could you help me solve this …

Software Development c++
Member Avatar for ankurnit
0
221
Member Avatar for instinctfx

Hi Im writing an application that uses the Microsoft Tablet PC api's When im trying to set the FACTOID for an ink recogniser, im getting an OLE Error that i cant seem to find a plausable explanation for The code is this [code] vPicture := (Components[i] as TInkPicture); case vPicture.Tag …

Software Development api pascal tablet
0
74
Member Avatar for bords

hello everyone.... can you please give me a code on a registration form... what i mean is that how to write a code in which you are going to design like a registration form then if you are going to fill-in the info, it will be stored to a database... …

Software Development database-design
Member Avatar for avirag
0
122
Member Avatar for NargalaX

Hey, I'm making a math bot, and when you type in your equation it converts the numbers to doubles right away. Except, when doing any equation with a decimal, the decimal is ignored. Example 2 + 2 = 4 (No decimals, it works fine.) 2.2 + 2 = 24 (Decimal …

Software Development mathematics
Member Avatar for NargalaX
0
287
Member Avatar for ShortYute

I am trying to search a file (I have searched the forums and have found some treads but they do not really help me to do what I want) directly using fseek and strcmp but its buggy and gives off by one errors and such. The reason I did not …

Software Development c
Member Avatar for WaltP
0
129
Member Avatar for johndoe444

Hi, Is there a way to set stderr such that it does not print on screen rather on file. I have spawned a couple of threads and they are dumping all the error messages on the screen like a maniac and giving me a headache. Some help would be highly …

Software Development c
Member Avatar for WaltP
0
79
Member Avatar for redZERO

Hi guys I am trying to build a program which scans data from a text file, but I keep getting an error when trying to compile it. The code [CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.Scanner; import java.io.*; class anything extends JFrame { public anything() { File stuff …

Software Development java java-swing
Member Avatar for javalearn
0
587
Member Avatar for compovet

I want to save the page setup dialog setting because I want the user to choose the setting one time and this setting will be constant for the application I searched for this but I didn't find any thing or I want to set the page setup dialog setting by …

Software Development
Member Avatar for compovet
0
221
Member Avatar for Chopinson

I'm trying to get on a professor's research project. He told me that at my level the best way to get involved is to help program this visual simulation thing for him. So I read through the first 11 chapters (Part 1 "the C# language") of Professional C# 3e by …

Software Development
Member Avatar for Chopinson
0
134
Member Avatar for finalist

I have a symmetrical matrix [B]A[/B] 8 x 8. First I need to find matrix [B]B[/B] = [B]A[/B][sup]T[/sup]*[B]A[/B]; Next I need to inverse B and find [B]C[/B] = [B]B[/B][sup]-1[/sup]; Help please !

Software Development pascal
Member Avatar for finalist
0
1K
Member Avatar for timtianchen

I am coding a program that requires a dynamic 2-d matrix. it is a finite element analysis program using stiffness method to give you some context. Can someone suggest a good free library for matrix operations? Thanks!

Software Development c++
Member Avatar for timtianchen
0
80
Member Avatar for AndreRet

Just to say hi to all the .NET helpers out there. I have made the dreaded (but forced) change from vb6 to .NET. I will rely a lot on your expertise in this forum, and thanks to those that will be prepared to sort all my questions. I have been …

Software Development asp.net vb.net visual-basic
Member Avatar for debasisdas
0
90
Member Avatar for samsons17

i wonder what doesld i use & and * means.....and how could i use both of them??

Software Development c++
Member Avatar for mrnutty
0
81
Member Avatar for Silvershaft

Is there any way to hide the command line window where the program runs on? I got a little program and I want to it to go hidden if user writes hide. Is there any way?

Software Development c++
Member Avatar for Excizted
0
193
Member Avatar for ASHAR VIRK

I am a new student in this field tell me tips for getting skill in this field

Software Development c++
Member Avatar for Excizted
0
78
Member Avatar for GDICommander

Hi, everyone! I'm having trouble with a linker error (I'm using Visual Studio 2008) and I would like to have some tips on solving this problem: This is my code: Bill.cpp [CODE] #include "Bill.h" #include "../Exceptions/InvalidArgumentException.h" Bill::Bill() { } Bill::Bill(string shopName) { if (shopName == "") { throw(InvalidArgumentException("The shop name …

Software Development c++ seo visual-studio
Member Avatar for GDICommander
0
170
Member Avatar for CppBuilder2006

is there any GDI or GDI+ function or method that copies part of client area? something like this: [CODE] char p[100000]; copy(hdc, p, rectangle(10,10,100,100)); paste(hdc, p, x, y); [/CODE]

Software Development c++
Member Avatar for kevintse
0
126
Member Avatar for Progr4mmer

I have an application to make a server and clients to read/ send text to it but i want a program i can run from a remote computer that you enter the ip and port and it crashes the server

Software Development vb.net
Member Avatar for Progr4mmer
0
38
Member Avatar for NicAx64

we have already known that there should be some initialization to work with the stl. To use that library. There are objects that there should be initialized before entering main. I think that I receive this run time SIGSEG due to that. So any idea ? I have use a …

Software Development assembly c++
Member Avatar for NicAx64
0
203
Member Avatar for KaZu88

This is my program, it causes memoryleaks. I show only a small part where the problem exist. Starts with the header then the cpp. ParticipatorRegister.h [CODE] #ifndef PARTICIPATORREGISTER_H #define PARTICIPATORREGISTER_H #include "Participator.h" class ParticipatorRegister{ private: Participator **arr; int inc, init, elem; void initiate(); //void expand(); public: ParticipatorRegister(); ~ParticipatorRegister(); //void save(ofstream&); …

Software Development c++
Member Avatar for Lerner
0
167
Member Avatar for Silvershaft

How do I see what key user presses I suppose I have to do it with winapi? I want my program to write to text file what key user presses, like when he presses M it writes M to text file. I looked and I found one function but it …

Software Development c++
Member Avatar for Silvershaft
0
105
Member Avatar for لولا

Hi everyone ,:) [B]I need a function in c++ to calculat the age of a user, by asking the user to enter his birthday.[/B] :S

Software Development c++
Member Avatar for siddhant3s
0
77
Member Avatar for rahul8590

i am currently working on creating mathematical models for my research and want a non linear equation solver library which i could integrate with my program . i searched the web and found op++ which wasnt a free program .

Software Development c++
Member Avatar for sinnerFA
0
218
Member Avatar for Ulukay

In a textbox i can see when RETURN is pressed , but when i check on the TAB key it does not work Help me Plzzz. [CODE] Dim handler As KeyEventHandler Private Sub Orderinvoer_Load(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles MyBase.Load AddHandler werkorderTB.KeyDown, handler end sub Private Sub werkorder_KeyDown(ByVal …

Software Development vb.net
Member Avatar for LennieKuah
0
140
Member Avatar for muzzy1000

Hi I need to reference a .net .dll file at runtime of my program. Does anyone know the code to do it?

Software Development vb.net
Member Avatar for sknake
0
71
Member Avatar for rodrigodsp

Hi all, I'm using XSL-FO and Apache FOP to generate PDF documents from XML documents. I managed to transform the XML into PDF with 1 page per sheet, but I also would like to get PDFs with 2 and 4 pages per sheet. Does anyone have any idea how I …

Software Development apache pdf xml
Member Avatar for sinnerFA
0
499

The End.