64,152 Solved Topics
Remove Filter ![]() | |
hello, i have an assignment to create and print a calendar programme the prob is, we have to add in various additional features in order to get higher marks since i'm new to C, i need help and suggestions to improve on my code also, can anyone please show me … | |
I made a Data report. I write code like: select *from table1 where date1 and date2 between dtpicker1.value and dtpicker2.value but the data not show in report. but when I write like: select *from table1 where date1 and date1 between dtpicker1.value and dtpicker2.value then data show. what problem? another thing … | |
I made a datareport. I select a date from dtpicker and the datareport show that date data. here I want the selected date (by dtpicker) will show in the report. like: 05-06-09 or from 01-06-09 to 05-06-09 any body help me please. | |
I have a query that is returning customer data. I want to pass the $row['VisitorID'] Value on using the _GET _POST superglobal in two different links one that goes to a page to edit users profile and one that edits the users order preferences. I can get one or the … | |
I'm supposed to write a program that stores data about a soccer player in a structure: Players name, players number, points scored by the player. The program should keep an array of 12 structures. Each element for a differnet player on the team. When the program runs it should ask … | |
Im brand spankin new to C# but did only a bit of console work with C++ in high school. I am working with the form application walk through and decided to try a few things. I want to have a check box toggle the background of the form between red … | |
Okay i am going nuts here i have a jsp page with multiple task to complete add,delete update . in order to do so i knopw i must set vlaues of a hidden input to say add,delete or update based upon what buttom was pressed so i have made the … | |
Hi all I would like to start debugging and have been doing some searching on the web, but everything I find is pretty complicated. (I'm just starting to learn web developping) Does anyone know where to find good, plain, correct instructions, for setting up my environment for debugging? I'm using … | |
hi i am new to visual basic and i am using vb6, i have senior year project for invenotry managment system..my problem is that if one form is open then the user must not b able to peform other functions(open another form, close application etc) unless the current form is … | |
hey all, i am now making a gpa calculator. i am using 4 classes which form into seperate linked lists. one linked list is for the custom gui, and the other linked list is for the data list. i am using custom images for this program which i import using … | |
hi there, there are 9 labels on the form with the name say [B]Label1[/B], [B]Label2[/B], [B]Label3[/B], ... now i would like to set their text to "". is there anyway to use a loop and find them just by knowing their name. any help is appreciated, Sean | |
can someone help me w/ this?! how to evaluate the EVEN or ODD..all EVEN numbers should store on arrayEven variable,while all ODD numbers store on arrayOdd variable.. [code] import java.util.Scanner; import java.util.Arrays; public class online1{ public static void main(String args[]){ int SIZE= 10; int []number = new int[SIZE]; Scanner input … | |
Hey guys, I'm stuck on an assignment for school, was wondering if you could help me out. So I have a text file similar to this: [code] Joe Jim Hello Jim, Just wanted to say hello! -Jim EOF [/code] This is supposed to be like a message system. The first … | |
I am having a hard time writing a program to do the following: [QUOTE]Your program should create an array that contains ten (10) variables of the following type: typedef struct { char firstName[30]; char lastName[30]; char street[35]; char city[20]; char state[3]; int zip; char phone[15]; int accountId; } Customer; You … | |
I am reading the book "Beginning Perl" by James Lee and have been pretty happy with the content so far. That said I am stuck on chpt 7 which deals with regular expressions - I can't get the backreferences to work even when I copy the source verbatim. source: [COLOR="Green"] … | |
i need help trying to open an .exe file then opening a file in said exe program i.e i wanna open a file in flash after opening flash. so far i can open the exe file with no problem but from there I'm stuck. this is what i have [code] … ![]() | |
Hi everyone! I just want to have random numbers which are unique. For example I want 5 unique numbers for a lottery game I am trying to make, nothing special just a console game. I was thinking of using loops and dead long boolean algerbra lines of || (OR) and … | |
Hy everyone! First I vould like to say that your great! I find lots of solutions here fom my programing problems. I would like to write a calculator in Pascal/Delphi with scietific functions. For example: if I write [1,2,3]+[3,2,1], program return [4,4,4]. Does anybody have an idea how solve this … | |
Hi, I'm trying to add windowClosing into my program, so that when ran, I can exit by clicking on the X(top right corner). The bold is what i added to try making the windowClosing work. I keep getting errors though. Anyone know what I can do to fix this? errors: … | |
After creating a datasource and generating a dataset, my database has changed. How can I "refresh" the dataset so it sees these changes. One Method I have been able to do is delete the .xsd file from soultion explorer. There go my modified queries & code. Another method tried was … | |
I have an unsigned char (8-bits wide, naturally) that contains 8 flag bits. Example: [CODE] unsigned char flag1:1, flag2:1, flag3:1, flag4:1, flag5:1, flag6:1, flag7:1, flag8:1; [/CODE] I would like to take this unsigned char and convert it into a bit array where each bit represents a flag. Pretty much like … | |
I have been using this code: [code="perl"] while (($key, $value) = each (%hash)) [/code] To iterate through a hash. However, the order of the keys that it retrieves are exactly the same each time i run the script. I looked to google for answers and found the following [URL="http://www.nntp.perl.org/group/perl.perl5.porters/2008/06/msg137802.html"]bug report[/URL]. … | |
Hi.. I'm a beginner and just study programming. I have to make some random number. I found many solution in this site, but does'nt seem to be like i want. Please see this [URL="http://lh6.ggpht.com/_T3iApStJb64/SnMJmXJd0WI/AAAAAAAAASM/z5jEJagUjz4/s144/sudoku.jpg"]screen shot[/URL]. I have to make some simple program like sudoku game. And must put random number … | |
Hey guys, How do you set the forecolor of a label progmatically??? | |
so I was wondering how to push int's into an array. In other languages that I learned, I can just call the push() method. But looking around, people say that I need to use priority_queue. What is it and can I use it in Allegro? | |
If I delete a pointer, does it delete the data in the current address or all of it? example: [code] bool *dat; dat=new bool; dat=true; ++dat; dat=false; delete dat; --dat; [/code] if I printed dat, would it return true or just a random address? | |
In C# a struct is a bit like a class, but most of the time used for little items you might have. A struct is also a value type, while a class is a reference type. Now .NET is poorly equipped with math features. As I wanted to play around … | |
I use this function to add rows dynamically in a table [code] function addRow() { var tbl = document.getElementById('applications'); var lastRow = tbl.rows.length; // if there's no header row in the table, then iteration = lastRow + 1 var iteration = lastRow; var row = tbl.insertRow(lastRow); // right cell var … | |
Hello all, I'm beginning in Python and I need to input some information in a declared variable, like this: [code]XML = """<?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <Authentication xmlns="http://xxx"> <Account>xxx</Account> <Password>xxx</Password> <Guid>xxx</Guid> </Authentication> </soap12:Header> <soap12:Body> <SendMessage xmlns="http://xxx"> <message> <From>xxx</From> <MessageBody>xxx</MessageBody> <MessageDate>xxx</MessageDate> <Subject>xxx</Subject> <Devices> <DeviceMessageVO> <Phone>[B]I need to input … | |
Hi I have been struggling with this for some time now, and am not sure what is wrong. I am using the org.json package I have this json String which looks like this: [CODE]{"2009-08-04":[{"Status":"1","Description":"sdfsdf","Task Name":"task 2","TaskId":"2"},{"Status":"1","Description":"testing 3","Task Name":"testing 3","TaskId":"3"}],"2009-07-31":{"Status":"1","Description":"read POC","Task Name":"task 1","TaskId":"1"}}[/CODE] As u can see the one object is … | |
Hi there If anybody could help me with this problem it would be great. I'm a noob when it comes to c#, and I know people loathe the idea of using c# to manipulate excel files but if you had my job you would understand. I have to sort through … | |
The important code: [CODE] Browser browser = new Browser(shell, SWT.NONE); URL url = this.getClass().getResource("/example.html"); browser.setUrl(url.toString()); shell.open(); [/CODE] P.S. I've carefully considered what Masijade and others told me in the other thread; the example.html file is located in multiple locations, including in the same directory as the .class file. . I … | |
Hello, I have this application that would let a user register (I used an ASP.NET control for that one), and then log in (I do not use ASP.NET control for the login, I am making it myself). When an user register, I am sending their data to an Oracle database, … | |
Hello, I like to study the C++ language. explain the basic concepts. | |
here's a function I tried to write that reverses the order of a c-string [code=cplusplus] void reverse(char *wordPtr) { char revWord[SIZE]; int count = 0, // index counter newSize = 0; // to count word size while (wordPtr[count] != '\0') { newSize += 1; count++; } cout << "The size … | |
I'm a newbie to VB and have been given the bugfixing/maintenance task at the company I work at for one of their products that was written in VB. One of our customers is experiencing a "freeze" in the application at a certain point and the only way around it is … | |
Hi all i need some help with my code. i have a page where i want to update a row 'key' in my table users with a new value that i have generated. dbc.php [code] <?php $dbname = 'phplogin'; $link = mysql_connect("localhost","root","") or die("Couldn't make connection."); $db = mysql_select_db($dbname, $link) … | |
Hi all I have a program that interacts with files. Now I would like these files to have thier extensions changed upon processing in my program. Any good tips/tutorials you can throw at me? Many thanks. | |
Ok, I've tried literally over 100 things and still can't figure this out. I want to add strings that I've loaded from a text file to a list box. Here is my coding: [code=cplusplus] vector<string> spnV; //this is a global variable BOOL LoadTextFileToEdit(LPCTSTR pszFileName) { ifstream inStream(pszFileName); if(!(inStream.is_open())) { MessageBox(NULL, … | |
Hi all, I'm a student learning Java right now, so I'm still very new to what Java can do. I've written a program to perform a word count (thanks to VernonDozier for help with case-sensitivity) but another problem has come up. The program is identifying words with punctuation to be … | |
Hello all! I am typing in some code from an example in my book, but it shows the absolute value symbol, I believe, looking similar to " l l ", but it can't be just to lower case Ls spaced apart like I just made that...or is it? If not, … | |
Hi, I have a relatively large application with multiple forms and a Module class. The problem I am having is that when I create a listbox on ANY form and try to use its 'Selected' function eg. List1.Selected vb automatically changes it to List1.selected Can anyone tell me why this … | |
hi i need a little help pls. im trying to write a Black Jack game with JS(home assignement) can someone pls tell me why when i click on the img, the number 4000 doesnt change? here is the code [code] <html> <head> <title>Black Jack</title> <Script Language="JavaScript"> function hit(f) { var … | |
I am new here and this is my first post. I have a question that I can't find on google. I'd be grateful if you could help me. I have written many programs dealing with arrays and wanted to know how can I validate an input. Say I have the … | |
I m a freshman about JSP.Now I have a quesstion about sql. first I made a class.Code is [code]public class DataBase { protected String url = "jdbc:mysql://localhost:3306/lab?user=root&password=root&" + "useUnicode=true&characterEncoding=utf-8"; public Connection conn = null; public DataBase() { try { Class.forName("com.mysql.jdbc.Driver"); } catch (java.lang.ClassNotFoundException e) { System.out.println(e.getMessage()); } try { conn … | |
here is the simple code: [code=cplusplus]#include <allegro.h> #include <iostream> using namespace std; int FindArea(int,int); int main(){ int lenghtOfYard; int widthOfYard; int areaOfYard; cout << "\nHow wide is your yard? "; cin >> widthOfYard; cout << "\nHow lond is your yard? "; cin >> lenghtOfYard; areaOfYard= FindArea(lenghtOfYard,widthOfYard); cout << "\nYour yard … | |
Hello, I have a DataGridView that displays all the columns in the DataGridView Column from my database. The problem I am having is that my Row_id column, which is the primary key of the table, will not display the data within the Row_id column. Is there a way to retrieve … | |
hey Guys im using this bubble sort to sort an arraylist out but cant seem to output the sorted data out properly! Is there a return method i can use? Damn ive been stuck hours on this one... Anyone that could guide me to a solution would be great. Note: … | |
Hello people. I have a favor to ask. My programming challenge is to write a program that uses a structure named movie data to store the following, title, director, year released, running time. this program should create two moviedata variables store values in their members, and pass each one in … | |
I am trying to write a python program that will enter another program using a shell command, then issue commands to that program, then exit the program and continue running the rest of a python program. To be more precise, if I was simply running in a shell, I would … |
The End.