132,726 Archived Topics
Remove Filter ![]() | |
hello guys... i have a bit of a problem with my assignment im working on :( what the problem is there is a function which accepts a string, a keyword and an array of keywords to replace the keyword occurrences with for eg, def function(text, keyword, keyword_list): and for eg, … Software Development python | |
Make a program so that the function main is merely a collection of function calls. Your program should use the following functions. a. Function openFiles: This function opens the input and out files, and sets the output of the floating point numbers to two decimal places in a fixed decimal … | |
Its an exact change program but the output is not right. I don't know whats wrong in it. Can somebody please help me with program. #include <iostream> using namespace std; int main () { int twenties, tens, fives, singles, quarters, dimes, nickles, pennies; double purchase, pay, rempay=0; cout<< "please enter … Software Development c++ | |
I have been using GSL, but I find it very awkward to work with. Does anyone have a recommendation for another one to try? I can't seem to find any on google. Thanks, David | |
![]() | Hello there people! :D I am working with a lab, where we are supposed to finish a Memory Game. We are supposed to create a "Make Move" function, and that it behaves in a correct way. It is supposed to get the X,Y coordinates of where the user klicked, calculate … Software Development java ![]() |
hello,,can you help me with my problem??if it's okey for you,,, right now,,we are required to make a calculator using only string..ex: i can only use the imports: JOptionPane/BufferedReader Input Mathematical String: 2 + (3*2) Output Result: 8 how can i implement the codes??our told us that we should make … Software Development java | |
what is the difference between a class declaration and a class definition ? Is it that a class which contains the prototypes of member functions is a class declaration? Is it that a class with member functions defined within the class , is a class definition ? Software Development c++ | |
why is the size of an empty class 1 byte ? does the compiler add some null byte ? Software Development c++ | |
Hey everyone, I want to restrict cursor movement outside of a picture box when the user clicks a button. Here's what my code looks like so far: [code=c#] private void btnX_Click(object sender, EventArgs e) { if (remote == false) { remote = true; Cursor.Position = pctRemote.PointToScreen(gridCenter); //centers the cursor on … Software Development | |
Hye there.. I just want some ideas to make my program better.. Below is the code. Any comment or recommendation are appreciated. :) [CODE]/* * Name: Isihan dan Carian [Sorting and Searching] * version: 4.0.1 * Copyright © * Support: http://tempek.net78.net * Updates: August 27, 2008 * Compiler : Dev-C++ … Software Development c++ | |
Hi, I'm using Expat to parse XML, and I have an array of attributes for an element. I need to be able to loop through them all, and get their values, I don't know the array size, and it's a multidimensional array, so I couldn't do [Code=C++] int count = … | |
Hey guys .. I am pretty new to Shell Scripting. I was hoping if some one could help me out with my problem. I am going with a tutorial for shell scripting. While executing some of the programs and commands I am getting errors. I have also checked other sites … Software Development shell-scripting | |
I have a program i have been working on for my Java class and it is due by the end of this week. My problem is a few things...(1) I do not know how to set the actions on the buttons Save, Delete, Modify and Add. Also I was able … Software Development gui java java-swing | |
I'm having trouble reading from my files properly. the files being read from is in this format: Q:3 D:4 N:1 and that is all in the file, it stands for quarters, dimes, nickels. yeah and the function i have to read from that is this: [code=cplusplus] void initialize (ifstream& soda, … Software Development c++ file-system | |
I'm having a little bit of trouble using the ifstream 'get' command. When I say trouble I mean it is not returning the values expected and I need a little guidance, if you will :). Basically what I'm doing is reading a file in through C++ and then going to … | |
ight - I have the directory to my app stored in HKEY_CURRENT_USER/ Software/myAppName how do I read it? I've tried searching the RegGetValue but couldn't get it to work/ understand how it works. Software Development c++ | |
I have been using the book beginning c++ through game programming witch has been a very good book. I've learned loops, references, pointers, classes, inheritance, dynamic memory, and the very basics. Now I need a book that will help me make programs that do things outside of the console window … Software Development c++ | |
Probably a bit of an advanced question... How hard is it to allow for multi threading support with C#? For example, we have a motherboard that has the capability for two processors with four cores each (dual xeon quad cores). We want to dedicate one processor (or core) to calculating … Software Development | |
I'm writing a class that does a lot of reading and writing from a stream It needs to write bytes, sbytes, and signed or unsigned int32 and 16. I have been having trouble finding ways to read/write evrything I need to. UInt16 and UInt32 were easy when i looked for … Software Development | |
#include<iostream> using namespace std; void BubbleSort(int ar[10], int n, int & compare_costs, int & swap_costs) { int t; int swaps=-1; while(swaps) { swaps++; compare_costs++; for(int i=0; i<n-1; i++) if(ar > ar[i+1]) { t=ar; ar=ar[i+1]; ar[i+1]=t; swap_costs=swap_costs+5; } } } int main() { int n, compare_costs, swap_costs; int ar[10]; int *bs … Software Development c++ | |
Hi I am trying to pull some data from a Web site: [url]http://schoolfinder.com[/url] The issue is that I want to use the advanced search feature which requires logging into the Web site. I have a username and password, however I want to connect programmatically from Python. I have done data … Software Development python web-browser | |
hello i want to write a programme that creates (lets say) 700 folders and numbers the from 1 to 700 and if its possible to take contents from a txt file to put after the number... if anyone can help me get started it would be gr8 i just never … Software Development c | |
Hello, Now, this may sound stupid, as it concerns basic file I/O, but my code doesn't work correctly- at least it isn't doing what I want it to. I wanted it to write a file the first time it runs, which it does perfectly, and every time it is run … | |
Hi, I'm trying to work out this problem in my code where i am trying to replace a keyword with another word. The problem I am running into is that when the keyword is present inside of another word. Eg, "I'm trying to debug a problem but the debugger is … Software Development python | |
Hello to all masters. . .I would like to ask if it is possible to use edit function in database without primary key. Ex. I have a button edit, a two textfields that holds the name and age of a person. If I put 2 same names in the database … Software Development visual-basic | |
how can i access a direct (absolute, not the offset) memory address? here is what i tried: wrote a program that ask's for an address from the user, creates a FAR pointer to that adress and shows it. then the user can increment/decrement the value in that address by pressing … Software Development c++ | |
I don't have a problem reading in one big array of numbers from a file. I can't figure out how to read in multiple arrays that are delimited by certain characters. For example, my dataset has the following format. #BEGIN 1 1 .1 .2 2 .8 .3 3 .9 .5 … | |
Greetings. I've hunted around quite a bit on this one. There seem to be as many potential solutions as there are folks who have asked the question. I'm rewriting a vb6 app in .net and rather than use the conversion process i felt that the app could do with a … Software Development vb.net | |
hello, google, daniweb, and microsoft searches didn't help me with this so i hope that someone here will know. i'm trying to have a method called at a fixed interval of time from the time an application starts until it ends ( RedrawWindow() ). i know how to do it … Software Development c++ | |
hi.. :) i'm a first year college student and just starting with turbo c. We have a project that is to be pass on August 29. I hope someone can help me cause i'm really having a hard time with this. I have to make an exe. of the program … Software Development c | |
Hello. I am having a problem generating the prime numbers from user input. The problem lies in the factorize method. I think I am really close to getting this to work, but I cannot seem to figure out the last detail that I need to include. Can anyone help? Thank … Software Development java | |
I'm working on a homework/project to tokenize a set of operands (double) and operators as inputs. It's been going well enough and I have been able to finish it by implementing my own tokenizer but when I tested my output exe with digits greater than 7 I get a random … Software Development c++ | |
I need to know how to keep password in cookies. Software Development java | |
in this xml mapping file : [code] <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class dynamic-insert="false" dynamic-update="false" mutable="true" name="travel.Person" optimistic-lock="version" polymorphism="implicit" select-before-update="false" table="PERSON"> <id column="PERSONID" name="personId"> <generator class="increment"/> </id> <property column="NAME" name="name"/> <property column="JOBTITLE" name="jobTitle"/> <property column="FREQUENTFLYER" name="frequentFlyer"/> <set cascade="all-delete-orphan" inverse="true" lazy="true" name="trips" table="TRIP"> <key … | |
Hey all.. I have 3 classes in my program but Iam having trouble accesing a method in another class. Iam getting the error message cannot find symbol method printInfo(). Below is the code [code=cpp] class Book{ private String author; private String title; private int year; private Chapter first; private Chapter … Software Development java | |
I'm making a media player with visual basic 6 and im having trouble on adding the video feature(so that i can not only play the music but i can see the video with it) to the media player? could any1 help me? Software Development video visual-basic | |
![]() | I am currently working on a project for a school project along with my friend. We, want a simple source control system, as we are working in a collaborative mode. I know this is not absolutely necessary, but, we still want to learn about source control and what better way … Software Development c++ ![]() |
For example we have a class called Treatment. then in that class we have 2 functions that is treat() and treatmentStaff(). Function treatmentStaff() is called from treat(). In main, we create 2 objects for that class, namely Treatment treatmentA, treatmentB; then we assign treatmentA.treatmentStaff(); , treatmentB.treatmentStaff(); I wanna ask, can … Software Development c++ | |
I'm trying to generate 100 random numbers from 1-100 into an array. I can generate the 100 random numbers but don't know how to put it into an array. #include<iostream> using namespace std; int main() { int ar; for(int i=0; i<100; i++) { ar =(rand()%100); cout<<ar<<" "; } } Software Development c++ | |
i have confusion, like when we give Char var='A';how is it stored in memory???is its value dat is 65 stored in bits??if yes wat is the value of 'a' (smallcase)... the value of A-Z is 65-90, i have program which prints A-Z, [CODE]class chararray{ public void createArray(){ char[] s;//declaring array … Software Development java | |
Please note before reading this, this is a keylogger, no its not used for malicious purposes as it only runs with the programing prompt open and stops as soon as the program is exited. Just trying to show my computer teachers something, because he's an idiot who gets his lessons … Software Development c++ | |
Please help me to find error in this program .I am trying to add data to a dynamic array . [ICODE] #include<iostream.h> #include<conio.h> #include<string.h> class data { private: char(* dynamicarray)[20]; int size1,i; public: data(char(*tmp)[20],int Size) { dynamicarray = new char(Size([20]); dynamicarray = tmp; size1 = Size; } get() { for(i=0;i<size1;i++) … Software Development c++ | |
Ok I'll get straight to the point, how can a create a search box? You know, you type something in and it filters out the ones that don't match. Is there a special widget for this? Or would I have to create a normal lineedit widget and do all the … Software Development python | |
i have made a program on text file to remove extra blank spaces in a file but it is not working correctly. when i run the program just "enter text" appears and after entering the text the screen just remains as it was. Nothing else appears. I cant find where … Software Development c++ file-system | |
Hello fellows, I'm on Mac OS X and have the following problem: Using a common cleanup script I got rid of useless localizations, keeping all the english files: [CODE] find /Applications ~/Applications /Library ~/Library \( -iname '*.lproj' -and \! \( -iname 'en*' \) -and \! \( -path '/Library/Receipts/*' -or -path … Software Development os-x shell-scripting | |
Hey, I made a VB project which saves and loads data by writing and reading from an MS Access database. One problem is when i run the exe on a different computer i get the "Runtime Error 91 Object variable or width block not set " error. Now I am … Software Development visual-basic | |
Is Generics needed for this? TIA [code=c#] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace VehicleWorld { public class Car { private int topSpeed; public Car() { } public Car Select(int topSpeed) { Car c = new Car(); c.topSpeed = topSpeed; return c; } public override string ToString() { … Software Development | |
I am making a character generator for school. What I have to do is make my CalcPoints method abstract. Unfortunately I keep getting These three error for each of my derived character classes and I don't know what to do. C:\Users\Hector Rosario\Documents\Visual Studio 2008\Projects\Rosario_Week3\ConsoleApplication2\Program.cs(126,26): error CS0115: 'UltimateWarrior.CalcPoints()': no suitable method … Software Development visual-studio | |
Hi, I would like to detect when a person loggs off or shutdown or restart using 8051. I can't get any information on the web if eny1 have any idea please let me know. This is a process where I will detect when the user shutdown or log off, this … Software Development assembly | |
Hi, I need serious help, cause I really do not how to continue. I cant build project in OPENSOLARIS OS, although there is no problem to build it in WINDOWS. Would anyone know what could be wrong? (without dots)... vojta@opensolaris:~/piskvorky$ make make: Warning: File `AI.h' has modification time 5.6e+04 s … Software Development c++ |
The End.