132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 | |
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 | |
#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++ | |
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++ | |
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++ | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
this is the python code [CODE]os.popen("explorer.exe " + os.getcwd())[/CODE] would jsut need a conversion to c or c++ | |
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 … | |
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 | |
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++ | |
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 | |
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 … | |
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++ | |
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++ | |
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++ | |
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 … | |
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++ | |
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]; … | |
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++ | |
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++ | |
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 | |
[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++ | |
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? | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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++ |
The End.