199,114 Archived Topics
Remove Filter ![]() | |
I want to create a function were i will input 3 numbers and after check thoose 3 number, also i will have 3 temporary variables were in variable _hig i will give higest number between 3 numbers _low1 & _low2 i will give other 2 that can be done with … | |
Hello there. I'm trying to make a program which can input elements (integers) and sort them, then input them in a txt file. I've made the functions (write on file, read from file, sorting elements), but now I need the following.. When I use a file on which I have … ![]() | |
Just after I include D3DX9.H I get tons of errors... like these: [CODE] Error 12 error C2039: 'm' : is not a member of 'D3DXMATRIX' c:\program files\microsoft directx 9.0 sdk (summer 2004)\include\d3dx9math.inl 1987 1 Aura2 Error 13 error C2039: 'm' : is not a member of 'D3DXMATRIX' c:\program files\microsoft directx … | |
I am looking for a good tutorial on how to do a simple photo gallery. I want to photo gallery to transition by using arrows to go back and forth. I found a few tutorials but none that explain it in detail. I am familiar with jquery but not too … | |
Hello, I need help to write a perl script for read a data from Mysql Database using mysql query and write it into excel sheet.. Can you help me....? | |
This code seems to work on a simpler level but not on the one I'm trying to use. It's for a website's search engine. First the result is gotten from the database like so: [CODE] $query = "select * from $tbl_name where name like \"%$var%\" OR text like \"%$var%\""; $numresults=mysql_query($query); … | |
[CODE] Film[] callFilms = new Film[100]; static int numberFilm = 0; [/CODE] [CODE] //Search Film Method public static void searchFilm(Film[] callFilms){ Scanner scan = new Scanner(System.in); int condition = JOptionPane.YES_OPTION; boolean check = true; do{ System.out.println(); System.out.println("Search Films"); System.out.println("============"); System.out.print("Please Key-in Item Code: "); String code = scan.nextLine(); for(int i … | |
Hi all, I have been trying to parse the a log file to plot some of the data in it. The format is something like this: [CODE]PyrateBufferManager: 2011-10-24 15:42:47.709684: CurrentAquiredBuffers: 0 ReturnBufferCount: 11527 CurrentAquiredBytes: 0 SimDataCollectorMonitor-00A: 2011-10-24 15:42:47.709684: SNProfile: {'SNLoop': 6133}[/CODE] I was trying to use regex, but didnt get … | |
![]() | I have 3 tables. [CODE]product ----------------------------------------------- product_code | product_header ----------------------------------------------- 12345 | Wilson Pro-staff Grip plus Glove product_attribute --------------------------- product_code | attribute_id --------------------------- 12345 | 1 12345 | 2 product_attribute_types ----------------------------- attribute_id | attribute_name ----------------------------- 1 | Size 2 | Colour[/CODE] This is the output that I would like to … |
So I have Microsoft SQL Server 2008 R2 installed and an instance set up with a database an user setup on that database with a password. I have installed PHP, and IIS and got PH working from the WWWROOT folder, but when tryng to connect to my database it is … | |
hi , I m newbee to dreamviewer CS4 and php.i have installed xampp and php my sql works fine. Now when i select a new PHP layout and insert<p>The time is now <?php echo date('H:i:s'); ?>.</p> in body section i don't get to see any date in live view.I have … | |
Hi, i wanna put some editor with HTML plugins that i can insert my html or php or any other codes inside my pages just like daniweb editor is there any body to help me ?? | |
Is it possible to create an array of functions in Java? Or is this not possible? | |
Hello all, I'm using the version 6 of Eclipse JAVA development. The code below is very basic, but I'm getting warnings which is probably preventing me from running the application. Any ideas? Basically what I'm designing is a program which would input the radius and therefore it would display the … | |
Hi,I spent all night trying to figure this out. Could someone take a look and show me what I'm missing? I getting this compiler error: [B]unterminated #ifndef [/B]. But I have [B]ifndef[/B] at the beginning and [B]endif[/B] at the end of the class. [CODE]//Header file. //Class definition for teh stack … | |
Dear all, When printing a grid, for example a chess board, I was hoping it wouldn't have the same output as the console. When I want the position to be grid[x][y] = 5, 5, it will place the counter in the bottom right corner in a 5x5 grid, (5,1) instead … | |
| |
pyTony i learned lots from this code you used in resoponce to thread [url]http://www.daniweb.com/software-development/python/threads/384191[/url] i first mixed up the input and was supprised at the result which only printed last occurence of the key in the dictionary list... i did work out how to sort it first and reproduce your … | |
I have attached an image to the post.I want my site to come up in the search results as such ...please advise me what i should do ? | |
Hi I want to make an abstract method. But I always get the error " cannot declare a body because it is marked abstract." When I delete the return then I get the error than I need a return. can someone help me please [CODE] public abstract Graphics drawRectangle(Graphics drawarea) … | |
I was writing a code for class as follows: [CODE]import java.util.Scanner; public class Salary2 { public static void main(String[] args) { Scanner input=new Scanner(System.in); String name; float salary; float hours; System.out.print("What is the employees name?"); name=input.nextLine(); while (!name.equals("stop")) { System.out.printf("What is %ss salary per hour?", name); salary=input.nextFloat(); System.out.printf("How many hours … | |
Hi all, I'd appreciate if somebody could shed some light on the following; I have a tabbed container, each tab has the same controls but for a different target. I am using a timer to control when to fire each event from the 5 different tabbed controls, my problem is … | |
Hi folks, (Python 2.4.x - I cannot install any modules including dateutil) Here's what I have so far. [code] mydate=['20111025.00', '20111026.12'] start_time= time.strptime(mydate[0], "%Y%m%d.%H")[:5] end_time=time.strptime(mydate[1], "%Y%m%d.%H")[:5] for myhour in datespan(time.strptime(mydate[0], "%Y%m%d.%H")[:4], time.strptime(mydate[1], "%Y%m%d.%H")[:4], delta=datetime.timedelta(hours=1)): print myhour [/code] What I'm trying to do is take the two values in mydate list … | |
how do i get total values in a row by grouping into diffrent categories. here is my code bt its getting oll totals in a row for now.. [CODE]<?php require_once('connect.php'); ?> <?php $query="Select Amountspent from Moneyout"; $result=mysql_query($query); $total=0; while($row=mysql_fetch_array($result)) { $total=$total + $row['Amountspent']; } echo "Total is:" . $total; ?>[/CODE] … | |
Hello Guys, I am building an application using C# as a front end(VS 2008). I have a main form which contains a main menu and other controls like labels, calendar etc.. the main form I am talking about starts as full screen, my problem is when I drag/drop/edit controls in … | |
Hi all, I am having confusion on polymorphism 1)Is Method Overloading considered as polymorphism? 2)Is there two types of polymorphism(run time and compile time ) available? thanks in advance | |
I am still trying to resolve the problem I described in [URL="http://www.daniweb.com/software-development/cpp/threads/388174"]this thread[/URL] where I basically have a DLL written in native C and want to develop a wrapper function for it and call the C functions from within a C++ application. The solution described in that thread works, but … | |
I have two array. How to check different and correct the order in a new array? EG. Array_a 0 => 1 1 => 2 2 => 3 3 => 4 4 => 5 Array_b 0 => 1 1 => 2 2 => 3 3 => 3 4 => 5 You … | |
hello. i need help with this coding, i need to bring the temporary parameter from set page (which is user input) to the retrieve page in order to trigger the color. seems like the session didn't carry the temporary value. [B]code in page set session;[/B] [CODE]Protected Sub ViewPara_Click(ByVal sender As … | |
a thesis proposal that can solve current community issues.. | |
Hello everyone, I have to create a Palindrome Programme in Pascal using Pointers and Queues. A Palindrome is a word which when spelt backwards or forward if the same ex RACECAR or RADAR. I am having a problem actually creating the Palindrome Part of the Code. Thus Far, this is … | |
This snippet composes functions of the form [icode]func(infile, outfile)[/icode] which read an input file and transform its content to write an output file. A function [icode]compose((f, g, h,...))[/icode] is defined which returns a new such file transformation function which successively applies f, g, h, using in-memory temporary files. | |
I just added a pause button to my game, using most of this code: [URL="http://msdn.microsoft.com/en-us/library/bb195026%28v=xnagamestudio.31%29.aspx"]http://msdn.microsoft.com/en-us/library/bb195026%28v=xnagamestudio.31%29.aspx[/URL] For some reason it changes the Window.Title to "[GameName] - Paused" and even though it's unpaused it still says paused in the title. I never told it to change the title so I guess it … | |
I can add an existing item to the solution explorer manually. But is there a way to do this programmatically (i.e., at run time)? | |
Hello all, I'll hopefully be attending a cognitive neuroscience PhD program next fall and I'd like to learn some programming beforehand (having programming skills helps for lots of neuroimaging labs). Labs I've worked in used UNIX, MATLAB, and E-Prime (visual basic) and I'd really like to improve my knowledge before … | |
Hello guys I had an Exercise for a Noughts and Crosses game and i thought maybe it could help whoever needs to get an idea of Classes and Arrays. [CODE]#include <iostream> using namespace std; class CNoughts { private: int grid[3][3]; public: void Initialise(); void Grid(); void PlayerInput(); int Player,i,j; int … | |
Hello, I've been trying to code a TrueSkill calculator using Java that fetches scores and updates them in a MySQL database. I finished coding it however it appears to have a problem while executing. This is an example of what I want the output to be like: [QUOTE]connecting to database … | |
how to load the combo box'values from one form to another form's combobox Example: form1: cust(table name) no(textbox) name(combobox) form2: CName(combobox) now i load the form1's name which is the combo values .. to form 2's combo box whixh is name of 'CName' | |
help me pls...i want to display the total sales within the date in the two dtpicker and by the category specified...when i run the program using my code an error occurs the no value given for one or more required parameters..which i cannot understand..pls. help me..here is my initial code... … | |
Hello everyone, I have this problem that I read over and over and over but I didn't understand what I suppose to do. I just want an explanation of how does this problem or I should say this game work. create a mouse game for a single player. Set up … | |
Building a phonebook program for school--very much a work in progress. I still need to write a sort function, tweak my delete function, etc. But actually what I'm hoping you folks could answer is hopefully simpler--for some reason I seem to have a while loop that is executing twice, and … | |
hi..i got a problem regarding how could populate data from adodb recordset into textbox...when i type the first letter for example of the itemname then automatically the textbox will show different records from the database starting with the first letter i type until i type the next and so forth...pls … | |
How to create n number thread in python. i want iterate over the for loop and create a thread for iteration sample code for i in range(o,50): i want to create 50 thread here which call the same function. how start and stop each thread after completion . | |
So...I first tried NetBeans, and I had everything working again cept for this error about the package "R". So, then I went to eclipse and followed instructions of everything and again the error is there too. I am really lost with this and it always involves with this R package..any … | |
Hi All, I am using grid with image column. When user's click image to opened up image(jpg,jpeg,bmp,gif) via a image and fax viewer (i.e by the operating system). i have try to open but it's open in IE any one please me. Thanks Anandh | |
Hi fellow programmers. I am having a cross os compiling problem. I want my friend to test a program I am makimg, and he knows nothing about c++. I am using linux ubuntu 11.04 and can compile on that, but I can't find how to compile for windows, and he … | |
need help.. a long distance provider charges the following rates for phone calls daytime $0.07 evening $0.12 off-peak $0.05 create an app that allows the user to select a rate category (from a set of radio buttons) and enter the number of minutes of the call, then displays the charges. … | |
hey im trying to create a program that will convert between metric and standard units.I chose length as my measurement so i have nanometer,millimeter,centimeter,meter,hectometer,kilometer,inc,feet,yard and mile. i wanted the inpu to be - number to be converted(text box) -unit number is in(combo box) -unit to convert to(combo box) i know … | |
film class [CODE] import java.util.Scanner; // Creating Class Members public class film { private String itemCode; private String title; private String description; private String language; private String runningTime; private String productionCompany; private String status; //eg, pending, premiering, running, written-off // No-argument Constructor: Without Parameters public film() { itemCode = ""; … | |
I am trying to complete an assignment for my beginner's computer science. I have to write a program that proves that every even number greater than four is the sum of two prime numbers. I prompt the user for the top end of the range (the lowest being four) and … |
The End.