132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kosham

Hello i need help creting a class using an accessor funciton and a mutator function. Problem objective: i have to desing a general C++ class that will be used to represent "Building" objects, and meets the following criteria: 1. each building object has a number of rooms(integer value) 2. each …

Software Development c++ display objective-c
Member Avatar for Narue
0
168
Member Avatar for bhanu

hi I need a program which is to have file containing structure of employee details like deposit(transaction type) , amount and account num written in C and that file had to be sent to client 1 where it got to print the inf then at server it should contain the …

Software Development c client-server
Member Avatar for bhanu
0
132
Member Avatar for dazw1

can any1 help at all please? i am requried to develop the following number guessing game using VB's winsock. i have no ideas so please help The system that needs to be developed requires · Between 3 and 5 clients playing against each other in a fair manner · two …

Member Avatar for Comatose
0
125
Member Avatar for xxraveteddyxx

i have dev 4.9.9.1...i will create a win 32 console application.. write some code omething basic like... //REMAIN.CPP #include <iostream.h> //necessary for cin and cout commands int main() { int dividend, divisor; //get the dividend and divisor from the user cout << "enter the dividend "; cin >> dividend; cout …

Software Development c++ first-post
Member Avatar for alc6379
0
214
Member Avatar for jmj8@duke.edu

Can someone point me to a how-to to overload the matrix bracket operators in C++? I have a class that I want to iterate over like you would a matrix, calling image[row][col]. Thanks! - Josh

Software Development c++ image
Member Avatar for jmj8@duke.edu
0
77
Member Avatar for 3246251196

take a look at this code: --- void redundant_var() { char user_name[]=""; cout<<"insert name: "; cin>>user_name; swap_name(user_name); //another function not seen } --- now, the following code works fine, but i am SURE there is a away to pass in user_name without the need of storing it in a temporary …

Software Development c++
Member Avatar for 3246251196
0
348
Member Avatar for free_eagle

Hello everyone... One of my friend strongly recommended me this Forum I see here I can get much useful things ... So actually I am new for programming and I just started learining C# language few weeks ago , now I got some understanding in C# ... I really need …

Software Development c++
Member Avatar for free_eagle
0
98
Member Avatar for jingchak

can anyone gimme the C/C++ ebook.......plzzz

Software Development c c# c++
Member Avatar for jingchak
0
165
Member Avatar for crq

hi there. i am new to C++ AND unix. this assignment that i have is really really easy, but the specifics of C++ and getting around in Unix is making it really hard and time consuming. i have a really small program that should be working, but i am getting …

Software Development c++ unix
Member Avatar for 1o0oBhP
0
548
Member Avatar for tigerxx

HI, How can we print an MS Word document from Java ??? We can print .txt files, but while printing .doc, it gives junk chars in print out when we set DocFlavor docFlavor = DocFlavor.INPUT_STREAM.AUTOSENSE; I tried, 1.DocFlavor docFlavor = new DocFlavor("application/msword", "java.io.InputStream"); 2. DocFlavor docFlavor = new DocFlavor("application/vnd.ms-word", "java.io.InputStream"); …

Software Development java
Member Avatar for jwenting
0
248
Member Avatar for babablacksheep

Hello All, I'm very new to C++ and programming in general and am having probelms with an assignment i have been set. I've been using ?Blood dev C++? ( i dont know if this is any good?) I have basically finished the program and am getting one syntax error that …

Software Development c++ first-post
Member Avatar for Narue
0
142
Member Avatar for vamp

Is it possible if anyone could help me out. I asked my friend if he could do this, but pointed me here. I have no computer science knowledge/language. I was trying to get a program that hits a certain key every 4 minutes. Than another for minutes later does the …

Software Development c email
Member Avatar for Narue
0
119
Member Avatar for crypter

Hi all! I am creating a program to encrypt files in Rijndael 64 bit encryption. I am having a problem with one of the aspects i want to include in my code. It sounds very basic maybe but i have tried many things and somehow i can't seem to figure …

Software Development display encryption
Member Avatar for r0ckbaer
0
124
Member Avatar for elfman

Hello, I was programming in Turbo Pascal for many years, accordingly in real mode. Now I tried to change and start develop aplications in Free Pascal, protected mode. However, many things that works in RM doesn't works in PM, indeed. I downloaded a lot of examples, but they didn't help …

Software Development ide pascal
Member Avatar for elfman
0
250
Member Avatar for giedz86

**I use Microsoft Visual Studio .NET 2003's compiler I having trouble trying to create a 10x10 2D array. The user is supposed to give me a starting number and then it fills the array from top to bottom with ascending numbers. I am terrible at arrays and this task doesn't …

Software Development c++ microsoft visual-studio
Member Avatar for Narue
0
117
Member Avatar for server_crash

Does anyone know how you could process an equation, or even get an equation with more than two operands? Right now, in my calculator, I can only have two operands, and I want to have more. Right here is what I have: [Code] import java.awt.*; import java.awt.event.*; import javax.swing.*; public …

Software Development java java-swing
Member Avatar for server_crash
0
831
Member Avatar for themetalmozart

As a part of our project i need to learn 'JAVA swing'. can i get a free tutorial on it anywhere ,or any site ,u could suggest.i got a couple of books on java but none has more on swing. Please help me.

Software Development java java-swing
Member Avatar for Phaelax
0
149
Member Avatar for xxraveteddyxx

this prog. is supposed to demonstrate a strcpy error...however im getting an error and it wont run....once again im suing a dev c++ bloodshed compiler. and heres my code....once again i know it has a strcpy error thats the reason for writting the program..to demonstrate a char array overflow. strerror.cpp …

Software Development c++ display
Member Avatar for Narue
0
108
Member Avatar for broken_recode

I have this recurring (read annoying) problem with Turbo C++. I've a program which uses graphics, and for some reason, the minute I run the program, it exits TC with a dialog box saying: "This program has performed an illegal operation and has to exit." The illegal operation on inspection …

Software Development c++
Member Avatar for Narue
0
280
Member Avatar for hallrn

Trying to run QBASIC 1.1 in Windows XP Professional, I get Error message "16-bit MS-DOS Subsystem, Please Input Parameters for this Application". What is wanted here? What should I enter to run QBASIC?

Software Development qbasic visual-basic windows-xp
Member Avatar for Real-tiner
0
154
Member Avatar for sykobag

I have been working on updating a program that was written by someone else in Microsoft Visual C++ 6.0 to Microsoft Visual .NET 2003 (7.1 compiler). After fixing all of the minor syntax errors I came accross one that I wasn't real sure about: c:\DFC\dfc\source\DFCTfo.hpp(422): error C2491: 'DAssociationFile<KEY,VALUE>::getNextAssociation' : definition …

Software Development c++ microsoft
0
110
Member Avatar for xxraveteddyxx

i need some direction for a decent free c#/c++compiler...please advise.

Software Development c++
Member Avatar for Dave Sinkula
0
206
Member Avatar for stharmon

I am trying to install 2 rpm files that need root privileges. However, I don't want to prompt the user twice. Currently I am doing the following in my script: echo "*************************************************************" echo "In order to install acme package, you need to log in as root" echo "*************************************************************" su -c …

Software Development shell-scripting
Member Avatar for stharmon
0
383
Member Avatar for AQWst

Is there a way within Java to adjust the screen size? When I wrote a program in C++, I used the following code to do it, but I can't find anywhere (either Sun's API's, or on this site) how to do it. system("mode con:lines=50"); system("mode con:cols=100");

Software Development api java
Member Avatar for AQWst
0
188
Member Avatar for overXposed

Hiya everyone, its nice to be on this site. I'm a newbie. Well, I have a hard time understanding the whole pascal thing for my class and find it hard to make programs. Could anyone please assist me with my school project. Its making a simple game program like--Music Jeopardy …

Software Development pascal
Member Avatar for yas_85
0
121
Member Avatar for ojgibba

Can anyone tell me where to find shell script tutorial

Software Development shell-scripting
Member Avatar for steve-parker.or
0
314
Member Avatar for kharri5

I am trying to write a program in Java that takes in someons hexidecimal input. To make it eaiser I just want to do two digit hex. So they put in A2, and then I want the binary output for that. What I do know how to do is put …

Software Development google java
Member Avatar for kharri5
0
192
Member Avatar for AQWst

I am new to Java programming and am converting a program I wrote in C++ to Java. It is a currency conversion program that uses a number of functions to display different menus. It also allows for user input of the menu options to either do a currency conversion or …

Software Development display java
Member Avatar for server_crash
0
506
Member Avatar for patzy

hi...i need to pass my operating system project on the [B]december 10th[/B]. Can anyone help me with my project? the question is: i have to make a java multithreading program that use round robin scheduler, there is no special requirement for this program. i really don't get used to java …

Software Development java multithreading operating-system
Member Avatar for alc6379
0
217
Member Avatar for niamul

/* * Please try to answer this question. There is no time bound. * The following C program segfaults of IA-64, * but works fine on IA-32. */ int main() { int* p; p = (int*)malloc(sizeof(int)); *p = 10; return 0; } >/* Why does it happen so? */ /* …

Software Development c
Member Avatar for niamul
0
172
Member Avatar for George2

Hello everyone, I have found that class "URLConnection" has methods to establish a connection, for example, method "openConnection" and method "connect". But I have not found any methods of this class which are dealing with disconnect. I am wondering if I use class "URLConnection" to establish an HTTP connection to …

Software Development java
Member Avatar for George2
0
243
Member Avatar for server_crash

I have this simple calculator I just started on, and I'm having just a few problems. First of all, I don't know how to append text to a textfield. Maybe I would have to create a string buffere or something. Then, when the user clicks one of the buttons, the …

Software Development java java-swing
Member Avatar for server_crash
0
167
Member Avatar for pursottam tiwar

dear all the programmer i m facing a difficulty in creating the concept of data access layer (DAL)concept in java ...as it is implemented in .net...if any one can help abt this plz send mail at [i][email]email removed by moderator[/email][/i]

Software Development email java
Member Avatar for jwenting
0
123
Member Avatar for Tester2

I am learning/relearning C/C++. I have created a template class with various working functions. I have a problem when I try to use code that works for a char datatype with an AnsiString. If I call a template class function by calling a template function and passing a variable "Data" …

Software Development c++ display
Member Avatar for Narue
0
169
Member Avatar for blackhawk

There is no support for the inport and outport functions in borland C++ win32. Are there any alternative functions avaliable.

Software Development c++
Member Avatar for Dave Sinkula
0
183
Member Avatar for server_crash

I've been trying to do this for weeks now, and can't seem to get it to work. I have a JTextPane called textArea2, and I have a variable called doc that gets the document from the textpane. I want to get the selected text but I can't get no code …

Software Development java
Member Avatar for server_crash
0
288
Member Avatar for Tekmaven

1. How do you clear the screen in a console java app? 2. How do you input text in the console area? Is it something with System.in? ...There may be more later :-P

Software Development java
Member Avatar for freesoft_2000
0
868
Member Avatar for dj_saxy

Hi i'm new to c++. I can sort of make simple programs, but everytime i try to making a program with a GUI the black windows box keeps coming up and sitting in the background. Does anyone know how to get rid of it? I've found some snippets on other …

Software Development c++ gui
Member Avatar for dj_saxy
0
105
Member Avatar for kohkohkoh

Can Anyone here could recommend me a "GODD/EXECELLENT" web site for me to learn the MASM assembler coding...with examples and tutorials... I'm trying to learn to do my assignment. I don't know what it is...but i want to learn.. please thank you

Software Development assembly
Member Avatar for kohkohkoh
0
204
Member Avatar for Guppy25

I've created a class Fraction and am trying to use it in a main () but keep getting an error in my compiler that says "main must return int". My teacher says it's fine but i need to compile and run so i know that it works. Any suggestions? Thank …

Software Development c++
Member Avatar for murschech
0
125
Member Avatar for JimH

I need to assign a value to a variable named in a sting variable. Like this ... int temperature; int pressure; int volume; int variable_value; char Inbuffer[2048]; printf("%s","Variable List: temperature, pressure, volume"); printf ("%s","Input variable name from list above:"); gets(Inbuffer); ScanError=scanf("%s\n",variable_name); .... printf("%s","Input new value for variable:"); gets(inbuffer); ScanError=scanf("%d", variable_value); …

Software Development c
Member Avatar for JimH
0
197
Member Avatar for akoloff

i want to delete part of a binary file, let's say 12 byte record somewhere in the middle of the file. i can think of only one thing: - put the file pointer on the spot - shuffle all the following records up there're gotta be a better way ... …

Software Development c file-system
Member Avatar for Narue
0
79
Member Avatar for QB_Pete

I’m trying to find out if either VB6 or Delphi could be used to make a simple dialer for Windows XP. A dialer my friend made in VB5 works on NT, but not on XP. By a simple dialer, I mean one that I can use to read a single …

Software Development delphi visual-basic windows-xp
Member Avatar for Tej Singh
0
183
Member Avatar for saloo

3. Write a class to encrypt and decrypt a text file. The encryption step is described below: a. Find N, where N is the length of the longest line in the file, or the number of lines in the file, whichever one is higher. b. Find M, where M is …

Software Development c encryption
Member Avatar for alc6379
0
75
Member Avatar for zack_rage

hi i download a compiler from borland site could you please help me with my problem when i run or compile basic programs that i have made it says a error message the stdio.h is not found so that the program has no output any good compilers that can you …

Software Development c c# c++
Member Avatar for murschech
0
102
Member Avatar for yas_85

hello, i need some program in pascal languages about 20 or more ,please a person help me. thank you by

Software Development pascal
Member Avatar for jwenting
0
114
Member Avatar for Ghost

Hi everyone! I was wondering if anybody knew how to compare to strings in C#. I know in java you use CompareTo, but how and what do you use in C#? Thanks, C++ :mrgreen:

Software Development c#
Member Avatar for Iron_Cross
0
141
Member Avatar for dalaharp

Hi, i am using pow command quite frequently in my codes, and i have a feeling that i may be using it incorrectly. foe ex: [CODE]pow(image[x][y],2);[/CODE] image[x][y] is unsigned char and 2 is numeric, so is the arguments ok. [CODE]std_dev=pow(((ur_mean/(R*C))-(im_mean*im_mean)),.5);[/CODE] this a bit complicated, will it work this way? is …

Software Development c image
Member Avatar for Narue
0
122
Member Avatar for robert_sun

I am deciding to develope a add-in or a program for outlook express which could enable outlook express to share WAB on different computers. I have checked the this website: [url]http://www.slipstick.com/outlook/share.htm[/url] But as far as I can see, All the methods it mentioned, they concern the outlook instead of outlook …

Software Development api c
Member Avatar for BountyX
0
176
Member Avatar for red_evolve

Hi. First of all, I'd like to apologize for I really do not know where to post this thread to. :lol: I know Pascal is out but apparently I have got to pick up this language in order to finish my project. What I'd like to ask is whether Pascal …

Software Development first-post pascal
Member Avatar for jwenting
0
228

The End.