199,114 Archived Topics
Remove Filter ![]() | |
so i have to make a "Space invaders" like game (just a simple one though) but i dont know what codes should i use this is the code : void movingX() { int xcol = 1, xrow = 1; int ycol = 40, yrow = 24; int xbombcol = xcol, … | |
Hi, How can i convert my column with timespan dataType (Eg: 04:04:45 ) to DateTime in HH:mm:ss format (Eg: 04:04:45)? Currently I can convert the column to datetime (Eg: 10/2/2012 4:04:45 AM) but I only want the time (Eg: 04:04:45 ). Can someone help me please... | |
is there a compiler(software) for MIPS (Assembly Language) that let me write and run programs? for ex Java -> eclipse. | |
hi frnds, i am doing a project related to food items.. here i took different categories like restaurants,pubs,foodfestivals,hangouts... and also i took diffrent tables for each category in database.. each table having area,rname...now i need to search what ever user typed in textbox(area,rname) from database. plz give any suggestions asap.. | |
I have the exact function with image resize on my site, but I would like to add the watermark to the same function, I tried with many options, but nothing worked. Can someone help me to add watermark function please code as follow function do_resize_image($file, $width = 0, $height = … | |
I want to draw a chart similar to area chart in asp.net. possible to use js / jquery. I tried out java script libraries that are available to draw charts, But those has no chart per my requirement. But I couln't find any pure code examples to draw a chart. … | |
Hi all , I want to create a search page like csoft.com . Open the site in a browser and enter "wiseimage" in search option left side of the page Search ,search the site and enter "wiseimage" and see the result. According the result of this site I want to … | |
<html> <head> <script language="JavaScript"> function validator() { if (text_form.name.value == "") { alert("Please enter your name"); text_form.name.focus(); return false; } return true; } </script> </head> <body> <form name="text_form" method="get" action="success.html" onsubmit="validator()"> <label for="name"> Name </label> <input type="text" name="name"/> <br /> <input type="submit" value="submit" /> <input type="reset" value="reset" /> </form> </body> … | |
Hi! I am trying to upload images to teambox.com using curl and php, but I always get the error "Invalid file name", "you can't upload a blank file", and "Invalid Record". Any suggestions on how to fix it? here's my code: $fields = array( 'file' => file_get_contents($_FILES['upload_field_'.$task_id]['tmp_name']) ); $fields_string = … | |
I admit it's a part of an assignment but I don't understand what the assignment require in this part. This program is supposed to read 10 numbers from the keyboard and then the application findMax will take one single command line argument. If you invoke findMax 1, it will print … | |
I am working on a VS2010 Winform (not ASP web form). I have a copy of the local database on my computer. In this application, I have 3 forms in my application that need to connect to the same database, but different tables. Right now I am defining my connection … | |
ermm...this code i took from here >> http://tutplusplus.blogspot.com/2011/04/c-tutorial-create-dll-in-vc-20102008.html below is the code for the header file.. namespace nmspace { class myclass { public: static __declspec(dllexport) void Crap(); }; } my ques is.....if i have a more than one function that need to be call...soo i can i put it like … | |
Hi all, ive been researching user management programs on codecanyon.net, and ive got a few programs in mind. the only issue i have is redirecting users of certain groups to a different parts of the website. is it a good idea to have them login and then have them redirect … | |
Hey guys im in drastic need of help. Please fine below my code for the conversion of change in dollars and cents. The program has to convert the real number into 2 ints then output how much of each denomination to give. As is the code works fine for the … | |
As a student of computing you have been talking to the owner of your local corner shop. Having found out you are a student of computing, the owner of the shop has been talking to you about how she manages the stock / inventory control in the shop. She believes … | |
I am writing a program that is a multi-form inventory program for a bookstore with data saved in a textbox. Here is what I need to do: * Write a menu-driven multiform inventory program for a bookstore with data saved in a text file. 1. Each record of the text … | |
I decided that before I would actually write the code for my planned inventory system in a game I am writing I would test it out in a small project first to make sure I know what needs to be done and if I needed to change anything. So I … | |
Dear friends, I create a script to extract coordinate from the exif of a number of images and create an excel file with thumbnail, latitude, longitude and other columns. I was wondering if there was an (easy) way to find the closest placename from geonames given lat and long. Thanks, … | |
Hello, am working with the date function in a php file, however the text "at" is not being rendered properly: Initial code: "Online reservation form submitted on " . date ("d/m/y \at\ H:i") . "\n\n" . Rendered value: Online reservation form submitted on 29/09/12 a30 11:52 Where instead of "at" … | |
I have a problem on how to be able to tick the checkboxes chosen during registration. If i will update 1 record for example a student, his/her chosen, example his/her interests will be ticked during update. | |
I am currently in an introductory c++ class and am working assignment that sorts data. We recently covered structs and I decided to use structs to approach the problem rather than create 3 arrays to hold the information from our data file. The trouble i'm having is when i'm trying … | |
Hello, I have created a web user control to enter a date in three textboxes: txtDay, txtMonth and txtYear. I have added a custom validator with server side code and client side javascript code. Both on the server and on the client the input will be validated to be a … | |
i m traying this simples code but nothing is displayed what type of problem showld be. <?php function yourname($name) { echo "Your name is" .$name; } yourname("andi"); ?> another code <?php $age= 18; if ($age>=21) { echo 'alan'; }else{ echo 'bob'; } ?> | |
Given 3 arrays,one accepting Strings the rest integers,lets say:A1[ ],A2[ ],A3[ ]. We get the difference of each element of A2[ ] and A3[ ] to a previously define values. take for example this code: //preference.c #include<stdio.h> #include<string.h> typedef char * string; //for STRINGS char name; int test; // number … | |
Could someone PLEASE HELP ME!!! :( I need to write a program that reads an integer matrix A from standard input and outputs the input matrix and the transpose. The input matrix A is limited to have at most 10 rows and 10 columns. Given a matrix A has m … | |
I am trying to write a program to copy the contents of one stack to another. The following is the code that I came up with. It give me some syntax errors but I cannot seems to see any. Can anyone help ? //Defining what libraries should be included. #include … | |
Write a C program that models a phone recharging system in Guyana. There are two providers: GT&T and Digicel. Please ask the user to enter their telephone number and the amout of credits needed. The program should then determine whether the customer is Digicel or GT&T based on their telephone … | |
Hello everybody... I have been using c++ for a while for console applications, but now I need to make a simulation of a soda factory, implementing multi-threading and GUI. I was using Dev c++ for console apps, and I tried to install some dev-packs for multi-threading and GUI development as … | |
Hi! Sorry if this is the wrong forum to post this on but... I had a Leopard computer with all developer tools installed. Then I upgraded to Snow Leopard (erase and install), and restored from time machine. I tried the gcc command only to get "gcc: command not found". The … | |
What is the running time for the following recursive function: pubic static int Sum(int [] a, int start, int end) { if ((end – start) = =0) return a[end]; else { int mid = (end + start) / 2; return (Sum(a, start,mid) + Sum(a,mid+1,end)); } } Can someone please explain … | |
I mean,let's say we write a console (windows) application to display a text. it woruld be console.write("whatever"); 1. do we have to use different compilers for both windows and linux?what are the names of them 2.is console.write a windows only code? even if we compiled for Linux, will it run … | |
I am taking an intro level java programming class and i am a little stuck at the moment. I'm trying to use a the replace method. My objecti with this program is to gather a phrase from the user and then have it print the same phrase with some characters … | |
Hi All See the code give given below. I was fighting with this code since last 5 hours to know why isset() is eveluating the condition as false if value is posted exactly what it shall POST. If I uncomment the line no. - 4,5,6,7,8 and put rest of the … ![]() | |
![]() | Hi I'm still having trouble understand arrays since I join Daniweb a few months ago. I thought I got a handle it but it seems I need to practice more and write more arrays correctly. This the issue I'm having I can't `echo` the words <?php $printer_machine = array("Copier", "Inkjet", … ![]() |
code is at bottom i have to make the program below display lettergrade next to average and ask for the grades in a loop can anyuone help me please btw this is how im getting graded i will get a 70 if program ask the user for the number of … | |
Hey guys, I'm working with `strchr` and, for some reason, am getting a segfault. My program takes a string, iterates through the characters of that string, and adds a score to the "game" based on what letter the current character is. That sounds complicated, but my code will explain it: … | |
I am making a blackjack game in cocos2d-x here is the following code of the same where I am getting crash but can not understant why this is happening whats going wrong ? I tried several things thinking that crash might be because of string memory leak or something CCSprite* … | |
Hey daniweb, I stumbled upon an issue I can't solve myself. Here is the code : #include <sstream> #include <iostream> template <class T> inline T htot(std::string str) { T x; std::stringstream ss; ss << std::hex << str; ss >> x; return x; } int main() { int x = htot("0x0F"); … | |
I am working in sql2000 database as backend and Vb6 as frontend. Its for bank scenario I am trying to display the balance corresponding to particular account number. Do try to help. Following is my code. ************************************* Private Sub Command1_Click() Dim con1 As New ADODB.Connection Dim cmd1 As New ADODB.Command … | |
i have a listview with subitems namely NAME Age and Position. The positions are Driver, Conductor and Inspector. I have 3 textbox namely CountD, CountC, CountI. What i want is if i Click the Name in the listview where the position is driver, the CountD.text will display 1 and if … | |
Dear Experts, I have a situation , I am sure about the best approach for it. I have a database application that is designed to handle both SQLServer database and Oleddb "Access mdb" database. the issue is that during application start up , the application detects the configuration file and … | |
Hey there DaniWeb! I have been working a little bit on a framework, and i've came to a little problem:( I want my URL's to be like CodeIgniters where it'll be: site.com/modulename/function/arg1/arg2/arg3 and so on.. and i was thinking it could be be done with something like this (pseudo-code): $args … ![]() | |
I dont know what goes wrong in this code... Help me here I simply want to save the initial and final positions after dragging the mouse... #include"iostream" #include<glut.h> class point1 { public: point1() { x=0; y=0; } int x; int y; }p[2]; int flag=0; void processMouse(int button, int state, int … | |
Ok so this is my code so far: I have a issue where near the end in the getSum() method I need a way for the all the methods that i have that ask for the user input need to go into the respective arrays that i made in the … | |
Hello! I'm currently working with my monitoring system now, is there a code to append records from table 1 to table 2? Please help me guys! Thanks. | |
Hi guys, I am trying to write a program that takes in a file, which has the last name first name and grade of a student. I then need to sort the grades from highest score to lowest with the corresponding names and then calculate the average grade. I have … | |
Hi so I'm making a site for sneakers. A person can sign up and say they like Nikes, Vans, Reeboks, etc. I then have it where you can make a group for people who like certain sneakers as well. So the group can say they like Nikes, Vans, Reeboks, etc. … | |
I am using wampsever and it allows me to use php function to check if I am logged in but it is ignoring the tags inside of the html which calls a function, here is my code. <?PHP require_once("./include/membersite_config.php"); require_once("./include/fg_membersite.php"); if(!$fgmembersite->CheckLogin()) { $fgmembersite->RedirectToURL("login.php"); exit; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD … ![]() | |
I have a 1 datagridview in form1 with columns namely ID,Name_, Address, Birthday, Age, Gender,Status, Position, Driver License , Attendance, and password. The position is a combobox where the items are Driver, Conductor and Inspector. In form2 i have 3 listview namely Ldrive, Lcon, Lins. The problem is this , … | |
How to write a program use pointer on array that needs eleven numbers, compute their average and find out how many numbers are below the average?. |
The End.