199,114 Archived Topics
Remove Filter ![]() | |
![]() | Hello, my first time on these forums, but im sure it will not be the last. I am doing my dissertation for computer science and my project is based on the classic time tabling problem using constraint satisfaction. My question is does anyone have any information or links on where … ![]() |
Hello everyone, Well i've just searched the forum to see if my question has been answered prioer to posting, but seem to find the answer. Well basicly i've created a script to help me monitor and maintain the domain names my company owns (1000's) I've virtually finished it but i … | |
Hi everybody, I am new to Java, and can't figure out why my program is not recognizing the class Picture. The program compiles, but when I run it, it gives an error: Exception in thread "main" java.lang.NoClassDefFoundError: Picture at NewtonReal.main(NewtonReal.java:55) Please note that to run NewtonReal, you must include three … | |
Hello I had problem I want to delete row from my datatable through asp:linkbutton. How can I do this. I had the following code, but it adds another row to the table protected void delCart(object s, DataTableNewRowEventArgs e) { dt = (DataTable)Session["Cart"]; dt.Rows[e.Item.ItemIndex].Delete(); //dt.Rows(e.Item.ItemIndex).Delete(); int CartItem = (int)Session["cartItem"]; CartItem = … | |
Someone please enlighten me. I am just beginning to experiment with mysql and php on websites. I just took over a new site that had an exsisting sql file. I need to add a new table to the database and can not figure out how. If I just open the … | |
int x=10; int total=10; do { total += x++; }while(x<15); System.out.println(x); The output of this program will be 15. I don't understand why 15 is the answer. I'm not understanding the arithmetic here. Doesn't the "+=" mean total = total + x? And doesn't x++ mean that the next value … | |
hello everyone, i want to capture web cam photos in c# application.Can any one plzzz give me the code to implement it. thanku | |
it looks like case 1, reading the data from a text doc is doing what it supposed to do (coz if i put the output lines under case 1 it works) however case2 doesn't have anything in the nameBox[] .. it didn't get the array index from case 1... any … | |
help me how to add checkbox in gridview in asp.net(by coding) | |
Hello everyone, I'm new here and have a question for you! I was working on a very complex macro in VBA using Outlook 2007's macro editor, but then realized the project is more suited for a standalone executable. Feeling working on this in VB6 was too outdated, I switched over … | |
Hello, This is my program here...I want to make it read from a textfile and displayed in this way Number : 1 Roman Numeral : I Number : 2 Roman Numeral : II My textfile is in this form: 1 2 but i still unable to solve it...is something to … | |
Here's the situation - Im making a website for a game server in which a user can make 1 account. and in 1 account he can make 3 characters. We maintain two tables one for accounts and one for characters. The three characters which can be made is recognized by … | |
Hi i am importing a excel sheets using vb.net. my code is dependent on column sequence. but its as per user need the sequence is chaning again and again. For that i need to change my code ( which is huge ) need to change. :( plz help. | |
Is there any way to disable saveas option in IE browser I found a site where they disabled saveAs in IE [url]www.totaram.com[/url] how did they actually do that can this be done using javascript...or any other mechanism I want saveas to be disabled when users see my site in IE | |
Hi , I have a stl list which stores my base class pointer .Like [CODE]list<BaseClass*> eBList;[/CODE] now i want to iterate through this list and store it in one local variable. how do i do this. i have shown below the code i tried .... But at one part it … | |
I'm probably just confusing myself, but what the basic idea is I put in a grade and it outputs if the grade is an f, c, d ... etc. It allows me to enter a number and after I enter it it will continue to show F! repetitively. After this … | |
Hello, I am a bit a loser with JavaScript, but I found the following code to auto scroll a multiple select box to the last selected item. [CODE]Function autoscroll() { var lst = From1.Listbox1 if ((lst.multiple==true) && (lst.length>0)) { if (lst[lst.length-1].selected==true) { lst[lst.length-1].selected=true; return; } else { lst[lst.length-1].selected=true; lst[lst.length-1].selected=false; } … | |
How to add keyboard shortcuts to Menu in an SDI application? Some of the things that i have tried is : say Context menu has a sub menu called Menu1 , i have mentioned it as &Menu1 which makes Ctrl + M as keyboard short cut for it [ but … ![]() | |
Hello everyone ! I am a still a beginner in Python (and have no knowledge in other languages), and today I got a reaction from my script that I find unexpected. Here's the code: I want to use the buildOneCard function to create a card (a couple of values), by … | |
Hi, I have a question. Is it possible to copy all contents from record to typed pointer which has same items? Example here: [CODE=pascal]program linked_list_queue; type queue = ^myrecord; myrecord = record data: integer; otherdata: string; datadatadata: char; next: queue; end; const head = nil; tail = nil; procedure add(argument: … | |
help plzzz... Specified cast is not valid If Not IsPostBack Then Dim LastPage As LoginForm ===> LastPage = CType (Context.Handler, LoginForm) <=== txtID.Text = LastPage.Value End If how to solve this problem?? | |
Hello everyone I am trying to do this assignment in the book: Write a program that reads four words (as character strings) and display them in increasing and decreasing alphabetical sequence. I have done the 1st (easy) part but not sure how to go about displaying words in alphabetical order. … | |
I am trying to do this problem: Create a “hit counter” for your home page i.e., exam1.php. There is a file in the exam folder called COUNTER.TXT that contains the number zero. Your PHP page should do the following steps: 1. Read the counter file 2. Add one to the … | |
The following is a question from my teacher along with the correct answer: public class IfTest { public static void main (String args[]) { if (true) if (false) System.out.println("a"); else System.out.println("b"); } } The code will compile correctly and display the letter b when run. I have to explain why … | |
I'm looking for the header file of shm.h , although i've seen some on the web but when i use it the prototype methods are not implemented.... where can i download the full shm.h? | |
[CODE]#include <iostream> #include <fstream> #include <string> #include <iomanip> using namespace std; int main () { ifstream fin("program4.txt"); ofstream fout("output4.txt"); string lastName; string firstName; string fournumbers; if(fin.fail()) { cerr << "Unable to open input file\n"; exit(2); } if(fout.fail()) { cerr << "Unable to open output file\n"; exit(3); } while (fin >> … | |
To pass an ifstream type as an argument for a function? [code]bool initGame(Game &game, int argc, char *argv[]){ ifstream board(argv[1]); // <------------------- This part ifstream deck(argv[2]); int numPlayers= atoi(argv[3]); int numRounds= atoi(argv[4]); if (board.fail() || deck.fail() || numPlayers==0 || MAXPLAYERS < numPlayers || numRounds < 1 || numRounds > 1000 … | |
why we use different libararies in C can some one PM me all Libararies ? | |
hi guyzz.. i wanted to make a code to change my system unit date and time using vbcode. i have a small idea, to run a command prompt but i don't no how to make it so. any possible idea well be appreciated. | |
Is it possible? What would be the classes to use to implement it? I'm just fascinated with steganography. :) | |
i already create two button at the runtime already but i don't know how to create the arrow pointing to the children.. n when i click at the children other button create again is just like a family tree..anyone one pls reply asap thax alot people out there=) [code=cplusplus] using … | |
I have a datagrid to show data from backend access file. when I click a button it was show. I want I click on a data and it will show in a text box of other form. anybody can help me. | |
so ive created a function that replaces all user input characters in a string with another specific user input character..the next task is to create a func that replaces a particular part of the string with a substring and ive got something down but i cant really test it becuz … | |
Running ubuntu 8.04 I built this off of the tripwire daily cron script. I'm trying to check the number of violations. There's a problem when $tripResult is instantiated with the tripwire report- it doesn't have any newline characters. This causes grep to not get the line with the number of … | |
Hi, Im making a 5 star rating system but half the time it has the complete wrong result. I have gone over and over the script and checked the sums with a calculator and it is still doing something wierd. Sometimes when I rate it above it's current rating it … | |
How is it possible to get a menu where you rightclick on the Form ? I am not sure if this is the contextmenu. I tried to add this to the Form and also some components to it but that did however not work. | |
hey everyone. i'm fairly new to programming and right now i'm taking a clss where i have no idea what is going on but anyway if someone can help me write a small simple code for a small simple program where i hav to use transducer i can paypal you. … | |
If I have a bunch of structures defined within a class header file but outside the scope of the class how would I set a SETTER function to change the values. [code] struct VoltageValues { float Vcc; int TblkLoopEnb; double Blah; }; class TblkArray { public: TblkArray(); ~TblkArray(); struct VoltageValues … | |
Hi, I am new to C++ and trying to write a function that returns a pointer to a structure. I have a header file as follows. [code=cplusplus] class Blah { public: struct Values *getValues(); struct Values { int A; int B double C; } } My class file is as … | |
I wrote the following program with the instructions in the top comments: ( I am using visual studio on vista) [code=cplusplus] #include <iostream> using namespace std; int main() { int num1, num2; int total = 0; cout << "Please enter an integer between 0 and 100: "; cin >> num1; … | |
Most of my Visual Basic 6 experience comes from VBA with Excel. With VBExcel, you can run any procedure (if it does not require input parameters) by simply putting your cursor in the sub and clicking the "play button" (F5) . With full VB6, the same action will not just … | |
Hi, I'm doing a program that has a class called Liga. That class has a vector with 'Equipa's. Liga has a vector called 'pessoas' which I want to access inside a function in each Equipa, is this possible? for example: Liga.h [CODE]... vector<Pessoa*> pessoas; ...[/CODE] Equipa.cpp [CODE]... void Equipa::mostraStaff() { … | |
Hi, iam writing a pig latin program with 3 different methods i dont knw understand the error that iam gettin in the code here's the code: [code=c] #include <stdio.h> /*Include the standard I/0 header file */ #include <string.h> /*Include the standard I/0 header file string library */ //The functions that … | |
If in a class method I pass in a list: std::list< regmatch_t* >& pm_list; and dynamically allocate memory for an array (of type regmatch_t) which is then added to the list as a pointer: regmatch_t* pm = new regmatch_t[ num_subexpressions ]; pm_list.push_back( pm ); will the list destructor automatically deallocate … | |
I have to take the following code and make it tail recursive. I am not looking for the answer, but how to find the answer. How to work through this to understand what I need to do. Our hint is that we can change the parmeters of the function, like … | |
Please help me on designing an ER for the following scenarios.. * Guest do a hotel reservation * Handling the billing part for the activities that the guest does during his\her stay @the hotel Your help will be greatly appreciated, if anyone can help me... | |
FIXED - I'm getting a parse error somewhere in this section of code before the else and I can't see it. Please help someone. [B]NEED HELP HERE -[/B] Okay, I'm apparently getting a parse error somewhere in this code. Any help? All the errors are listed as "Parse error before … | |
i need to get a printout of a c program running using dos-redirection. Does anyone know how i can redirect the output to a texfile so i can print it? | |
Hey everyone! I'm trying to figure out the last step in completing this application. It compiles fine, I just can't seem to get the right answers! It's something to do with differentiating the two switch statements when calculating the results...between "car_type" and "ins_option". I'm a beginner so I'm not too … |
The End.