43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for suvirj

Hi, I am kinda new to java netbeans...i have downloaded some java code which is n implementation of the algorithms in the book AI:A Modern Approach. After extraction, the folder has bin, build, doc and src folders which hold various .class and .java files. Now my problem is that i …

Software Development java java-netbeans
Member Avatar for peter_budo
0
129
Member Avatar for 30Caliber

Hi everyone, I'm new to this site and programming, and i was wondering if i could get some help with a programming problem of mine. I have to print 10000 random numbers ranging from 0 to 10000. The numbers should be put in the console screen and a txt. file. …

Software Development c++
Member Avatar for 30Caliber
1
2K
Member Avatar for scrypt3r

Hello in the ping app i am using this code [CODE] try Dim ping As New System.Net.NetworkInformation.Ping Return ping.Send(hostNameOrAddress,5000,300).RoundtripTime Catch ex As Exception MsgBox("Computer Ping Could Not Be Called") End Try [/CODE] but my app will not accept 300 as a amount of bytes, Help!

Software Development vb.net
Member Avatar for scrypt3r
0
166
Member Avatar for jworld2

wxpython question: I am looking for a way to select just a line of text out of many lines of text by just clicking anywhere on the line of text, like what is shown in the attachment. Let's say I have a TextCtrl with lines of text. How would I …

Software Development python
Member Avatar for jworld2
0
118
Member Avatar for Dell XPS

today i was trying to make an alarm for my Pocket pc so that i can select the sound of the alarm and set it as one of my mp3 files... but in vb .net for pda i realised there is no FileDialog ready to use... any ideas... i need …

Software Development storage vb.net
Member Avatar for Dell XPS
0
199
Member Avatar for Manutebecker

After reading up on them in terms of class hierarchy, they seem to just be almost like comments, to remind you that all classes use this sort of function

Software Development c++
Member Avatar for ddanbe
0
261
Member Avatar for Zermoth

Is there a way to enter a pause state between commands running?

Software Development visual-basic
Member Avatar for Zermoth
0
118
Member Avatar for serkan sendur

let say i have authors.a and books.a, authors.a is dependent to books.a and books.a is dependent to authors.a, can i compile them together? as a c# programmer it doesnt seem possible to me, for example you are adding a project called B as a reference to one of your project …

Software Development c++
Member Avatar for Murtan
0
104
Member Avatar for pocku

I'm working on a quick sort algorithm using recursion but it's throwing a stackOverflowError. Here is the code: [CODE] public static void quicksort(int [] A){ quickSortRec(A, 0, A.length-1); } public static void quickSortRec(int [] A, int p, int r){ if (p < r){ int q = Partition(A, p, r); quickSortRec(A, …

Software Development algorithm java
Member Avatar for neilcoffey
0
195
Member Avatar for shadwickman

Hi, I was wondering what was wrong with the following code. It creates a [i]vector <int>[/i] and assigns it the values 0 - 51. Then it shuffles these values and prints it to the screen. When I compile it, I get no errors, but when it runs, it throws an …

Software Development c++
Member Avatar for shadwickman
0
115
Member Avatar for Tyster

Hi Folks, I am encountering what I think is a simple problem but I haven't been able to solve it. I am trying to parse a simple XML file and I keep getting the following exception... Exception in thread "main" javax.xml.transform.TransformerException: A location step was expected following the '/' or …

Software Development apache file-system java xml
Member Avatar for quuba
0
1K
Member Avatar for sid78669

I sometimes wish they would have kept some features from c++ in C#. Anyways, I was trying to try an old c/c++ trick: [CODE]#define SUM 1[/CODE] but it does not work in c#. Anybody know how to declare symbols in c#?

Software Development c#
Member Avatar for sid78669
0
106
Member Avatar for freelancelote

This's got probably an easy answer but it's been puzzling me a few hours already. The code below declares a string object and fills it character by character. I can print every single character (line 16) but I can't print the string as a whole (line 19). Could anybody tell …

Software Development c++
Member Avatar for Narue
0
149
Member Avatar for sid78669

In c++, when we create an array using dynamic memory allocation, we are able to destroy it later on using: [CODE]delete [] array;[/CODE] is the same thing possible in c#? If i create an array in C#, then how do i delete it when i don't need it?

Software Development c#
Member Avatar for sid78669
0
5K
Member Avatar for Passiongamer25

I need some help with my program. The program is supposed to read ID#'s for students as well as grades from a file called "grades.txt" After the program reads the the file it displays a menu as follows: 1. Publish(publish contents of file to output file called "report.txt"); 2. Search(program …

Software Development c++
Member Avatar for ddanbe
0
651
Member Avatar for Whilliam

This is a cursor-based implementation of list inserting at the end. In the program below, the output the program will show me is the last element of my input. It is suppose to show all elements from the first input to the last. Also, after two inputs, when inserting, it …

Software Development c
Member Avatar for Whilliam
0
232
Member Avatar for lmastex

Hey guys. Just a question. Is it possible to use a stack class and a link list class in the same program so for example if I decide to create a list (using the link list class) and then from this list take the odd numbers and put in a …

Software Development c++
Member Avatar for Freaky_Chris
0
106
Member Avatar for PhiberOptik

Hey guys, I have a program that I want to launch and pass a parameter. For example: [QUOTE]"C:\Program Files\aProgram\test.exe -login joeSmith password1"[/QUOTE] The thing is I can't just add that to a shortcut because lots of other people will be using this computer as well. Is there a way of …

Software Development java
Member Avatar for neilcoffey
0
86
Member Avatar for freelancelote

Hi, I'm trying to have a function that takes an ifstream object and returns an int as in [ICODE]int wCount(ifstream myFile);[/ICODE] Is that possible? The compiler gives me loads of errors that I simply don't understand. Thanks,

Software Development c++
Member Avatar for Freaky_Chris
0
217
Member Avatar for Sereal_Killer

I have a basic problem i dont know where the error lies. i can create a class Persoon and fill in all its values before its created . but for some reason when i call up the information i get the current Date as the birthdate and not what i …

Software Development api java
Member Avatar for neilcoffey
0
114
Member Avatar for carson myers

so, I want to avoid using int 21h and start working with BIOS level code. I'm trying to write something equivalent to int 21h, function 09h, using int 10h functions 09h, 03h, and 02h, except I want the reading to terminate when it reaches a 00h character, switch to green …

Software Development assembly
Member Avatar for carson myers
0
630
Member Avatar for elitedragoon

Don't know what is up with it. Any help is nice, thanks. error c2660: 'Totaler' : Function does not take 20 arguments error c2660: 'Averager' : Function does not take 30 arguments [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #include "./myheader.h" void InputEmployeeData(char*lastname, char*firstname, float*hours, float*payrate, float*deferred); float CalcGross(float hours, float …

Software Development c++
Member Avatar for elitedragoon
0
174
Member Avatar for shadwickman

Hi, I'm really confused now about how to return an int[] from a C++ function. Inside the function, I need to dynamically resize the array, but at the end I want the variable returned to be an array, not a pointer, but I have no idea how to do this: …

Software Development c++
Member Avatar for daviddoria
0
347
Member Avatar for Superstar288

hi i was doing some work for my project in a gui and i wanted to print out the information in my arraylist but when i do print out the object all i get is Customer@197d257 i have used the follwing code to print it out of my iterator [CODE] …

Software Development gui java
Member Avatar for Superstar288
0
131
Member Avatar for meistrizy

It also might help if I tell you guys the whole program (*smh*...lol): Ok...the bottom part of the program is supposed to read the file and then display the rounded number in a table as the charted population. I tried to redo the same piece as StuXYZ suggested but it …

Software Development c++
Member Avatar for meistrizy
0
169
Member Avatar for clueless101

[QUOTE]I'm working on a seemingly simple application that has 2 text fields and a slider. In the 1st text field the user enters an amount and the associated sales tax is displayed in the 2nd text field. Then, by moving the slider up and down the specified range, the user …

Software Development cpanel gui java java-swing window-manager
Member Avatar for stephen84s
0
186
Member Avatar for MaxManus

[QUOTE]Make a function [CODE]def rhs(u, t): [/CODE] for returning the right-hand side of the first-order differential equation system from Exercise 11.36. As usual, the u argument is an array or list with the two solution components u[0] and u[1] at some time t. Inside rhs, assume that you have access …

Software Development python
Member Avatar for MaxManus
0
130
Member Avatar for clb8372

[QUOTE][LIST] [*]Identify a task you perform regularly, such as cooking, mowing the lawn, or driving a car. [/LIST] [LIST] [*]Write a short, structured design (pseudocode only) that accomplishes this task. [/LIST] [LIST] [*]Think about this task in an object-oriented way, and identify the objects involved in the [*]task. [/LIST] [LIST] …

Software Development c++
Member Avatar for ddanbe
0
969
Member Avatar for calcop

Hello everyone. I have created a sales system for my company. Basically you telnet to the system and enter your login name, password ... From there you can access the sales system. I am working on a feature to write reports for a certain area of the system. For this, …

Software Development perl ruby session
Member Avatar for calcop
0
151
Member Avatar for Grub

Hi, is there a place from where I can get or read up on the C ++ standard library for the mac? Something similar to Sun's java documentation. I am looking for GUI libraries and others such as handling files not opening for streaming but to get attributes of files …

Software Development c++ gui
Member Avatar for Salem
0
107
Member Avatar for SHWOO

while((board.getgXPos() != board.getXPos()) && (board.getgYPos() != board.getYPos())) { system("cls"); board.printBoard(); board.moveBall(); } I would like this while statement to continue repeating until both gxPos equals XPos & gyPos equals YPos. I can't seem to figure out why the statement exits if either both x's are the same or if both …

Software Development c++
Member Avatar for Murtan
0
115
Member Avatar for mypopope

I'm using dev c++ beta i downloaded from the internet.but the problem is i cannot compile my source code even a simple one like this: #include <iostream> using std::cout; using std::end: int main() { cout<<"HELLO" <<end; return 0; } The error says "The system could not find the specified file" …

Software Development c++
Member Avatar for AHUazhu
0
89
Member Avatar for tomtetlaw

Im learning VPython and im doing a tutorial that i found on the net and i start my program and when i press the red x at the top of the screen the window closes but the pythom shell and the editing window closes aswell, any ideas? heres my code …

Software Development python
Member Avatar for tomtetlaw
0
166
Member Avatar for robertmacedonia

Hello, I'm new in Java programming, just learning it and I want to ask you about the Exceptions. As much as I understood, I just need to create a class e.g. "MyException" that extends the Exception class, and use the exception specification "throws" in the function that might throw the …

Software Development java
Member Avatar for Tyster
0
147
Member Avatar for ninja_gs

I use Turbo C++ compiler to compile Cpp program. when i use it . shows error( undef :"cout " "endl") but included CONIO.h . Also I checked OPTIONS-> DIR - where I have TC Folder(My case I have it in E:\TC\INCLUDE & E:\TC\LIB) Even The Example Programs is Not Running …

Software Development c++
Member Avatar for ItecKid
0
195
Member Avatar for programmingme

My program keeps looping when asking for seat letter. Can anyone help me out as to why that is? [CODE] import java.io.*; import java.util.*; public class AirplaneSeating { static Scanner console = new Scanner(System.in); public static void main(String[] args) throws IOException { char[][] seatPlan = new char[13][6]; char response; initializeSeatPlan(seatPlan); …

Software Development java
Member Avatar for programmingme
0
145
Member Avatar for meistrizy

Ok...the program is supposed to read data from the file and then output one star for every 1000 people. At the bottom of the program, it is supposed to round the numbers up or down (2500 = 3 stars, 2499 = 2 stars) but I can't get that part to …

Software Development c++
Member Avatar for meistrizy
0
104
Member Avatar for serkan sendur

do you guys know any online and visual mks tutorial?

Software Development c++
Member Avatar for serkan sendur
0
78
Member Avatar for q8y_4u

hi guy's , iam a new member i got stuck with my c++ assigment. i really want's your help the program reads in a series of student data sets from the keyboard, stores them in an ordered linked list of records, supports editing an existing record, and displays a summary …

Software Development c++ linked-list
Member Avatar for AHUazhu
0
205
Member Avatar for robgeek

Hi, I declared and implemented a print() function in a class. But when I call this function it is giving me an error: which says that function does not take 0 arguments. But what should my arguments be. I have posted the part of the code for more specification. Thanks. …

Software Development c++
Member Avatar for AHUazhu
0
178
Member Avatar for puneetkay

Hello everyone, Im trying to write Punjabi (Gurmukhi) by Unicode. I have the Unicode code point of all character and Code Block is Gurmukhi. [CODE=java]System.out.prinln("\u0A73")[/CODE] u0A73 = GURMUKHI URA = ੳ but its showing "?". then i tried with PrintStream [CODE=java]String unicodeMessage = "\u0A73"; try { PrintStream output = new …

Software Development java
Member Avatar for puneetkay
0
288
Member Avatar for Pgmer

Hi all in my appliction i want to send the document through mail i.e: outlook here is my code Dim myWS As Object Dim RegKey As String Dim Key As String Key = "HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\" 'access Windows scripting myWS = CreateObject("WScript.Shell") 'read key from registry RegKey = myWS.RegRead(Key) If RegKey = …

Member Avatar for Pgmer
0
1K
Member Avatar for manoj_582033

Hi Friends I am working in vb.net,i have a form in that, which windows state is normal & it starts on normal position but if another form is open on that application which windows state is maximize,& then if i open that form so that also become maximize, But I …

Software Development vb.net
Member Avatar for Teme64
0
196
Member Avatar for shadwickman

Hi, I didn't really know how to word the title, but I was just wondering if it was possible to write a function and make it accessible as if it was any other str function. It was a simple (but useful) few lines which returned a list of all the …

Software Development python
Member Avatar for shadwickman
0
160
Member Avatar for daviddoria

I am trying to output 00001 instead of just 1, so I do this: char pos[5]; sprintf(pos, "%05d", 1); string Index = (string) pos; It works just as I'd expect - if I cout << Index it says 00001 However, it is breaking something totally unrelated. On the next line, …

Software Development c++
Member Avatar for grumpier
0
224
Member Avatar for clueless101

[quote] Once again, I can get part of my code to work, but not all. When the user inputs more than one sentence [I](ending with either a period, question mark or exclamation point), [/I]each sentence should be capitalized accordingly. However, it only works with the first sentence to work. Does …

Software Development java java-swing
Member Avatar for ~s.o.s~
0
128
Member Avatar for mn_kthompson

I've been trying to step into learning wxpython, so I followed some examples on the web and put together this very simple application. The good news for me is that it is working almost exactly as I would expect it to. I do have a couple of questions for the …

Software Development python
Member Avatar for Stefano Mtangoo
0
485
Member Avatar for robgeek

I am writing a program in which a print function takes in users' street address(string), city (string) , state (string), zip(int). What will my return be for this function? My code snippet is this: [code] string addressType::print_add(string str, string Cit, string St, int Z) { cout<<str<<endl; cout<< Cit <<","<<St<<endl; cout<<"Zip: …

Software Development c++
Member Avatar for Ancient Dragon
0
165
Member Avatar for robgeek

Hi I am writing a address book program that is giving a run time error. Please if someone can compile and check this error, and then explain/ show me how can I resolve it. I am pasting my code in parts here as well as attaching the files. Also please …

Software Development c++
Member Avatar for robgeek
0
131
Member Avatar for chris5126

Hi guys, Will keep this short and sweet. Trying to do integer devision to *decimial places but i dont think the version of ksh installed on solaris 10 supports this as they would need to be declared as floats. Is this correct? If there isnt a way of doing it …

Software Development shell-scripting
Member Avatar for Fest3er
0
137

The End.