132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ssubnel

This is my homework for a Java class. I get a perfect score followed by a query as to why I didn't use a void method. The answer is I don't understand the difference. Can someone illustrate for me how it would look. I need a better grasp of this. …

Software Development java
Member Avatar for ssubnel
0
167
Member Avatar for dustbunny000

Hi. I was wondering if anyone knows how to establish x,y,z coordinates in python. I want to be able to extract this data from a text file. Here are sample lines in my text file: [CODE] ATOM 1 N GLN A 4 62.131 49.287 59.621 1.00 67.10 N ATOM 2 …

Software Development python
Member Avatar for TrustyTony
0
850
Member Avatar for sivaranga001

Hello Forum members, Have a nice day. I have to write a script for the following below scenario. There are 3 applications located in home directory(ie xyz/app) which havae multiple directories and files of diff format(.sh,log,other formats). 1: I have to find the hardcoded IP_ADD 's which are loacted in …

Software Development shell-scripting
Member Avatar for cfajohnson
0
117
Member Avatar for stamford47

how would i be able to show the end of month balance using pop up window and also would like to charge a fixed a fee each month and withdrawal fee import java.awt.*; import java.awt.event.*; import javax.swing.*; class GuiAccTest extends Frame implements ActionListener { Label lab=new Label(" "); Label lab1=new …

Software Development java java-swing
Member Avatar for cale.macdonald
0
369
Member Avatar for a-hall

I have setup an array and i have calculated the sum of my array. Now i need to find standard deviation of the numbers entered in my array. here is my code [CODE]#include <iostream> using namespace std; int main() { int i=0, count, maxSize = 36; double arr[36]; double number; …

Software Development c c# c++
Member Avatar for Fbody
0
144
Member Avatar for sanjuanair

I wish to know what is meant by "default" in programming.

Software Development c++
Member Avatar for Narue
0
125
Member Avatar for glenak

Hi, So I've been having problems with my Eclipse C++ IDE. In other words, I haven't been able to run anything, not even a hello world program. I think the problem has to do with the fact that I don't have a c++ complier in my system. I use Windows …

Software Development c c# c++ ide windows-vista
Member Avatar for glenak
0
154
Member Avatar for communitygirl90

So I'm pretty new to using python and a beginner. I've written a code on how to figure out the length of 2 polylines and now I'm trying to figure how to display the data using canvas... I've tried like a million times and I just can't get it to …

Software Development python
Member Avatar for strider1066
0
162
Member Avatar for killbill07

Hey it's me again, I need some help with WMP control, because i was trying to remove an item (I have a listbox wich has songlist for playing and a button). I wanna remove the selected song in the listbox from the playlist, but I don't know how to use …

Software Development visual-basic
Member Avatar for killbill07
0
563
Member Avatar for doctorjo5

I am trying to make a number guessing game in Python. The correct number is 42. Right now I have it so that it gives you a message when you are too high, too low or right on. I want to add two other messages. One message for no input …

Software Development python
Member Avatar for Schol-R-LEA
0
222
Member Avatar for Brutus2000

Hi, I have some problems just to write a simple string output to some txt.file. That is my test code: [CODE]test = open('Test.txt', 'w') test.write("Teststring") test.close()[/CODE] I use Python 2.6.5 and PyScripter If I direcly enter the code in the IDLE SHELL, sometimes it works, sometimes only the file is …

Software Development operating-system python
Member Avatar for d5e5
0
104
Member Avatar for PaulStat

Hi Folks, I have a set of csv files that I open and read the contents of a row into a DictReader, this works fine 99% of the time, but occasionally one of the fields in a record has an extra new line character. For example here's the format of …

Software Development python
Member Avatar for d5e5
0
2K
Member Avatar for BLUEC0RE

I'm making a program that accept 1 character long strings (and ignores spaces " ") until a user presses return/enter. So far I have, [CODE] int main(){ char expression[1]; while ((scanf("%s",expression)) != EOF){ //code } return 0; } [/CODE] it is assumed that the user is entering single digit strings …

Software Development c
Member Avatar for gerard4143
0
3K
Member Avatar for hq1

Hi I'm tryingt to write this program: Write an interactive computer program that will find the greatest common divisor of two integers using Euclid's Algorithm. The program should be independent of the order in which the two numbers are input. EUCLID'S ALGORITHM Divide the smaller number into the larger. If …

Software Development algorithm c++ storage
Member Avatar for Unimportant
0
114
Member Avatar for Beancounter5

Hello, does anyone know where i can find some good examples on the list::erase() command. Specifically when erasing elements of a list whilst looping through it with for..next ,etc..

Software Development c++
Member Avatar for Ancient Dragon
0
112
Member Avatar for eme21

Could anyone help me..... My instructor give me an assignment and i don't know how to start and i should submit it in nextweek so can you think with me and help me to know way????? this the Question--> Consider the following description an account in a bank management system. …

Software Development c++
Member Avatar for eme21
0
178
Member Avatar for #include<>

Why doesn't [code] typedef [I]ClassName[/I] SomeName[[I]SomeSize[/I]][[I]SomeOtherSize[/I]];[/code] work?

Software Development c++
Member Avatar for mrnutty
0
110
Member Avatar for mitrious

I'm trying to use the tolower function from the cctype header ... in this function (to check if a word is a palindrome [code=c] int palindrome(const string& w) { typedef string::size_type sz; string ret = w; sz r = 0; sz l = w.size() - 1 ; int check = …

Software Development c++
Member Avatar for Narue
0
134
Member Avatar for sterlingf5890

I wrote out a palindrome test program for my c++ class. It is to include 3 functions (one to count the length of the string, one to test if it is a palindrome, and one to output whether the string is a palindrome or not using a switch statement). Visual …

Software Development c++ visual-basic
Member Avatar for Unimportant
0
139
Member Avatar for kosalaudara

hello iam a student of following computer engineering in srilanka.I haven't a good knowledge about java.Can you help me to learn it from begining.O.K.Thankyou.

Software Development engineering java
Member Avatar for dragonshadow001
0
82
Member Avatar for iluwinter

Hello, I'm fairly new to C++, and I am currently doing a CS assignment, which is to create a hangman game. The only problem i'm having so far is that i'm getting an error when i try to pass a char array to a function (invalid conversion from 'char*' to …

Software Development c++
Member Avatar for vidit_X
0
146
Member Avatar for pandaEater

I'm trying to make a binary search tree without using recursion anywhere. I'm having trouble with the destructor though. I've been thinking about using a stack to help me keep track of the nodes but I'm not sure exactly how I would implement that. Any ideas? Relevant code: [CODE] class …

Software Development c++
Member Avatar for pandaEater
0
3K
Member Avatar for sonsofliberty84

I found Ancient Dragon's code snippet for reading the files in a folder. I modified it a little because I want it to display what those files are. The problem is, it also displays the two parent directories, '.' and '..'. I was wondering if there was a way to …

Software Development c++
Member Avatar for sonsofliberty84
0
97
Member Avatar for Ashena

I have a file that has a repeated number of blocks of different sizes as in below: ID: 2 Time: 76 Op: GET Domain: facebook.com LPath: /common/css/common.css Referer: [url]http://google.com[/url] User-Agent: Mozilla/4.0 ID: 3 Op: GET Domain: rfi.fr LPath: /common/css/common.css Referer: [url]http://yahoo.com[/url] For each block, I want to print only the …

Software Development python
Member Avatar for TrustyTony
0
14K
Member Avatar for KJLakshmi

I have build a dynamic library in both debug and release mode. In the Source code of this libray relloc() function is used. I am linking this libray to my executable application. When i execute the application in debug mode, the application is crashing with the following message "Unhandled exception …

Software Development c
Member Avatar for Ancient Dragon
0
175
Member Avatar for subkin13

Hello, I need a way to get a function return type during preprocessing or compilation(meta...). [U]example:[/U] [CODE]int f() { MACRO_OR_META_WHICH_RETRIEVES_FUNCTION_RETURN_TYPE[/CODE] Thanks, Leonid

Software Development c++
Member Avatar for subkin13
0
197
Member Avatar for moonL!ght

hi,im seeking for some help i want the member of my class to be of type string.. so, some of my member function to return a string but an error is keeping occuring .. iv tried to include the string heder file in the class heder file. it says missing …

Software Development c++
Member Avatar for moonL!ght
0
126
Member Avatar for ecklcakes

I am trying to create a program that when you enter a word which has a repeated pattern of letters immediately next to one another will reject the password, but otherwise accept it. E.g. London, kiwi, a and onion would all be accepted but Papa, aa, apple and banana would …

Software Development apple pascal
Member Avatar for dlhale
0
229
Member Avatar for yanz

[COLOR=#000080]I wonder if is it possible to link the GPRS modem and a I/O board together? I already have a VB6 coding and I know there is little that VB6 can do. Hope that you can help me out. 10z [IMG]http://www.xtremevbtalk.com/x_images/images/smilies/confused.gif[/IMG] [IMG]http://www.xtremevbtalk.com/x_images/images/smilies/tongue.gif[/IMG] [/COLOR]

Software Development c
Member Avatar for benhowdle89
0
167
Member Avatar for Renuka Devi G

Hello, I am learning perl programming but my problem is iam unable to find how the functions, commands,loops & conditions are working in a programme can anyone help me how to write a programme? what is the logic?

Software Development perl
Member Avatar for d5e5
0
209
Member Avatar for mahes_

I was reading through my text book on Java Programming...It showed two class methods compareTo() and equals()...It seems to be that there is no difference between this two...Can someone pls clear me on this..Thank You!

Software Development java
Member Avatar for rvntdhillon
0
223
Member Avatar for Erslich

Hi All, I am working on a Mandelbrot. I can draw the Mandelbrot to a bitmap and then paste it on the form. What I WANT to be able to do is when the user drags their mouse over an area, it redraws the Mandelbrot with the x and y …

Software Development c c# c++
Member Avatar for Erslich
0
149
Member Avatar for Stack Overflow

I've heard the curses library can be useful when trying to implement the handy DOS-only tools of gotoxy() and clrscr() using move() and initscr(). Though, there is a way to write your own gotoxy() in the Linux environment. This topic isn't touched often, so I would like to change that. …

Software Development c
Member Avatar for sudheer51
0
2K
Member Avatar for user543820

how to declare 1024 nodes of 4 bytes each in assembly language?

Software Development assembly
Member Avatar for user543820
0
240
Member Avatar for rcanter

I am getting this error on RetrieveBookList, RetrieveBook and StoreBookList, although it works on StoreBook. I think there is an issue with my generic list because when i just called one book, I didn't recieve this error. Cannot figure out where I went wrong though. Any help would be appreciated..... …

Software Development
Member Avatar for rcanter
0
123
Member Avatar for Griff1990

Hey guys, what i've been wanting my program to do is for the countdown to reduce time by 10 seconds when the melon hits the rope however, no matter how many different positions and variations i use with the code, even when the melons have vanished (through being hit by …

Software Development vb.net
Member Avatar for Griff1990
0
112
Member Avatar for invisi

What does int* resizeArray do that int resizeArray doesn't, what' the deference? And why do I delete nArray, and not newArray? [CODE]#include <iostream> using namespace std; void printArray(int* nArray,int size) { // code printing array } int* resizeArray(int* nArray, int oldsize, int newsize ) { int* newArray = new int[newsize]; …

Software Development c++
Member Avatar for Greywolf333
0
116
Member Avatar for ekailan

is three a way to mesure the amount of memory required during the execution of a C++ program , I am using visual studio 2008. Thanks

Software Development c++ visual-studio
Member Avatar for Unimportant
0
238
Member Avatar for jenzelcarmel

will someone help me pls with my case study, i need it very urgent this is my code for shortest remaining time first or the preemptive sjf. i need to know how to make gantt chart. [CODE]import java.applet.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class SRTF extends Applet implements …

Software Development java java-swing
Member Avatar for javaAddict
0
2K
Member Avatar for dorien

Hi, I have just installed CPLEX, and this has installed correctly. It put it's header files under: /home/dorien/ILOG/..../include/ Now I am trying to compile an example, which has: [CODE]#include <ilcplex/ilocplex.h>[/CODE] but I got: [CODE]/home/dorien/C++/cplex-build-desktop/../cplex/main.cpp:35: error: ilcplex/ilocplex.h: No such file or directory[/CODE] First thing I did was lose the .h... to …

Software Development c++ qt
Member Avatar for dorien
0
456
Member Avatar for Dean_Grobler

Hello! Attached is a file (GUI.png), I quickly did this in excel so.. It looks pretty crappy obviously. But when you take a look at the image and the layout of the components etc. What would you say is the best LayoutManager to use with this? GUI design is fun, …

Software Development gui java
Member Avatar for Adil Ahmed Zeb
0
136
Member Avatar for manalibhadula

We have two arrays .merging them is simple.i want to know how can i sort then after that without declaring a single memory after that....

Software Development c
Member Avatar for Unimportant
0
158
Member Avatar for Christ1m

Okay. This problem is from "Objects,Abstraction,Data Structures and Design using C++" by Elliot Koffman and Paul Wolf Gang pg127. #2 Implement an array- based program application that manages a collection of DVDs. The data for each DVD will consist of a title , a category, running time, year of release, …

Software Development c c# c++
Member Avatar for Unimportant
0
212
Member Avatar for yesamin

hello how can i do a for loop .. for a guessing game... and the only 5 oportunities to answer..... forexample no you wrong u have 4 guess left" heres my code !!1 this one just keeps giving me an unfishing loop grrrr!!! [CODE]#include <iostream> #include <string> #include <cstdlib> #include …

Software Development c++
Member Avatar for Unimportant
0
2K
Member Avatar for Pral

hi,i am new to C i am constantly getting the error "Segmentation fault" and i dont know how to deal with it. I can't find an error in my code. [code=c] #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <pcap.h> int main() { FILE *ifile,*ifile1; …

Software Development c ubuntu
Member Avatar for Pral
0
256
Member Avatar for aravind rao

Hello Consider this scenario: [CODE]File file;[/CODE] and later [CODE]file = new File("Hello.txt");[/CODE] [CODE]file = new File("hi.txt");[/CODE] As you all know, this will create two text files in java. How do I delete one of these files, as in if I only wanted to delete hi.txt?

Software Development java
Member Avatar for javaAddict
0
93
Member Avatar for Jobie111

Hello, First off, thank you to anyone who helps me in advance. I am about as new as one can be to Java, and am having some troubles. In the below code, the goal is to create a fraction. The rules are the denominator has to remain positive and I …

Software Development java
Member Avatar for javaAddict
0
114
Member Avatar for widapol

Hi all, when I declare an array: [CODE]datatype array[Index];[/CODE] what's max value of Index ?

Software Development c
Member Avatar for gerard4143
0
215
Member Avatar for bonafos

example output The price per kilo of rice is 30. Enter The kilos of Rice: 30 The price of rice is:900

Software Development java
Member Avatar for javaAddict
0
322
Member Avatar for stevanity

Hi Guyz, Here is a really tough problem to solve. Anyone can help out? You need to encode and decode a message in a parallelogram matrix. Eg. If input message is, "This is a problem" then you must put it inside a odd order matrix whose order is determined by …

Software Development c++
Member Avatar for stevanity
0
402

The End.