199,114 Archived Topics
Remove Filter ![]() | |
hello guys....I have a program which is a GUI. - When I [B]RUN[/B] the program and do some testing; it is good and nothing happens. - But on the same [B]RUN[/B], when I do some testing, it crashes. Every time I run the program, I find the same results. So … | |
ok so i am messing around with php trying to see what i can do to improve the way i make/do things. right now i am playing around with a query set that automatically makes the variables with the database information in it then to echo it later on when … | |
I have these three classes: Student.java [CODE]public class Student { private int grade; private String name; public Student(String n, int g) { grade = g; name = n; } public int getGrade() { return grade; } public String getName() { return name; } }[/CODE] GradeBook.java [CODE]public class GradeBook { private … | |
Ok here's what i want to do. I woul like to disable the toolbar and menubar in my main form depending on the usertype that was logged in. My dbase field is UserType and record type can only be User and Admin (Depends on the registration). When a user log … | |
I cannot get this mysql update query to work. Please help. I am new at this.:) <?PHP session_start(); ?> <?php //it's getting the data from the post fine. I know this part is working. $ud_id=$_POST['ud_id']; $ud_fname=$_POST['ud_fname']; $ud_lname=$_POST['ud_lname']; $ud_type=$_POST['ud_type']; $ud_used=$_POST['ud_used']; $ud_sdate=$_POST['ud_sdate']; $ud_edate=$_POST['ud_edate']; if ($ud_id == "") echo " No record ID … | |
Hi I am trying to create a program in java which will scan for words within a text file. The program will scan the list containing a bunch of words in every line some words may be repeated. The program should scan the text file when I input a word … | |
In the code below I've to use Pre-built DatabaseManager which has limited exposed functions. Now I want to fetch resultset of query that gives country names. [CODE] DatabaseManager dbhandler = new DatabaseManager(); String query = "Select country_names from Country_Table;"; Vector vResult = dbHandler.getResult(query); //getResult returns Vector [/CODE] How can I … | |
I created a login system using php.And it can handle member profiles.But i was unable to upload profile picture.how can i do that??????? | |
Hello friends, I designed few classes to simulate any DFA and it runs fine, now I want to do the same for a NDFA. The major problem that arises with it is the possibility of transiting to multiple states on a single input and epsilon-transitions. for an overview i am … | |
Hi all, This is sri. I've done some program to read xml elements in java.But i didnt get them in a structured way like root element and its name and child elements and their names.I am getting end tag names after tag value also.so pls help me in getting elements … | |
Hi, Below is my code which I am using to remove a div tag. I also want the script to add the same div tag later once certain conditions are meet. The div has some preloaded content too which I don't want to loose. I tried the add() function but … | |
Hi I am using vb.net 2008 and sql server 2005 in that one form contains the richtextbox from that richtextbox i am saving the questions in database now i want to change each questions font and size. can anybody help me! | |
hi, i was just wondering if someone could point me in the right direction on how i would go about writing up code for displaying a plane-collection of harmonic oscillators. i would like to display them as oscillating spheres. i have code written up for graphing 1-d coupled oscillators and … | |
![]() | PLEASE MODIFY MY CODE TO COMPUTE FOR THE AVERAGE OF FIRST GRADING, SECOND GRADING, THIRD GRADING AND FOURTH GRADING PERIOD, THE FORMULA IS THIS AVERAGE COMPUTATION First Grading Period: Average = Sum of grades / Number of subjects Second Grading to Fourth Grading Period: Average = (30% of the Average … |
I have to use the function [I]ask_number()[/I] so that is ask the player for a guess with a call to [I]ask_number()[/I] here is my code but it automatically guess the number and i dont know if i did it right [CODE]import random print "\tWelcome to guess my number!" print "nI'm … | |
UGHHH I have a research assignment on this subject and I can not for the life of me find any reputable sources that mention this at all. If anyone knows of any academic sources that even mention non-english programming briefly or even discuss programming being mainly in english I would … | |
[CODE]#include<iostream> #include<string> using namespace std; class string { char *a; int b; public: string() {a=0; b=0;} string(char *c) { b= strlen(c); a= new char[b+1]; //b+1 because one char extra for space strcpy(a,c); } friend void show(string s); friend string operator+(string &s1, string &s2); }; string operator+( string &s1, string &s2) … | |
Here are the errors im getting. [CODE]Notice: Undefined index: address in C:\wamp\www\Insertrecord.php on line 24 Notice: Undefined index: status in C:\wamp\www\Insertrecord.php on line 25 Notice: Undefined index: religion in C:\wamp\www\Insertrecord.php on line 26 Notice: Undefined index: region in C:\wamp\www\Insertrecord.php on line 27 Notice: Undefined index: zipcode in C:\wamp\www\Insertrecord.php on line … | |
Hey y'all, I was just curious about which idiom you prefer or use very often.. and why? Please vote on the poll! I understand that there are a lot of choices but you can vote for multiples, but try to pick only the ones you think are the best, or … | |
I need it to read all three of the numbers and up them back least to greatest. As of right now all it prints is 0.0 for all 3 and true. How do I get it to not print true and 0.0 and print the acual numbers. [CODE]public class Floating … | |
i have been getting the error Parse error: syntax error, unexpected '.', expecting T_VARIABLE or '$' and the line that has the issue is $ . $ [CODE] foreach ($fields as &$value) { $ . $value = $myrow[$value]; } [/CODE] all im trying to do is make a variable with … | |
[COLOR="Red"][U]PYTHON:[/U][/COLOR] I have no idea where to start this, but i need to write code that takes a list of real numbers as input and returns the average of the numbers in the list. any input as to how i would go about starting this code would be much appreciated. | |
How would I write a code to read in this book.txt [CODE]title*Programming PHP author*Lerdorf, Tatroe and MacIntyre publisher*O'Reilly Media description*3 This book covers the PHP programming language. It assumes the reader has some programming experience. It covers connecting to Oracle and MySQL databases. title*Core PHP Programming author*Atkinson publisher*Pearson Education description*3 … | |
here's my code: [CODE=C++] #include <iostream> using namespace std; void func(int num) { num = num + 1; cout << num; } int main() { int num2 = 5; cout << num2; func(num2); cout << num2; func(num2); cout << endl << endl; system("PAUSE"); }[/CODE] when the program runs, it yields … | |
Hello, am working on a program like a database Here's the code: [code=c++]#include <cstdlib> #include <iostream> using namespace std; void addclient(void); void choice (void); typedef struct client{ int number; char name[35]; char gender[8]; char address[50]; char phoneno[15]; char mobileno[10]; struct client *next; } client; client *firstnode,*currentnode,*newnode; int clientid = 0; … | |
Hi there, I am very new to C++ and I want to create an array of variable length. I tried this: [CODE] int corners; cout << "Please enter the number of corners: "; cin >> corners; int x[corners];[/CODE] but it came up with errors: error C2057: expected constant expression error … | |
We have a module called "cart.items" and imported this in another PY code to use classes. I did import classed under cart.items like ("from cart.ltems import Items") and used Items class in my code. When I run my PY code in UNIX box, I get that problem. What I ve … | |
Deck.h [CODE]#ifndef DECK_H #define DECK_H class Deck { public: struct card{int symbol; int value;}; card card_list[52]; void generate_deck(); void main(); private: static int const diamond = 1; static int const club = 2; static int const heart = 3; static int const spade = 4; }; #endif [/CODE] Deck.cpp [CODE] … | |
Hello, I have implemented different sorting algorithms (bubble sort, merge sort, heap sort, etc...) and want to calculate the running time for each one on different sets of data. I'm using Visual Studiois but am familiar with Dev C++ and Xcode on Mac. I used C++. Is there some special … | |
my code is like this if (isset(POST_[submit])){ ......if (empty($name)) ..........echo "name field is empty"; ......else if(isset($_POST[submit])){ ............$name = $_POST[name]; ........query ........mysql_cuery($query,$conn) } } if (isset(POST_[submit2])){ ......if (empty($pet)) ..........echo "pet field is empty"; ......else if(isset($_POST[submit2])){ ............$pet = $_POST[pet]; ........query ........mysql_cuery($query,$conn) } } As you can see I have two submit buttons … | |
OK, this one has me baffled. I'm trying to teach myself more about recursive functions, so I'm making a prgoram to figure out the Knights Tour ([url]http://en.wikipedia.org/wiki/Knight's_tour[/url]). It went well until I tried to run it. It stops randomly between 2,000 and 3,000 iterations with a Stack Overflow Error, yet … | |
Let's say that I want to retrieve rows from just one table and exclude rows with certain ID's. Hypothetical table: [CODE] +----+-------+------+ | id | value | type | +----+-------+------+ | 1 | foo | cool | +----+-------+------+ | 2 | bar | cool | +----+-------+------+ | 3 | lor … | |
I'm making a little game and I can't get button bindings to work. Here is what I have so far [CODE]def forward(event): print "up" frame.bind("<Up>",forward)[/CODE] but pressing the up arrow does nothing...is there something I missed? | |
ok i can easily make a server and client sockets in python because of the very easy library it comes with but is there a easy library as easy for c++ as the library that c++ comes with seems very confusing to me thanks in advance | |
please i need help here. let someone help me to debug this i attach the project bon compressed folder: [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class Form1 : Form { //static … | |
![]() | So my teacher gets mad at me when I ask questions so I'm coming here for your help cause you guys a life savers :) OK So what I understand about this project is we have a file with numbers and we have to make an array to read it. … |
Hello all. I'm trying to get a video feed in a wxPython GUI (under MS Windows) and thought about using OpenCV. There is a short tutorial on how to achieve this at this page: [url]http://opencv.willowgarage.com/wiki/wxpython[/url] (updated late 2009). The problem I'm having is trying to load the libraries to get … | |
Hi everyone, I'd like to write a small application to basically read in some text from a file, display it in a GUI (I've done this using a textpane), and then change the font color of certain words if they exist in the text (say from the default color to … | |
I'm coding about AA Tree and having some troubles of function: DeleteNode. Please help me how to coding about deleting a node in AA Tree! Thanks for your care! | |
Ok I am completely brain dead on this...and the sad thing is I've done this before! I have built a custom page builder in CF. I want to create a shortcut to the page builder home page, which is a .cfm file, on my desktop so that someone can open … | |
**Write a algorithm to accept 5 number and sort it in the ascending order using selection sort** #include<iostream.h> #include<conio.h> class selectionsort { Int a[100], n, i, j, temp, loc, min ; public: void in( ) ; void out( ) ; selectionsort( ) { Min = a[0] ; } }; void … | |
![]() | Hi, I am new to PHP and I would just like to know: Is there a purpose for cookies if you handle sessions with the database? I've been reading about cookies and trying to understand how they would be beneficial if I had sessions handled by the database, and I … |
Perl/apache if we run the Perl script on apache for display the result of Linux command it is not able to execute the Linux command and not display it into the browser. eg. We want to display the result of "ping" command but not able to identify what is the … | |
I'm having a bit of trouble understanding DataAdapters and I was hoping for a quick bit of help. At runtime, I'd like Form1 to open a DisplayForm for each row in the database and have each of those DisplayForms be bound to the database and fully editable (there are 3 … | |
I have a stored procedure where I need to insert from some other tables when those items do not exist in the original table. Here’s the stored procedure that I wrote. [CODE] ALTER PROCEDURE [dbo].[sp_CreateRequestedItems] AS BEGIN INSERT INTO dbo.RequestItems ([request], [applicationProfile]) --select from requests and profiles table into requestitems … | |
Hi, I read the Python/C-API and they say I should not use PyArg_Parse() anymore but use PyArg_ParseTuple(). My problem is that I retrieve an PyObject * out of PyDict_GetItem(...) so this is a single object and not a tuple. PyArgs_Parse() is the only API-Function to get a C-"string" out of … | |
Hello All, I wrote the following code to access a file, assign pointers to the contents of the file, display the file as a matrix, read the last line as a separate matrix, then I am supposed to perform matrix multiplication on the two aforementioned matricies. I have the first … | |
I am writing a program using vector and am wondering if my destructor is correct, or do I need to add another line. The clear, clears all the elements in the vector, but do I need to add another line to delete the vector, and if I do what line … | |
I believe the error has something to do with my mergeArray function. Its a modified version of the insertNode function. i tried to make it so that i can loop through and insert an entire array of elements into a linkedList. My program compiles without error but gives me a … | |
sub class [CODE] public class Exer2 { public void setLength(int x) { this.listLength=x; } public int getLength() { return this.listLength; } int listLength=getLength(); int list[]=new int[listLength]; public void display() { System.out.println("The array length is: "+list.length+" "); } } [/CODE] main class [CODE] import java.util.*; public class Output { static Exer2 … |
The End.