132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for daviddoria

Last week I asked about this so I tried to write another example to try it out. I have a Line class which needs to have and members of type Point and member functions that return type Point. The Point class needs to have member functions that return type Line …

Software Development c++
Member Avatar for daviddoria
0
407
Member Avatar for a1eio

Hi, I'm trying to create 6 buttons in a for loop using tkinter, each button's command points at the same function, but passes a variable (the loop counter.. in this case i) now for some reason.. when i run it, and click on each button, the function is supposed to …

Software Development python tkinter
Member Avatar for a1eio
0
143
Member Avatar for hazelle

this my proj.. i need to do a program that will display the names in file.txt into jlist please help me with this... and i need a button for save,add new,cancel,and close.. after the names displayed in the list..when it clicked,,it must display its corresponding address,and contact number...thanks..hope youll help …

Software Development java
Member Avatar for stultuske
0
107
Member Avatar for Enjoy

Hi all, In graphics mode, I need to read hexadecimal value from a file and assign it to variable for which i can add other value later. Eg : I need to read value 1007(hexadecimal) from a file and assign it to a variable. Later when i add 3 to …

Software Development c++
Member Avatar for mathmagic
0
225
Member Avatar for sammy_eyison

Hello VB Experts, Can anyone show me how I can sort items in a datalist alphabetically? I bounded the data using ADODC and Microsoft Jet 4.0 ole db connecting string. I would appreciate it much if anyone could help me solve this problem. Thanks in advance

Software Development visual-basic
Member Avatar for sammy_eyison
0
160
Member Avatar for clueless101

I can't get this to compile. It is for a homework assignment. The program asks user for 5 test scores and is to display letter grade and average test score. I was able to get the calcAverage method to work, but after adding the determineGrade method, I end up with …

Software Development java java-swing
Member Avatar for stultuske
0
133
Member Avatar for Rashul

The following is the program I wrote, but the result is not what is required exatly. Somebody please point me out to what I am doing wrong. The question: > Write a Java application that reads an integer value between 0 and 100 (inclusive), representing the amount of a purchase …

Software Development java
Member Avatar for stultuske
0
224
Member Avatar for alvin08

Hi guys, Im kinda new here and I'm looking around for some ideas regarding my current project. It's all about file restoration of deleted or corrupted files for Pen Drives. Im currently working on this project from completion of my college degree. Hope you guys can help. I haven't started …

Software Development visual-basic
Member Avatar for cometburn
0
81
Member Avatar for Ross Cox

I have the following sql statement in VB6 (latest VB SP, Win XP, SP2) that works fine in ado to sql server 2k5 but does not work in ado to access 2k3. [B]"Select ID, Make, Model, PlsPerBBL, Size, Processor, Location, From MeterData Where MeterNo = 'FQ-805 8" IN'"[/B]. I know …

Software Development sql visual-basic
Member Avatar for cometburn
0
134
Member Avatar for a_iyer20

The following piece of code is supposed to add html spaces in place of leading spaces. /** * Finds all leading spaces on each line and replaces it with * an HTML space ( ) * * @param s string containing text to replaced with   * @return the new string …

Software Development html-amp java
Member Avatar for masijade
0
2K
Member Avatar for ITKnight

i want to get all running process... how a can do this? anybody know how to do this? please help. thanks in advance...

Software Development visual-basic
Member Avatar for Jx_Man
0
162
Member Avatar for amitahlawat20

Could someone please why do we say that the syntax of enhanced for loop (for-each) in java in streamlined. Also, my java compiler does not compile programs containing the enhanced for loop. It gives errors like: for(int x:collection) { } ^ ; expected Could someone suggest solutions to this?

Software Development java
Member Avatar for jwenting
0
91
Member Avatar for sagedavis

Hi all, I am fairly new to java, as well as netbeans, but I come from a VB background. I am wanting to build platform independant aps and find the need to cross over into this world of Java, and netbeans (so far) is the best visual ide I have …

Software Development gui ide java java-netbeans java-swing
Member Avatar for jwenting
0
108
Member Avatar for chts12345

Hi all Is there anybody who can solve this problem? This is not a easy problem. Problem: Assume that George(S,X) is a function that returns a Boolean value, where S is a stack, and that the time complexity of George is O( log |S| ) , where |S| is the …

Software Development c++
Member Avatar for jephthah
0
138
Member Avatar for dgr81

I am getting compiler output that makes me think I have some sort of syntax error like a missing ';' or misaligned (). But I've checked my code thoroughly and can't find anything wrong. What else could cause this kind of error? I included the compiler output along with my …

Software Development c++
Member Avatar for dgr81
0
319
Member Avatar for R3B3L

Hello Everyone. Project outline: [QUOTE]I've to make a project which is the following: I'm a Car Distributor that distributes(sells) cars to different Car Dealers I should have a stock class with all the different types of cars I have ej(Toyota: 100, Mistubishi: 220, etc...) each type of car should have …

Software Development c++ database-design
Member Avatar for R3B3L
0
128
Member Avatar for superjacent

I'm self studying from the book, C++ Primer Plus Fifth Edition, by Stephen Prata. The following relates to Chapter 13, Page 699, Programming Exercise #4. One task is to write the derived class method definitions based upon the given prototypes. The following are the said prototypes. [CODE="cpp"]class Port { private: …

Software Development c++ ruby
Member Avatar for superjacent
0
189
Member Avatar for nurulshidanoni

I cannot compile my programming..abnormal programming..anybody whi knows where is my mistake? [code=C++] { int count, k; { count=0; myfile<<"i,j|"; for ( int i = 1 ; i < students.size (); i++ ) for ( int k = 1;k<students.at(i).examcode.size(); k++ ) { count=0; for (int colHead = 1; colHead <students.at …

Software Development c++
Member Avatar for nurulshidanoni
0
135
Member Avatar for alivip

Is python provide search in parent folder contain subfolders and files for example folder name is cars and subfile is Toyota,Honda and BMW and Toyota contain file name camry and file name corola, file name honda contain folder accord and BMW contain file name X5 Is there way to enter …

Member Avatar for woooee
0
153
Member Avatar for zwench

How can I declare the txt.InitialValue.text, txtSalvageValue.Text and TxtAssetLife.Text part of this code? Thanks in advance for any help. [code] msngInitialValue = ToSingle(txtInitialValue.Text) msngSalvageValue = ToSingle(txtSalvageValue.Text) mintAssetLife = ToInt32(txtAssetLife.Text) [/code]

Software Development vb.net
Member Avatar for bbqchickenrobot
0
112
Member Avatar for okcomputer24

I am wanting to produce a number matrix which will result in displaying the numbers in chronological order. For example, if a 3 x 3 matrix is desired, the output would result as such: [[1,2,3],[4,5,6],[7,8,9]] The first part of my code can produce the initial list. However I am unsure …

Software Development python
Member Avatar for woooee
0
76
Member Avatar for Saaddani

We're learning about functions in Intro to C++ and a problem is telling me my getInput() function is supposed to "get the user's weekly payrate" but at the same time it also says "remember the getInput() and displayInfo() functions are void." How can I get input if there the function …

Software Development c++
Member Avatar for Ancient Dragon
0
129
Member Avatar for kireol

I've been trying different things all weekend trying to figure out what is going on here. If I log in to my server via a PC and telnet, it comes through just fine. So I know it's my code here is messed up. Here's my code [CODE] while(1) { mbstowcs(CHAT," …

Software Development c++
Member Avatar for kireol
0
122
Member Avatar for Squeeker

Can an Interface file contain multiple classes? If so how would one implement this interface file (what specifications do you need to use to specify which class you are using)? If this is not legal or is a bad programming practice then please explain why. Thank you, Arielle

Software Development c++ legal
Member Avatar for Squeeker
0
154
Member Avatar for severman

hello everyone how do i sort an array of 6 number with out using any type of sort and then printing the array sorted? i have a source text file with this numbers {10 , 5 , 20 , 3 , 50 , 40}. i copied the text file into …

Software Development c
Member Avatar for jephthah
0
103
Member Avatar for hhheng

I'm showing a directory listing in one page now, but I want to show it in pages. Currently I'm working like this: [QUOTE]gtsee.com/cgi-bin/nph-dirsub.pl?invoice=invoices/merchant_invoice_999999 [/QUOTE] and the script for showing the listings are: my $sql=SELECT id, name, url FROM free_dirs; my ( $id, $name, $url) = @{$db_row}{qw/id name url}; print " …

Software Development perl
Member Avatar for jephthah
0
127
Member Avatar for hafhag

Thank you for your advancing helping. I do have a problem in how to encode a bank account that has : 1. account number,user name , intial deposit and balance (updatable) 2. that a specific user can see his balance 3. a user can withdraw money 4. a user is …

Software Development c++
Member Avatar for hafhag
0
288
Member Avatar for sayso36

Part I True/False ( 40 points , 2 point each) 1. If you have created an exception class, you can define other exception classes extending the definition of the exception class you created. 2. Using the mechanism of inheritance, every public member of the class Object can be overridden and/or …

Software Development data-structure gui java
Member Avatar for Ancient Dragon
0
370
Member Avatar for madfrenzy

hey I'm trying to run this program on netbeans on Ubuntu #include <windows.h> #include <GL/gl.h> #include <GL/glext.h> #include <GL/glu.h> #include <GL/glut.h> void myInit(void) { glClearColor(1.0,0.0,0.0,0.0); glColor3f(0.0f, 0.0f, 1.0f); glPointSize(9.0); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0.0, 640.0, 0.0, 480.0); } //<<<<<<<<<<<<<<<<<<<<<<<< myDisplay >>>>>>>>>>>>>>>>> void myDisplay(void) { glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_POINTS); glVertex2i(400, 350); glVertex2i(100, 130); glVertex2i(150, 130); …

Software Development c++ opengl ubuntu
Member Avatar for Comrade Ogilvy
0
115
Member Avatar for Jboy05

how do I Write a function call WelcomeMsg which displays the message "Welcome back! I wish you have a great Spring Break". Then write a calling statement for it?

Software Development c++
Member Avatar for Narue
0
85
Member Avatar for algo_man

Hi I am looking for an open source Java project such as (NotePad, Html Editor... etc) which consist of around 10 classes. I searched within source forge and I don't find a suitable one. I'll use this project in something called (Refactoring) which enhancing the code. This is not a …

Software Development engineering java open-source
Member Avatar for Ezzaral
0
80
Member Avatar for JamesMil

Here's a fairly simple piece of code to get a message from the user, limiting its length to 10 chars. Problems arise when the message is 10 chars or more, and the program enters an infinite loop. I think the problem is getline() leaving somethin on the stream, but I've …

Software Development c++
Member Avatar for Narue
0
87
Member Avatar for wonder_laptop

im in new to c, i did this is some program and i used the math library, but i was wondering how is the math library available within the the system? and how can we find the names of the files that correspond to that library? Also, i read something …

Software Development c
Member Avatar for jephthah
0
95
Member Avatar for Lord_Polo

I have a txt file where data is arranged in a list eg: 0001 0002 0003 0004 etc... Andy i would like to change specific columns to the same data eg: | 0a01 0a02 0a03 0a04 |

Software Development c++
Member Avatar for Lord_Polo
0
113
Member Avatar for LOgle0917

I am a beginning Prog Logic and Design student. I have a project to write pseudocode and draw a flow chart to do the following. From an Alumni File I have the following fields Alumnus Number Alumnus Name Year Graduated Major I want to get all Alumni With a Major …

Software Development
Member Avatar for Waseemn
0
170
Member Avatar for dkwantee

hello! I want to know about string tokenizer. i have a file of the following format:- Studentname StudentID Studentgrades each is separated by a tab. and the size of the file is unknown. I have to read each line using string tokenizer..Well, i dont know much about this, can someone …

Software Development c++
Member Avatar for Narue
0
91
Member Avatar for fnbhns

Dear Friends Hope all of you doing well with Java, I am new in the field of JAVA, But I am highly expecting an answer & your help that from where I can get skill test questions for simple simple code,,,,,,suppose codeing for prime number. Wish you all best. and …

Software Development java
Member Avatar for majestic0110
0
59
Member Avatar for yonderboy

I am an absolute beginner and a bit desperate. I found some answers to my question on google, but they are formulated in a way that is not very explanative and simple. I have a mainform (form1) and a custom made dialog (form2). Form1 has a ButtonAddString and a Label1. …

Software Development
Member Avatar for Narue
0
359
Member Avatar for majestic0110

Hi all, just a quick question.... is there ever a need to implement an infinite loop? in what situations would it be a good idea to use one (if any)? thanks for your time!

Software Development java
Member Avatar for majestic0110
0
157
Member Avatar for daymick

Hello, I would like to apply object-orientated programming in C++ to sets of 3D images. I would like to do 4 classes: -dataset:an array of 3D images, contain the nb of 3Dimages as an object -3Dimage:an array of 2D images, contain the nb of 2D images as an object -2Dimage:an …

Software Development c++ dataset
0
60
Member Avatar for amitahlawat20

I am not able to understand why in the following program it is mentioned in my book: The value of ~a is ANDed with 0x0f (0000 1111) in binary in order to reduce its value to less than 16, so it can be printed by use of the binary array. …

Software Development java
Member Avatar for Phaelax
0
66
Member Avatar for Run.[it]

Is the only way to stores strings as a variable in C++ is by having an array of type char?

Software Development c++
Member Avatar for Run.[it]
0
97
Member Avatar for Lalarukh khalid

hi every body.... i need little help regarding project which we have to made in C++..... can someone guide me tht which type of topices can selected...... i am very much confused....:S

Software Development c++
Member Avatar for Lalarukh khalid
0
278
Member Avatar for bmanoman

I'm trying to create a program where it takes the first character of the Last name and place the person in a group due to the name. I tried comparing the words to numbers i.e. a=1, s=19, etc. any help at all would be appreciated [code] package GroupAssignment; import System.*; …

Software Development java
Member Avatar for bmanoman
0
137
Member Avatar for dophine

Hi all, I would like to know in what situation template is used instead of inheritance and vice visa. examples are appreciated. I just know template is static binding while inheritance is dynamic binding. so if speed is concern, template is better.

Software Development c++
Member Avatar for Narue
0
139
Member Avatar for pmtheint

Hello everyone, I'm doing an assignment on VB.Net about cloning labels. I want to write a program of a form with a label. When the program is being run, the form will load with other 99 new lables which are being cloned. Each of which will have the same properties …

Software Development vb.net
Member Avatar for Easle
0
73
Member Avatar for taffer23

i am writing a c# program where i want to get only a single row per day.the database just has 2 fields 1)title 2)Message now i want to retieve and display only 1 message in the textbox and the database should automatically get the next row as soon as the …

Software Development
Member Avatar for taffer23
0
87
Member Avatar for Ripture

First of all, forgive the corny title, I couldn't resist once I thought of it. ;) I have a small assignment for a statistics class that had been giving me a little bit of trouble. How we did the assignment was left up to the students since it is a …

Software Development c++
Member Avatar for vmanes
0
126
Member Avatar for gsivaram

i need to bind socket address and port for ipv6 programming... i canoot able to bind global ipv6 address by using normal bind command.... help me to bind ipv6 address and port number

Software Development c socket-programming
Member Avatar for jephthah
0
120
Member Avatar for chrchcol

I am trying to write a command line bash script that will allow you to send mail to an email address using some variables. The email is a signup form with username and passwords. The subject line and most of the body will be hard coded. The script should ask …

Software Development email shell-scripting
Member Avatar for riotxix
0
213

The End.