132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for hudson5cp

Hi all, im a beginner to programming Python with Tkinter. I have a windows with 2 form: 1 Listbox and 1 Textarea that load a txt file. The Listbox contains a name of chapters. How can I make because click on the listbox scroll the text inside the textarea a …

Software Development python tkinter
Member Avatar for hudson5cp
0
754
Member Avatar for kpnprakash

hi, i am developing a vb application to print a bill using printer object.i have developed the whole application but while executing it showns an error(runtime error '380': invalid property value.please help me to do it. my codes are: [code=vb]Private Sub Command1_Click() MousePointer = 11 'mouse pointer busy while printing …

Software Development printer visual-basic
Member Avatar for kpnprakash
0
449
Member Avatar for soomedh

Hi I am facing a problem with listvariable of listbox. I have a global sequence is python. which I am assignning as listvarible to a listbox widget. Listbox is neither showing default nor runtime values of sequence. Can anybody help

Software Development python
Member Avatar for soomedh
0
180
Member Avatar for doggyx5

Hi, I am new to VB6. Currently I am suppose to write a programme for checking book stock.whenever if there is any insufficient books in the data i will have to gather all the insufficient name of any book in a msg and send out to the user. For my …

Software Development visual-basic
Member Avatar for debasisdas
0
260
Member Avatar for yonex

#include <string> #include <map> #include <iostream> using namespace std; struct arrtibute { const char* name; int id; }; typedef std::map <std::string, arrtibute*> AtrributMap; AtrributMap atrributeMap_g; const int MaxCount = 3; void InitData() { for (int i = 0; i < MaxCount; i++) { static arrtibute atrr; std::string str; cout < …

Software Development c++
Member Avatar for Laiq Ahmed
0
137
Member Avatar for WonderWomen204

hey there. This is Erinn Hansen and I have a quick question about this assignment I am working on. I pretty much have it, except for it's a little backwards. This assignment is: Write a program which accepts the following user input: priceOfHouse, numMonths Print an amortization chart as shown …

Software Development c++
Member Avatar for WonderWomen204
0
174
Member Avatar for fluidDelusions

Hello! I'm having a very difficult time with this problem. What I'm trying to do is generate a sine wave for a specific frequency and output it as raw pcm data to a file. The sine wave is generated as follows: [code] samples[i]=static_cast<int>(32767 * amplitude * sin(static_cast<double>(i)*scale) ); [/code] where …

Software Development c++
Member Avatar for ims
0
1K
Member Avatar for christiangirl

I'm getting this error: term does not evaluate to a function taking 1 arguments on the bolded and underlined parts of this code. I know this code isnt that great...has some extra stuff it doesnt need, but I'm working on that. This is pretty much the first program I've made …

Software Development c++
Member Avatar for christiangirl
0
119
Member Avatar for Race

I new to programming and am having troubles writing C++ programs and would really appreciate help with the following question. Write a C++ program that reads from keyboard 3 words, with proper input prompt. Then for these 3 words that were read, the program displays first the word longest length, …

Software Development c++
Member Avatar for Race
0
76
Member Avatar for Megaz221

Hi, I'm back again. Anyways, I have been working on a little project on my own. But I have a question about something. How would jumble characters in a string around. Let's say user inputs a word computer , the program then jumbles the characters in the string to mpcotreu. …

Software Development c++
Member Avatar for VernonDozier
0
280
Member Avatar for sreelatha

Hi, I m a newbiee to python, I would like to write one program, and i want that program should run automatically when my system time is 10 am. Is it possible to do it, if so can any one throw a light to help me Any kind of help …

Software Development python
Member Avatar for sreelatha
0
145
Member Avatar for swappy

I`m very much new with vb.net..I want to learn it so I was just doing it from VB 2005 for Dummies.I was just able to create a simple button and customize it...;) When I reached a chapter "Dynamically editing data with the Data Sources window" I was not able to …

Software Development vb.net
Member Avatar for swappy
0
93
Member Avatar for iiz

this is the python code [CODE]os.popen("explorer.exe " + os.getcwd())[/CODE] would jsut need a conversion to c or c++

Software Development c++ python
Member Avatar for iiz
0
98
Member Avatar for GPXtC02

i'm looking to get a first name followed by four scores and finally a last name, stored into multiple arrays (a char *array, a float array, & a char *array). getting the scores i understand however the names are pointer arrays. as far that goes what am i doing wrong …

Software Development c++ ios
Member Avatar for vmanes
0
495
Member Avatar for Raghavansat

Hi I am new to scripting.... i want to write a simple script file that executes the following command `java -version`.... i have to read the output given by this command inside my script.... [code] var_name=`java -version` echo $var_name [/code] just displays java -version i want the output of java …

Software Development shell-scripting
Member Avatar for eggi
0
113
Member Avatar for leverin4

Ok, I have a program that uses three classes and a driver program, all compiled separately. One class is a Date class. The Date class header looks like this: [code=c++]#ifndef DATE_H #define DATE_H #include <iostream> using namespace std; class Date { public: // initializers Date(); Date(int day, int month, int …

Software Development c++
Member Avatar for Lerner
0
130
Member Avatar for carly

ok....not too sure how i could do this one, i have to create a vb .net pc radio application but i have to create it so that the user can scan for radio stations. when in scan mode the radio will scan through frequencies and pause for 3 seconds when …

Software Development vb.net
Member Avatar for bwkeller
0
123
Member Avatar for leroi green

Hi all, I got a code in 2 programs that allow me to open the file, write the file, then close it. BUT...I want to open it back up and read it then close it again and i don't know how to. Below is what i already have but i …

Software Development java os-x unix
Member Avatar for leroi green
0
125
Member Avatar for pship07

I need to make a program to do the following: 1. ask the user for the name of the input file, and open/read it. 2. For each well-formed cout statement, i must execute it. For any malfunctioned cout statement, print an error message. the syntax of a well-formed cout statement …

Software Development c++
Member Avatar for VernonDozier
0
105
Member Avatar for demroth

I am working on sorting strings of integers with a radix sort. I am confusing myself on the code logic however. I have a file with integers, one to a line, and padded so 1 would be 001. I want to read those integers as strings so I can later …

Software Development c++
Member Avatar for demroth
0
154
Member Avatar for daviddoria

I found _isnan() in float.h for VS2008, but I would like to SET a variable to a NaN intentionally, not check if it is one. Is this possible? Thanks, David

Software Development c++
Member Avatar for daviddoria
0
291
Member Avatar for jlaw1027

We're making a queue that simulates a line at the DMV and aftersomeone goes through the line, or queue, we cant to take that persons name and add it to a new queue to display in the final stats of how many people have gone through and the total amount …

Software Development java queue
Member Avatar for Ezzaral
0
95
Member Avatar for GPXtC02

is there a built in function to deal with numbers similar to how the swap member function (first.swap(second);) deals with strings? thanks

Software Development c++
Member Avatar for GPXtC02
0
262
Member Avatar for Ryano24

I am having some trouble getting this code into C++...Can somebody help me! [code] [inlinecode=cpp] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int random_1(); int main() { int i = 0; int j = 0; int check; int check_1; char play_again = '\n' ; int tortoise[70]; int hare[70]; …

Software Development c c# c++
Member Avatar for Majestics
0
100
Member Avatar for yarita

can anyone help me fix this??? I have to do all of this in functions, but i keep getting somethings wrong. Thanks! Sample Run (The user’s entry is in bold) Enter the Students Id:[B]5656[/B] Enter how many courses-up to 3: [B]6[/B] Invalid number! Try again Enter how many courses-up to …

Software Development c++
Member Avatar for Majestics
0
118
Member Avatar for tootypegs

hi, im having trouble when outputing the data from my program. i am trying to output numerous amounts of data into 1 txt file when running through a loop, but everytime it writes to my file it overwrites the previous data stored with in it. Can anyone offer some advice …

Software Development c++
Member Avatar for tootypegs
0
116
Member Avatar for wsn

Hi, I'm practicing for my test and I'm really confused on this question This is the content of make file assuming that part1 and part3 has been modified. list the sequence of command activation in the correct order for make to run I understand it looks at the target then …

Software Development c
Member Avatar for Salem
0
113
Member Avatar for legendarya49

[code]#include <iostream> #include <time.h> #include <fstream> #define MAXSIZE 1000 #include <cstring> #include <string> using namespace std; class Students { public: string firstName; string lastName; string social; double gpa; Students() { firstName = "Adam"; lastName = "Wilson"; social = "000-00-0000"; gpa = 0.00; } Students(string newSocial, string newFirst, string newLast, double …

Software Development c++
Member Avatar for legendarya49
0
144
Member Avatar for terrif8888

I have created a gui using extend frame. What my program needs to do is replicate a DNS server, the DNSServer code has to be its own class, So to my project i have added class. How do i acces the methode within the DNSServer Class?

Software Development dns gui java
Member Avatar for majestic0110
0
94
Member Avatar for tactfulsaint

Please i need help with My Login prog that can enable two categories of people to login that is the administrator and a user below is my code snipet bcos i am stucked. import java.util.* ; import java.awt.* ; import java.awt.event.* ; import javax.swing.*; public class HeartLandLogin extends JPanel implements …

Software Development java java-swing user-interface
Member Avatar for tactfulsaint
0
125
Member Avatar for dv1r

how do i use a .txt file in C like read and save form and into it... any help will be good thenks :)

Software Development c
Member Avatar for dv1r
0
130
Member Avatar for jmines

I am new to streams and files in C++. I am having a problem in this code. When i run the program, and after entering the password, a message is displayed "error opening infile". Why the program is not reading from the file or opening it? [CODE]#include<iostream> #include<string> #include<fstream> #include<iomanip> …

Software Development c++ file-system ios
Member Avatar for jmines
0
101
Member Avatar for vaid.abhishek

Okay, guys, after running a thread bout tht nth_element problem [ which is still not solved ] I again have a problem. The code I give below [ I have also attached the file ], is simply a MergeSort procedure. It works wonderfully well. I have enabled validation of it …

Software Development algorithm c++
Member Avatar for vaid.abhishek
0
140
Member Avatar for wubeikk

Assignment #1 First Class – extended version 1. Extend the class myTime from the previous assignment so it includes methods of all types (excluding operators) discussed during the lecture. The constructors and the destructor should print out a notifying message on the screen. 2. Write a function with the copyMe …

Software Development algorithm c++
Member Avatar for wubeikk
0
184
Member Avatar for rem0404

so i'm trying to fix my "load" function, but i can't seem to get it to work correctly. here's the load function i have currently: [CODE]void load(string messages[], int keys[], int& numElements) { int index = 0; int key; string message; while(index < MAX_SIZE && key > 0) { cout …

Software Development c++
Member Avatar for rem0404
0
162
Member Avatar for ulrik04

Hello :) I'm making a very simple game in C++ (very much like the old DOS game Supaplex if anybody know that :P). I'm using the windows API, not GDI, DirectX or anything like that. I've only just begun learning the Win Api some days ago :) I have the …

Software Development api c++ windows-api
Member Avatar for ulrik04
0
77
Member Avatar for Dr Windows (XP)

Hey guyz i'm a newbie in java and I would like to create a program to find all palindrome prime numbers between two integers supplied as input (start and end points are excluded). I've started but now i'm stuck... Can u help me??? import java.util.*; class Question4{ public static void …

Software Development java
Member Avatar for Dr Windows (XP)
0
166
Member Avatar for ecorg

Hello, I am fairly new to c++ and I am wanting to find out some information about creating a calculator that can calculate a noisy input stream e.g. 1hgj6-fgkj7 = 14 (1+6+7) 3ku5jf3 = 11 (3+5+3) I have looked into some tutorials when creating a calculator in C++, although none …

Software Development c++
Member Avatar for Salem
0
83
Member Avatar for varsha0702

Hi.. I have written a C++ program to compress and decompress jp2k files. But when I am executing this program the CPU usage is 100%... Can any one tell me : why is it so and how to reduce CPU usage? I have compiled same code on windows and Linux …

Software Development c++
Member Avatar for Salem
0
187
Member Avatar for rukshenaa

implementing dijkstra algorithhm using fibonacci heap.................. can anybody help me with the coding for the above problem................. i have implemented using array.... now i hav to implement it using fibonacci heap.........

Software Development c++
Member Avatar for Salem
0
185
Member Avatar for wsn

Hi, I'm trying to get two small programs that use macro to work but neither of them is doing so the first macro selects the least significant bit from an unsigned char [code] #include <stdio.h> #define LBIT(X) (((X)&1)?1:0) int main() { unsigned char a; printf("Enter a character:\n"); scanf("&c",a); printf("Least signficant …

Software Development c
Member Avatar for wsn
0
102
Member Avatar for Troula

This is a code i made, for checking if a nickname and password exists.. I have two question about this code... 1) In line 38 i close "fuser", but if i try to use this again there is an error. So, i used "fpass". Is there any way to use …

Software Development c++
Member Avatar for Narue
0
111
Member Avatar for Beginner2008

heres what i want to do. i want to add a button somewhere here. [IMG]http://aycu20.webshots.com/image/49619/2006148200319099889_rs.jpg[/IMG] When that button is clicked. The print screen function will caputure the form and i'll be getting something like: [IMG]http://aycu16.webshots.com/image/51455/2005462669515036518_rs.jpg[/IMG]

Software Development vb.net
Member Avatar for Beginner2008
0
123
Member Avatar for rrocket

Is there something else I have to do to get a message with an error occurs other than this: [code=vb] On Error GoTo Handler 'Code that will cause an error Handler: msgBox(Err.Description) [/code] The Handler gets thrown but it is empty.... Just a message box comes up with no text.

Software Development visual-basic
Member Avatar for Jx_Man
0
120
Member Avatar for saurabh singh

I want to create a control in which left edge should move when it's width is reduced and vice versa.Generally when width is reduced or increased, right edge (of control) moves. Means I want to keep the control fix at it's right edge during change of it's width. I have …

Software Development
Member Avatar for saurabh singh
0
70
Member Avatar for oneguy

than the java version in this case [url]http://razi2.blogspot.com/2008/04/why-is-c-slower-than-java.html[/url]

Software Development c++
Member Avatar for Narue
0
62
Member Avatar for ITech

i have typed this code within my form.. [CODE=vb]Private Sub Command1_Click() SQL = "select * from cusinfo" Call connrecordset(CustomerInfo, SQL) With CustomerInfo CustomerInfo.MoveLast !Name = txtName.Text !Address = txtAddress.Text !DOB = DTDOB.Value !Age = DateDiff("yyyy", DTDOB.Value, Now()) + Int(Format(Now(), "mmdd") < Format(DTDOB.Value, "mmdd")) !Sex = cmbSex.Text !PassportNo = txtPassport.Text !Country …

Software Development open-source visual-basic
Member Avatar for QVeen72
0
96
Member Avatar for dinilkarun

i have the things listed below dim col_values as new collection dim var_list(100) as variant i want to add var_list1 to col_values under a key say"k" i try using this col_values.add var_list1,"k" but this is throwing up an error. Please help me........

Software Development visual-basic
Member Avatar for QVeen72
0
89
Member Avatar for rzr.copperhead

hi all guru, here, my problem is re-running the program, the vector attribute of Service Class was listed unreadable characters.. WHY?? Below is my following code : Service.h code: [code] class Service{ protected: char servType[100]; vector<Medicine> vecMedicine; // the purpose that i created a vector attribute is a service can …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
202
Member Avatar for _Nestor

I was trying to format the string of type CString so that when you input for example once upon a time in Mexico it would return Once Upon A Time In Mexico [code] m_VideoName.Replace(m_VideoName[0],toupper(m_VideoName[0])); for(int i=1; i<m_VideoName.GetLength(); i++) { if(isspace(m_VideoName[i])) { m_VideoName.Replace(m_VideoName[i+1],toupper(m_VideoName[i+1])); } } [/code] however it keeps returning Once …

Software Development c++
Member Avatar for _Nestor
0
100

The End.