132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for mbrinkley

Hello. I am in a beginning C++ programming course in which we have just finished loops. I have been asked to plan, code, and execute a program to do the following things: Ask the user for the file name, then calculate an average of the numbers and display two lists …

Software Development c++
Member Avatar for Ancient Dragon
0
119
Member Avatar for didijc

What is the best way to implement a rubber band /focus rectangle on a web page? In other words, I want to be able to navigate to a web page like people.com and use the rubber band / focus rectangle to some html content (images and/or text)... ...and I do …

Software Development vb.net
Member Avatar for jeffreyk16
0
171
Member Avatar for leviaeon

i have an error with this sample code i got from the net... the error says: TypeError: unsupported operand types for +: 'int' and 'str' here is the code: from time import ctime [COLOR="Red"]import[/COLOR] codecs [COLOR="red"]import[/COLOR] inbox, appuifw box = inbox.Inbox() msg = box.sms_messages() f = [COLOR="red"]codecs.[/COLOR][COLOR="Green"]open[/COLOR]('E:/Others/listSMS.txt', 'w', 'utf8') # …

Software Development python
Member Avatar for leviaeon
0
93
Member Avatar for hlmjohnson1981

Create a scholarship program that will choose a recipient based on the highest GPA using the following features. Create a class of type student . - Members will include: name, GPA, Rank (year) - Make sure all data is private and a ll functions are public. - Write member functions …

Software Development c++
Member Avatar for hlmjohnson1981
0
103
Member Avatar for lishannx

ive a drag and drop program and i want to allow drag and drop mulitple times and not one time. after being drag and drop, the created picturebox will also be created multiple times. is it correct to use for loop? pls guide.thank u. rgds.

Software Development
Member Avatar for lishannx
0
153
Member Avatar for mikeyboy02

Hi I'm new to java and working on a program where I want to show the number of rentals for one person in one box and the total rentals in another box. I am having trouble storing the variable or it is not recognizing that I want to keep adding …

Software Development java
Member Avatar for mikeyboy02
0
109
Member Avatar for chipbu

Hi guys, I need some help to create an array with character indexing like this: A B C D E .... A 0 0 0 0 0 B 0 0 0 0 0 C 0 0 0 0 0 D 0 0 0 0 0 E 0 0 0 0 …

Software Development
Member Avatar for kplcjl
0
1K
Member Avatar for pateldeep454

I am having error in the following code. What should I do to fix it? Also, how should I call it in main method to test the code? please HELP :( [CODE] package sortingelements; public class Main { public static void main(String[] args) { } public int indexOfMaxInRange (int[] myArray, …

Software Development java
Member Avatar for Danny_501
0
124
Member Avatar for K0ns3rv

Hey guys. So i've created a static library project and written the code ( one header file and one cpp file ). I have built it and it resulted in (.a) file. I told the compiler where to look for the header file and the library file but my example …

Software Development c++
Member Avatar for kay25
0
163
Member Avatar for J.Killa

In my program, I have to input a word and then a character. The program will tell me how many times does the character appear in the word...my problem is that I have to find this character with the find(str,ind)...I know the ind is the index and can be manipulated …

Software Development c++
Member Avatar for J.Killa
0
305
Member Avatar for LostGurl

Hello.. Im doing some simple text processing using Python which include indexing, splitting and tokenizing text from folder. i want to improve the stemming and tagging process using MontyLingua by importing the Monty library for tokenizing and tagging. I dont know how to edit and call them in my coding. …

Software Development gui python
Member Avatar for PassBy
0
484
Member Avatar for cgyrob

I have an app where I keep getting this error. This is a c# .net 3.5 app running on a windows 2003 server with IIS 6.0 connecting to an Oracle 10g db. This app had no problems during testing where it was connecting to an Oracle 9i DB but once …

Software Development oracle
Member Avatar for cgyrob
0
202
Member Avatar for bandit711

Every time i compile this code i come up with a additional set of numbers, but i don't know why. [CODE] #include <iostream> #include <stdlib.h> #include <iomanip> #include <string> #include <fstream> using namespace std; void calculateAverage(double quiz1, double quiz2, double quiz3, double test4, double& SAverage); int calculateGrade(double grade); int main() …

Software Development c++ file-stream ios
Member Avatar for bandit711
0
165
Member Avatar for VernonDozier

Hopefully this is fairly basic. I've never used enumerated types in Java. I'm sort of trying to take my C concept of them and make it work in Java. Basically use them as constant integer values. That might be putting the square C block into the round Java hole. I'm …

Software Development java
Member Avatar for VernonDozier
0
145
Member Avatar for MoZo1

Hi! I have a windows mobile 5 device, and I would like to make some programs for it. I need a free development environment (compiler and librarys) that runs on winxp. It would be a very big help if I could use my NetBeans which I have experience with. It …

Software Development c++ smartphone
Member Avatar for MoZo1
0
102
Member Avatar for seacase

I seem to have hit a wall with implementing my own version of merge sort. I can sort the list fine in ascending order, but once I try to reverse the ordering (passing in a boolean), I get an ArrayIndexOutOfBounds error. I'm guessing that what I'm experiencing is some sort …

Software Development java
0
46
Member Avatar for vbx_wx

[CODE] void open_key(HKEY* Key , HKEY key , LPCTSTR subkey) { cout << Key[1] << endl; RegOpenKeyEx(Key[1] , subkey , 0 , KEY_ENUMERATE_SUB_KEYS | KEY_QUERY_VALUE , &key); } int main() { HKEY keys[] = {HKEY_CLASSES_ROOT , HKEY_CURRENT_USER , HKEY_LOCAL_MACHINE , HKEY_USERS , HKEY_CURRENT_CONFIG}; open_key(&keys[1] , hkey , "Software"); } [/CODE] …

Software Development c++
Member Avatar for vbx_wx
0
72
Member Avatar for eggmatters

I posted this on Oracle Forums to the sound of crickets chirping. This question entails more Oracle specific tasks then java but since my code is in java, here goes" Hello, I have a java package where I am attempting to implement a database Change notification registration and listener. I …

Software Development java operating-system oracle sql
0
156
Member Avatar for kjock002

the program below simulates a game of craps and its pretty much done except for a way to get the while loop to stop. i was trying to get an input from the user when they wanted to stop rolling and to enter "n" for no but im not sure …

Software Development python
Member Avatar for jcao219
0
116
Member Avatar for kjock002

so im trying to simulate a walk where the user will randomly take either a step forward or backwards, hence using the probability of a coin flip. i think the program is pretty much self explanatory. i just need help debugging it because it doesn't seem to work properly yet. …

Software Development python
Member Avatar for jcao219
0
182
Member Avatar for rkp728

If there is a pointer member in a class. Eg.: [CODE]Class XYZ { Int *x; Char *c; }[/CODE] Then in such a case what all precautations do we need to take while handling such a member and the class?

Software Development c++
Member Avatar for jonsca
0
100
Member Avatar for jaredleo999

public class Welcome extends JFrame { private Toolkit toolkit; private static String passy = "123456"; public Welcome() { setSize(300,550); setTitle("Welcome"); setDefaultCloseOperation(EXIT_ON_CLOSE); JPanel panel = new JPanel(); getContentPane().add(panel); panel.setLayout(null); JLabel label = new JLabel("Enter Password"); JPasswordField password = new JPasswordField(6); password.setEchoChar('*'); password.addActionListener(new AL()); label.setBounds(0,0,300,25); password.setBounds(100,0,200,25); JButton b1 = new JButton("1"); b1.setBounds(0,100,100,100); …

Software Development java
Member Avatar for jaredleo999
0
648
Member Avatar for Etherwind

I'm getting a compiler error in one of my .c's that I don't understand. I'm getting [icode] Tree.c: In function 'newTree': Tree.c:301: error: expected declaration or statement at end of input [/icode] What I don't understand is that newTree and line 301 are completely separate functions. I can get the …

Software Development c
Member Avatar for Etherwind
0
174
Member Avatar for DanLB

Hi all - hope you can help me with this. I'm trying to search through a vector of struct's; I'm able to loop through the vector using a simple for() loop, but i'm unable to use the generic find(). Secondly i want to delete a element if there's a match. …

Software Development algorithm c++
Member Avatar for kay25
0
2K
Member Avatar for Lukezzz

I wonder how it is possible to retreive a string from a function that is generating this string. How is it possible to get the string "SendThis" when presssing the button1 in this case and declare it to getgenerateString ? [code] private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { String^ getgenerateString …

Software Development c++
Member Avatar for Lukezzz
0
156
Member Avatar for vino4all

How to get the following output using c? ---1 --12 -345 6789 Please guide me with the code. It can be a blank space instead of '-'.

Software Development c
Member Avatar for 0x69
0
369
Member Avatar for wildgunman

I'm writing a program which searches through a list of medium sized text files for a particular keyword string. This string may appear more than once in the file. The files are generally parsed out for readability, so they have hard returns at the 80 column mark within paragraphs. As …

Software Development perl regex
Member Avatar for d5e5
0
122
Member Avatar for iliali16

Hi guys I am not a c# guru and i think this is a good question to ask here. I have a pannel in which i am writing coordinates but since the cordinates change in every loop i when they change the panel gets the new coordinates on top of …

Software Development
Member Avatar for iliali16
0
100
Member Avatar for JHus00

Hey everyone. I want to call dateConversion and send along the date string which I do with this "dateConversion(dateString);" I want that to print the month day and year. I will have to do it at this line "cout << "on " << date << endl << endl;". When I …

Software Development c++
Member Avatar for Nick Evan
0
136
Member Avatar for #define

hello everybody! i have a question that i want to reverse the queue in BigO(1) time and space without effecting its enqueue, dequeue ,print and other function. thnx in advance 4 answering

Software Development c++ queue
Member Avatar for Narue
0
83
Member Avatar for teen-omar

Hey guys, I'm stuck at a problem. Check out the code: [CODE]import java.util.*; class testAll { public static void main(String[] args) { Scanner input = new Scanner(System.in); ArrayList pointsArray = new ArrayList(); ArrayList linesArray = new ArrayList(); System.out.println("Enter amount of sides: "); int sides = input.nextInt(); if (sides <= 2 …

Software Development java
Member Avatar for teen-omar
0
282
Member Avatar for Mena samy

hello I am trying to send an array of character but when i receive it in the other processor i receive it with garbage !!! any suggestion? [CODE] #include <stdio.h> #include "mpi.h" int main (int argc, char *argv[]) { MPI_Status s; int size, rank; char line [128]; //char* str="hjfjh"; static …

Software Development c
Member Avatar for Mena samy
0
189
Member Avatar for Geodude0487

[QUOTE=khanhtrung;460562]Hi omoz4real. In your code,i found that you hadn't opened your connection before executed a command,so you probably couldn't connect to the database. If you didn't intend to execute a command which return a table as a result,you should use another way.There is [B]xxCommand.ExecuteNonQuery().[/B] I have a small attached program …

Software Development open-source
Member Avatar for Geodude0487
0
112
Member Avatar for anjal_pawar

On line no 1 there are 1 star On line no 2 there are 3 stars On line no 3 there are 5 stars On line no 4 there are 3 stars On line no 4 there are 3 stars On line no 5 there are 1 stars * *** …

Software Development display java
Member Avatar for javaAddict
0
124
Member Avatar for plowguy

First time posing on this forum. Need some help performing simple math with date functions in C#. Having problem with defining an integers value for search end span markers. i.e. EndSearch = today BeginSearch = (today - 14 ). I have tried using DateTime like this DateTime EndSearch = new …

Software Development sql
Member Avatar for plowguy
0
77
Member Avatar for vodkasoda

OK, this is probably very simple and it's likely that I am very simple, but it's bugging me big time :$ !!! I have never written anything in VB before, a few things in VBA, but this is my first venture in to VB.net ... so sorry if I am …

Software Development vb.net
Member Avatar for vodkasoda
0
2K
Member Avatar for cengineer

I have the following code to generate combinations of string for a small list and would like to adapt this for a large list of over 300 string words.Can anyone suggest how to alter this code or to use a different method? Basically what i need to do is generate …

Software Development vb.net
0
104
Member Avatar for girlscodetoo

Hi Guys! I am a Python noob. I wanted to merge data and eliminate duplicates. I have the solution. Now I am stuck at dumping the dict contents to MySQL. Any help is really appreciated. Data : [QUOTE]a b c d e f key dupe -------------------- 1 d c f …

Software Development mysql os-x python
Member Avatar for girlscodetoo
0
184
Member Avatar for Trents

Okay, so I am EXTREMELY new to programming and my teacher is not exactly a great one, sadly. I am attempting to sort a string alphabetically. For example: Prompt to enter name: Alex Joe John Bill Cait Then sort and print: Alex Bill Cait Joe John Here's what I have …

Software Development c++
Member Avatar for invisal
0
147
Member Avatar for JJBallanger

Hi there, As a student I am new to python and am struggling with the following program I have been tasked to create. My code so far is like so. The idea is that the function will take a guess x, incorporate an arbitrary function f(x) and then take feps, …

Software Development python
Member Avatar for JJBallanger
0
231
Member Avatar for empror9

hello guys, i want to programming a simple game. please see these picures first picture: [URL="http://img519.imageshack.us/img519/6323/boardf.jpg"]http://img519.imageshack.us/img519/6323/boardf.jpg[/URL] second picture: [URL="http://img151.imageshack.us/img151/9964/18245360.jpg"]http://img151.imageshack.us/img151/9964/18245360.jpg[/URL] last picture: [URL="http://img25.imageshack.us/img25/3871/21456530.jpg"]http://img25.imageshack.us/img25/3871/21456530.jpg[/URL] "Jump over a token and capture the token. Every move must be a jump! Only horizontal and vertical moves are allowed, no diagonal movement in the game. The …

Software Development c++
Member Avatar for Salem
0
121
Member Avatar for scratchwiz

[CODE]private void eaddbtnActionPerformed(java.awt.event.ActionEvent evt) { if(eaddbtn.getText().equals("Add")){ eaddbtn.setText("Save"); eupbtn.setVisible(false); // edeletebtn.setVisible(false); ecanbtn.setText("Cancel"); } else{ Enrollment e = new Enrollment(eid_txt.getText(),ecode_txt.getText(),egrade_txt.getText() , emarks_txt.getText() ); // ERROR APPEARS IN HERE e.SaveEnrollment(); } } [/CODE] i want to add int value to mysql database...how can i do that? how to convert int value to string …

Software Development java
Member Avatar for scratchwiz
0
148
Member Avatar for nikolaos

I have a public class change which holds the private static int [B]commonresource[/B] and the methods : public synchronized void [B]increment[/B](int inc) public synchronized void [B]decrement[/B](int inc) to handle the variable commonresource I have a main class which starts 2 new threads "nikos" , "fosses" with a constructor that takes …

Software Development java
Member Avatar for JamesCherrill
0
113
Member Avatar for tjfitz68

Hello, I'm likely overlooking something but I'm having a problem with a Decimal variable dropping a zero which is make the value incorrect. After a bit math, on other variables, I'm ending up with .9 instead of .09 While debugging, if I display the results of the calcuation it's shows …

Software Development vb.net
Member Avatar for tjfitz68
0
73
Member Avatar for alabay2010

Hello everyone! I have task to write a program that would read a data from any txt file and visualize it on a bar chart using turtle module. I have to structure the program using modules and functions for nice design. The program must be fit for any other txt …

Software Development data-structure python
Member Avatar for TrustyTony
0
624
Member Avatar for einas

Write a class datetype it can perform the following operations on a date , in addition to the operation already defined : 1-set the month 2-set the day 3-set the year 4-return the month 5-return the day 6-return the year 7-test the year is a leap year 8-return the number …

Software Development c++
Member Avatar for einas
0
164
Member Avatar for Lukezzz

I have a little spoky problem here. I really cant understand what it is. I am reading a file that is completely empty. But still the second MessageBox is showing this string: "22" I cant wrap my head around why if( line != "" ) is executing and no character …

Software Development c++ file-stream
Member Avatar for Lukezzz
0
110
Member Avatar for luvthug

I am having problem with the following code `public void grow(int size)`, can't seem to get it working import ou.*; import java.util.*; /** * Class DiscoLight * This class uses the Circle class, and the Shapes window * to simulate a disco light, that grows and shrinks and * changes …

Software Development java javascript user-interface
Member Avatar for drohnwerks
0
590
Member Avatar for rena0514

my previous button does go to the previous file: [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.io.*; public class StudentAddress extends JPanel { private JButton submit, clear, next, display, previous; private JLabel first, last, street, town,state, zip; private JTextField fName, lName, hStreet,hTown,hState, hZip; private int studentCount=0, displayCount=0, i; //studentCount …

Software Development java java-swing
Member Avatar for moutanna
0
103
Member Avatar for COKEDUDE

Could someone please tell me what these errors mean and how to fix them. [CODE]inputter.c: In function âget_next_tokenâ: inputter.c:21: warning: initialization makes integer from pointer without a cast inputter.c:17: warning: unused variable âcur_posâ[/CODE] [CODE]/* Get an RPN expression from the keyboard. * Accepts q as indictation that user wants to …

Software Development c
Member Avatar for jephthah
0
178

The End.