132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for server_crash

I have this code that is suppose to append text to a JTextPane, using the Document method insertString(). I can't seem to get the attribute argument right, so maybe one of you can point me in the right direction... Here is the one line of code giving me problems, just …

Software Development java
Member Avatar for server_crash
0
357
Member Avatar for Acidburn

Hello, I've got a big query ... I wold like my code to do something but I don't think I'm doing it right. Basically it checks 1 string with another and prints true or false.... However I want to restrict what is inputted into the string. So you'd have string …

Software Development c++
Member Avatar for Narue
0
219
Member Avatar for ediehm

If anyone has any good ideas for a program please let me know... My final is coming up, and we have to create our own program, but i'm drawing a blank, any help would be great!

Software Development pascal
Member Avatar for easy-helper
0
189
Member Avatar for niamul

I am a new programmer in Java and now I am facing the following problem. If u please answer my queries it will be very much helpful to me. Can I use the following code : (a == 2) ? return 4 : return 5; instead of the following code …

Software Development java
Member Avatar for niamul
0
97
Member Avatar for nakulmadaan

IS THERE ANY PARALLEL FUNTCION FOR DIG IN JAVA. "RouteThrough", "RT", TYPE_RT:: I tried this in java but i am getting this error at run time "ERROR - DNS Error: Unknown resource record type 'RT' " It performs DNS lookups and displays the answers that are returned from the name …

Software Development dns java
Member Avatar for nakulmadaan
0
151
Member Avatar for happyHour

Hello just finished re- reading chapter 3...about functions... I learnt more of this from reading it when i was at home than when im at uni! Amazing!! However I get a compile error saying 'not all control paths return a value' heres the code: [php] #include <iostream> using namespace std; …

Software Development c++
Member Avatar for 1o0oBhP
0
163
Member Avatar for Dark_Omen

Hello, I am using dev-c++ on a windows computer. I download a gui package off of the bloodshed dev site. I installed and everything seem to work. I was making a simple gui off of this tutorial I found online that used the library. The library is wxWindows. Here is …

Software Development c++ gui
Member Avatar for Dark_Omen
0
212
Member Avatar for mortonl

I have been trying to write this program since 9:00 am. and I am exhausted now. Could someone give a some direction??????? I am to write a program for a two dimensional (5 rols and 5 cols) and then write a procedure to rotate it 90 degrees. I wrote the …

Software Development pascal
Member Avatar for easy-helper
0
108
Member Avatar for chound

How to show a list of options and allow the user to select the options by using arrow keys and enter.

Software Development c++
Member Avatar for vegaseat
0
188
Member Avatar for blackhawk

I have a question. Still trying to understand. I am using borland c++ vr 4.5. I am working on a project that usees the sleep function 4.5 does not support this function. Is there somewhere i can find a win16 version that would work in this program. tnx ron hathcock

Software Development c++
Member Avatar for vegaseat
0
298
Member Avatar for Tom Pilk

Can anyone make this game any better because at the moment i am stuck. I have been doing it for fun and with my friend - cue Lewis Houghton. It is below what we have done so far: [CODE]DECLARE SUB Battle () ON ERROR GOTO errline DIM guy(50), guysh(50) DIM …

Software Development email visual-basic
Member Avatar for Comatose
0
149
Member Avatar for Acidburn

i got my program to do stuff, but i wondered if i can take it to the next level... when a user enters a number of 1458.125478 i got it to do abs.... google is soo good!! but now im wondering if you could display just + or - depending …

Software Development c++ display google
Member Avatar for 1o0oBhP
0
416
Member Avatar for helloworld

i need some help, is there a program which will only have let say 40k of memory, for example a program that will use queues, when you enter a number it will say you have use 10 k memory , please someone help so me a example, please

Software Development c++
Member Avatar for 1o0oBhP
0
166
Member Avatar for broken_recode

I simply have to overload square brackets in order for a program to work. I know the syntax for 1-dimensional array. It goes something like this: class MyArray { private: int *arr; int size; public: MyArray(int s) { size = s; arr = new int[size]; } int & MyArray operator[](int); …

Software Development c++
Member Avatar for Narue
0
2K
Member Avatar for Tom Pilk

What do I need to do if I get an error in QBasic saying [CODE]call absolute[/CODE] and it doesn't work - or something like that. I don't have absolute to call?!? This is when I have been looking at other peoples code and then trying to run them. Help! Thanks, …

Software Development qbasic
Member Avatar for Buff
0
251
Member Avatar for Acidburn

hello, ok here it goes... I've got a char array but it doesnt want to let me add data to it!! I cant figure out why [php] //skip the program heres the line... int chararry[12][10] = {Jan, Feb....} [/php] but I keep getting an error saying its not been initialized... …

Software Development c++ google
Member Avatar for 1o0oBhP
0
290
Member Avatar for Geek-Master

Sorry to be such a gimmy gimmy... but I couldn't find any threads on some code that clears the screen, just like DOS's 'CLS' and Bash's 'Clear'...I need a function that does the same thing as both CLS and Clear. Thanks for reading and or helping out.

Software Development c++
Member Avatar for Narue
0
633
Member Avatar for JoBe

Hello ladies and gents, I was making this small exercise in wich I have to enter a certain date meaning, day, month and year. If entered it should count the amount of days from the beginning of that year and print it. I found a solution for this, but was …

Software Development c++
Member Avatar for Narue
0
308
Member Avatar for yitzhakbg

How can I login remotely and force a command/script to run in a particular X Server when are multiple X Servers running? Here's what I want to do: Force my desktop to be displayed on multiple remote machines, each of which has multiple X Servers running simultaneously. That is, force …

Software Development shell-scripting
Member Avatar for yitzhakbg
0
129
Member Avatar for PascalRookie

This is due tomorrow, and i am absoltuly lost, can anyone help with some examples or point in the right direction, MANY THANKS for any help Mathematician Stanislav Ulam proposed that any positive integer would reduce to 1 if the following algorithm was repeated a sufficient number of times. If …

Software Development algorithm pascal
Member Avatar for ediehm
0
327
Member Avatar for halbichmi

Hi, Can someone show me how I would use the multi-threading instead of a case statement for parsing out a file? I have a file that is currently being parsed in C#. Creating Primary keys and foreign keys and putting the data in several dat files. Then I use dts …

Software Development c++ sql
Member Avatar for halbichmi
0
141
Member Avatar for Diod

Im reading a book on java, and im on the lesson OOP and java. This is my code: [CODE]class Motorcycle { String make; String color; boolean engineState; void startEngine() { if (engineState == true) System.out.println("The engine is already on."); else { engineState = true; System.out.println("The engine is now on."); } …

Software Development java oop
Member Avatar for Diod
0
163
Member Avatar for Diod

The Eternal Sun is an open-source MMORPG that is currently in need of developers and other people that are willing to work on the project. If you want to get into the dev team, register at sourceforge.com and mail me at [EMAIL=diod631@users.sourceforge.net]diod631@users.sourceforge.net[/EMAIL] [b][u]More details:[/u][/b] [b]URL:[/b] [url=http://eternalsun.info/]http://eternalsun.info/[/url] [b]License:[/b] GPL/GNU [b]Graphics:[/b] 3D …

Software Development c++ email open-source python
Member Avatar for alc6379
0
188
Member Avatar for kane

Hey all, I were wondering if someone could tell me what 'Chungaroo' means? Iv tried looking all over to find out what it means; i need to find out as part of a job assessment. Cheers for info [email]email edited by moderator[/email] :cheesy:

Software Development email java
Member Avatar for chungaroo
0
105
Member Avatar for server_crash

I have a method that counts the number of words in a JTextArea. It works pretty good, except for the fact it counts characters that's not letters as words(such as "!@#$" would be a word)... Here is the code that I have got so far(no erros, compiles and runs fine, …

Software Development java
Member Avatar for server_crash
0
202
Member Avatar for nanosani

how can I disable/enable the minimize maximize/restore and close buttons within my code ?

Software Development vb.net
Member Avatar for Comatose
0
154
Member Avatar for JoBe

Hello ladies and gents, I'm trying to reverse a string when one is entered with cin.getline, so when typing for example: testing My output should become: gnitset Ive written this piece of code and it works but, because the string has a certain length and not the whole length of …

Software Development c++
Member Avatar for JoBe
0
171
Member Avatar for Caesar Were

Well hallo comrades, just been having problems with character strings. Wrote a program that requires typing in of information yet it wasn't possible to represent the character strings in a comfortable manner for whoever is to use the program. Also is there a possible way to make the inputing of …

Software Development c++
Member Avatar for 1o0oBhP
0
139
Member Avatar for ekim0410

hello.. me and my groupmates are currently taking up assembly language programming course.. as a final requirement in our laboratory course, we are asked to choose one out of four machine problems to solve... we are desperately in need of help because we do not know how to solve the …

Member Avatar for 1o0oBhP
0
142
Member Avatar for sa-rulz

Hi I have been given a assignment of making a "inventory control program of a book store in c++" i have done all the parts except for two 1. I have to delete a record from the file (i am using fstream and saving the file i need the piece …

Software Development app-store c++ ios
Member Avatar for 1o0oBhP
0
99
Member Avatar for sinB

I am trying to create a pure virtual function returning an array of pointers, without success! :cry: I would appreciate help greatly.

Software Development c
Member Avatar for harshchandra
0
75
Member Avatar for Nabs

Hi Anybody knows a site where i can get sample C++ problems to solve, particularly regarding structures, arrays and bisection searches? Thx

Software Development c++
Member Avatar for harshchandra
0
150
Member Avatar for helloworld

Each job had: • a name ( up to 8 letters) • a unique job number ( first job 1, second 2 and so on) • a priority 1-5 • memory requirement ( multiples of 4K, max 16K ) • programmer - name, extension prog1 Your job is to create …

Software Development c display queue
Member Avatar for alc6379
0
109
Member Avatar for Vova

Hi All! How can I link modem to the Sound card in my PC? (in C++) that meens I want to listen a telephone line user via my sound card output! I want to forward audio signal from modem (internal PCI- COM4) to PCI sound card! with Win98SE in my …

Software Development audio c++ email pci-card
Member Avatar for chound
0
122
Member Avatar for nico

hi all i am a beginner and i use the devc++ to compile my programs ,here is my question ,after i compile my program the window disappears without giving me a chance to view my excutable file. i did my homework and found this piece of code online ,(supposed to …

Software Development c++ flash
Member Avatar for Acidburn
0
141
Member Avatar for DaveSW

The background to this question is that I have discovered a virus on one of my computers that adds a block of encrypted activex code to html and php pages. Unfortunately all the virus cleanup tools delete the infected files... being a webdeveloper this means a lot of my 'working …

Software Development hard-drive html-css java
Member Avatar for jwenting
0
153
Member Avatar for freesoft_2000

Hi everyone, I am currently trying to create a tool that jars all my classes into an executable jar. What i mean is that when i click on the particular jar file in windows explorer the program is run. I managed to create the jar file but the problem is …

Software Development file-stream java java-swing
0
178
Member Avatar for ahmed_design

ill ask about the dda information about graphics

Software Development c
Member Avatar for Dani
0
164
Member Avatar for Sphyenx

Learn to Program with C++ [Paperback] By: John Smiley for non programmers'

Software Development c++
Member Avatar for ahmed_design
0
127
Member Avatar for Acidburn

Hello, i'm wondering if you can delcre a varible in int main and use it in a function? eg [PHP] int main() { x = 7 cout << x<<endl; return 0; } function -- { ....blah blah } [/PHP] does something to x delcared in local scope (int main) Or …

Software Development c++
Member Avatar for Acidburn
0
91
Member Avatar for Geek-Master

I'd like to ask if anyone knows how to randomize character variables, and if it is possible to define the possible characters it can use in the randomizing process. Any info would be excellent ^^ T#4NK$.

Software Development c++
Member Avatar for Geek-Master
0
187
Member Avatar for dan34633

ok, i need to write a function called merge_lists that take two call-by- reference arguments that are pointer variables that point to the heads of linked lists of values of type int. the two linked lists are assumed to be sorted so that the # at the head is the …

Software Development c++ linked-list
Member Avatar for 1o0oBhP
0
413
Member Avatar for Acidburn

if (a==b && a > 1 || a < 31 && b > 1 || b < 31) cout << "true"; from what i can understand I've told the compiler that if a is equal to b and a is greater than 1 or less than 31 and B is …

Software Development c++
Member Avatar for frrossk
0
104
Member Avatar for cujo401

I have a script to read a file that has text on lines. The script is supposed to take the text and make them into space delimited and save the new text to a new file. I am able to only accomplish this with 1 line from the text file. …

Software Development c++ file-system
Member Avatar for cujo401
0
345
Member Avatar for George2

Hello everyone, I have a very important thread in my application and I do not want it to be terminated accidently, or in other words, if it is terminated for some reason (for example, be terminated by some unhandled Runtime exceptions), I want it to restart automatically. I am wondering …

Software Development java
Member Avatar for George2
0
150
Member Avatar for BountyX

Does anyone know how to have a windows program accept command line options? For example a terminal program just needs a parameter in the main function to accept command line parameters, how can I do the same for a windows main functions, since parameters are already there?

Software Development c
Member Avatar for BountyX
0
197
Member Avatar for Acidburn

after using the search and everything, I tried to write my own little code that compares 2 strings. #include <iostream> using namespace std; int main() { char stringa[12]; char stringb[13]; cout << "enter the data for string a " ; cin >> stringa; cout << "enter the data for string …

Software Development c++
Member Avatar for 1o0oBhP
0
116
Member Avatar for tigerxx

I need to open a word doc template from a java application and i also need to dynamically update the fields in the template with some values from the java application.. Can anybody help me????...... Thanks in advance..........

Software Development java
Member Avatar for tigerxx
0
165
Member Avatar for JoBe

Hello ladies and gents, Ive written a program wich I'm almost certain it'll work, Ive only got one problem, I need to write an if like this: int a = 0; if ( u!=x) a++; Now, u is a floating variable wich is divided before this selection by 2, 3, …

Software Development c++
Member Avatar for 1o0oBhP
0
132
Member Avatar for Lothia

Well as probably half the population of noob programmers out there, I have done those 2 things, quit, and stopped because of school. Well i am trying to get back in, i want to make a game like 90% of the noob programmers out there and i have tuts on …

Software Development c++
Member Avatar for Lothia
0
108

The End.