132,726 Archived Topics
Remove Filter ![]() | |
Hi there. Iv been searching (this forum and Google) for examples using the StyledTextCtrl, so that I can see how the thing actually works, but with no real joy. Iv found a couple of very basic examples but nothing that really shows the workings of the control. Iv seen the … Software Development python | |
I have this assignment where I write certain lines from an input file. These lines I'm looking for in this case is only identified by its following line ("EOL"). It goes like (shortened): [CODE]while True: line = infile.readlines() if not line: break linesplit = line.split(",") line = line[:-1] if line … Software Development python | |
Hello, I create a component class in Visual Studio 2008 in a windows form application. This component has a property named "MasterFormName", which should contain name of the form that component will place on it. I want that the MasterFormName property be a read only property and when I dragging … Software Development visual-studio | |
Hi, How can i pass an array from jsp to javascript function.i have to design a grid in jsp.For that i'm using javascript functions. [URL]http://www.code-magazine.com/article.aspx?quickid=0303111&page=3[/URL] this is the link where i got the script.here i have to pass an array of values to display in that grid.can any one pls … Software Development java javascript | |
i want to pass an integer value as an input, for that first i have to get the value as an string and then convert it into an Integer. i wrote the code and it looked like this .. [code] String age=""; int intage=0; System.out.print("Please Enter your age : "); … Software Development java | |
Hello everybody, I'm back, started my 2nd year at Uni now and started programming in the wonder that is C++ and enjoying it tremendously. but I've hit a slight problem, not with code but with design. I'm not sure where to put the input/output, sounds weird but I'll elaborate. i … | |
Need help with a java project I need to do. Here is the project specifications : """Create a console calculator applicaion that: * Takes one command line argument: your name and surname. When the program starts, display the date and time with a welcome message for the user. * Display … Software Development java | |
Here is the code: [CODE]// All this has to do is take the "names.txt" file, and send it to "backwards.txt" // in reverse order, as an array. No idea why its not working, sent all necessary files with it. #include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using … Software Development c++ | |
I'm trying to do a program involving a base class and subclasses, whose subclasses use each other. In terms of code: [ICODE] Class Space { ... }; Class Room : public Space { Link* l; ... }; Class Link : public Space { Room* r; ... }; [/ICODE] Now I'm … Software Development c++ | |
Here's the code: [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> #include <ctime> using namespace std; string getData(ifstream &fin, string array[]); //string getData(ifstream &fin, string array[]); This is what it SHOULD look like. void outputData(ofstream &fout, string array[], int numNames); //void outputData(ofstream &fout, string array[], int numNames) int main() { … Software Development c++ | |
How do I write a C++ class program to convert temperatures from Celsius to Fahrenheit and vice versa? | |
I'm new to vb.net[COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][COLOR=#000000][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR][/COLOR] though I've done a fair bit of work in vb6. My problem is this. I have a form with two tab[COLOR=#000000][COLOR=#000000]controls[/COLOR][/COLOR] and on the tab pages are text boxes, group boxes, check boxes, etc. for entering parameters. While I'm developing using [COLOR=#000000][COLOR=#000000]debug[/COLOR][/COLOR]gging in vb.net 2005, each … Software Development vb.net | |
hi all... i want to know if using simlpe combo with dropdown style 2 (where you cant type ur own data) im not able to retrieve data coz its showing that its has read only property... is it possible that i can change the syle property of my combo box... … Software Development visual-basic | |
im designing a program where it calls a function that uses the linear search algorithm to locate one of the values. function must keep a count of the comparisons it makes until it finds the value. the program then calls the binary search (a sep. function) to locate the same … | |
I got my program to work but it seems it cannot: 1.cant read a file if its only one archive (needs two to be able to read) 2.can only read the first line in a FILE 3.delete function deletes more than one than intended. help are appreciated :) I have … Software Development c | |
hi all, glad I found this site. I hope you all can help me out with this little problem. First, my environment: Mac OSX 10.5.5 Python 2.6 (compiled from source, not using macports) basedir: /usr/local/bin/python; /usr/local/lib/python2.6 Following the proper directions on how to install setuptools (from here [url]http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other[/url]) [code] bash-3.2# … Software Development open-source os-x python | |
Hello, I know how to create a hash_map and use my hash function with it, but I don't know how to handle collisions. Specifically, how would I implement a chain/buckets with a linked list... it seems like it's built in but I can't find how to do it. [code] #include … Software Development c++ linked-list | |
hello friend z!! give me some idea about : [B]write a program that takes two characters and two integers by using two command program[/B] Software Development c | |
How can I declarate a matrix of strings? if I write something like the line below, my code do not compile string a[MAX][MAX]; someone can give me a solution? thanks Software Development c++ | |
Hello everyone, I know there is a build in real time clock inside the computer and I know it's possible to use this clock when you write a program on Assembler(using an interupt that I don't remember at the moment),is there a way to use the real time clock while … Software Development c++ | |
I'm having some problems with a program that invovles arrays. I have a program that is suppose to read data from a file fish.txt about fisherman. The a function is suppose to print the number of fish that need to be thrown back because their is a maximum of 14 … Software Development c++ | |
I'm working on an assignment and when I run the application I get the message Build Successful, but the Form doesn't show up on my screen. How do I make the Form appear? Software Development vb.net | |
getting value of return value of stored procedure to code behined,with MicroSoft Patterns and Practices. Hi all, I am using Microsoft Patterns and Practices to make a database connection to my application. I am able to get the value of the OUT parameter of the stored procedure to code behind. … Software Development | |
Here I am again with new problem. I want to do some calculation on each field row after row. The for loop which I tried is not giving me what I expected [ICODE]#sum each 5 fields over the raw: for step in range (6, N, 5): for i in range … Software Development python | |
I'm trying to make a checkout system but i'm having trouble with one part and cannot think of a solution for the life of me. Basically when you enter the checkout form it displays the items for sale (because on another form you enter the details of an item for … Software Development pascal | |
Hey guys, Im reading up on pointers and since i dont have a physical teacher, Its abit hard concept to grasp. Could anyone please explain in their own words shortly how they work, I understand that they carry the adress of another variable, and you'd assign this adress with an … Software Development c | |
Hello, This is my first post on DaniWeb, so I hope I did it OK. Anyway, you'll notice that in the top of every window you have standard close button (the x in the red box). I was wondering if it was possible to remove at this runtime, using VB6, … Software Development visual-basic | |
Hi guys I am working on a Lottery program to generate 6 unique numbers. So far I have the following: CLASS LOOKS LIKE THIS: [code=cplusplus] #include "stdafx.h" #include <string> #include <ctime> #pragma once #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers class Lottery // Lottery class definition { public: … Software Development c++ visual-studio | |
Hi, Recently I came up with an idea of making my own program for tagging mp3 files. I realised I'm lacking in knowledge. For now I need the following information: 1. After typing a path to a main folder, I'd like to read the names of the folders inside. 2. … Software Development c++ | |
everything works fine on my app until I add a menu. Every button every field, everything ends up stacked in the top left corner. as soon as I set the menubar to the main frame and run it collapses. I have like 5 sizers that get added to a final … Software Development python | |
I need to make an array using the following info. Salesperson January February March 1 2400 3500 2000 2 1500 7000 1000 3 600 450 2100 4 790 240 500 5 1000 1000 1000 6 6300 7000 8000 7 1300 450 700 8 2700 5500 6000 9 4700 4800 4900 … Software Development vb.net visual-basic | |
Hi everyone, I'm writting old "Battle ship" game. I know, that is very funny, but I want my own version, with one objects and inheretancy levels. Here is a plan what I'm reaching for: ---------------------------- object: A-level: - aship - keeps common parameters of floating things B-level - ship - … Software Development c++ | |
[code] int numOfMonths = numOfYears * 12; float monthlyRepayments; float actualRate = (rate/100)/12; //monthlyRepayments = (borrowAmount*(pow((1+actualRate),numOfMonths))*actualRate)/((pow((1+actualRate),numOfMonths))-1); monthlyRepayments = (100000 * (pow((1+actualRate),180) * actualRate))/((pow((1+actualRate),180))-1); [/code] Ok this is the actual equation: (100000*(1+A1)^180*A1)/((1+A1)^180-1) btw A1 =0.06/12 So the commented line is original one I tried, didn't work. So I tried just putting … Software Development c++ | |
I'm working on a project for school where we have to read from a voters database which is set up in the following manner: voternumber:voternama:havevoted Ex: 1253:Bill Simmons:false 3244:Steve Jobs:true I made this algorithm to search for a voter by ID number but for some reason it keeps coming up … | |
Hi. I made some headers I want to include in every project from the include directories. So I'll be able to do [I]#include <hello.h>[/I] instead of [I]"hello.h"[/I], and I won't need to place them in the same directory every time. So I did this: [IMG]http://i38.tinypic.com/2n1bdj8.jpg[/IMG] [IMG]http://i34.tinypic.com/33a4d1g.jpg[/IMG] but it doesn't work. … Software Development c++ visual-studio | |
How do I change the icon of the exe. in console mode? (as part of the exe itself) :?: Software Development c++ | |
I got some newbies questions, i hope to hear from you... Feel free to answer any! I will appreciate it so much if you answer them all :-) 1. Do AV's generally (windows security specifically) trust application written under .NET more than the ones written written under MFC & Win32 … Software Development api c++ gui machine-learning windows-api | |
Hey all, I apologize now for being a Noob. I'm using a Tutorial to learn VB6 (for starters) and everything was going great until just now... The assignment is to create a [URL="http://www.profsr.com/vb/vbless04.htm"]Weekly Payroll[/URL]. I have managed to figure out how to make the standard calc ( Hrs worked * … Software Development visual-basic | |
hello everyone, I am working on an assignment for my cs class. It is basically a board game with 20 levels. i have a question about why this code in my program is not working...hopefully what I am posting makes any sense because what I am writing is already long...and … Software Development java | |
Hi everyone!! First of all am quite new to cpp especially under linux. I am currently working on a small project under Linux and am having to deal with large number of data(larger than 1 GB). numerous number of operation is to be done with these data. for example: sorting, … Software Development c++ | |
hi im a noob in C#. just learning by my self. need to know how to assign values to variables. which we input normally in C we use scanf ne. but in C#. how we gonna assign Software Development | |
Using Dev-C++ Im a newbie to c++ Is it possible to save files using a variable as the filename. What i want to do is setup a text based program like a mud and be able to go from room to room and have it display room discription and available … | |
Hi, I need help with implementing cyclic codes.Its much like crc.I've found a lot of software implementations for crc but havent understood them.I've looked at a crc guide which gave, [code] So to implement CRC division, we have to feed the message through a division register. At this point, we … | |
For some reason I'm getting a memory leak error. It's probably from the part where I start to copy the strings and allocate an array of characters, but I have no idea why. I'm using a text file for input data, which is found here: [url]http://puma.deanza.edu/distribute/DeliaG/Fall_2008/CIS15BG/BG_Labs/BG_Lab_6/countries.txt[/url] I appreciate anyone who … Software Development c | |
Hey I have a problem that annoys me a lot.... i want to extract all titles and songnames within a file, a *.pls file to be exact. ive read the entire file from beginning to end and ive splitted the text like so.. string[] titles = readpls.Split(new string[] { @"\n", … Software Development regex | |
| |
[code] #include <iostream> #include <cmath> using namespace std; int main() {//begin main double hypot(double,double); double base; double height; cout<<"Program to compute the Hypotenuse of a given right triangle. \n"<<endl; cout<<"Enter the base: \n"<< endl; cin>>base; cout<<"Enter the height: \n"<<endl; cin>>height; cout <<"The hypothenus of given triangle is " << hypot(base,height) … | |
need help with this assignment. im having trouble with if and else. I enter package A and then it ask me for the hours twice. just run it if you dont get me. here are a few examples of how running the program should look, please help me!:S example 1 … Software Development c++ | |
Hello all I'm having difficulty with a program I am writing to reverse the characters in a string. The string contains a sentence where i have to change a character...if it is lower case I have to change it to upper case and visa versa. And this has to be … Software Development c | |
I have writen a program that includes ALOT of code. I update this code and work on it everyday, and with so many lines, I get confussed. a big chunk of my code goes like this: [code] cout << "\nNext:\n"; cin >> string2; if (string2 == "end") { cout<< "ok, … Software Development c++ |
The End.