199,114 Archived Topics
Remove Filter ![]() | |
I am given dates in string format- Eg. 11/09/2010. (11-09-2010 not allowed) How can I convert it into integer dates? I am given two such dates in string format only and I want to find the no of days between them. | |
Hey guys, I am making a calculator. It has two "screens", one showing input and one showing output. When the equals button is pressed on the calculator, the calculation is shown on the output screen. I have come across this problem: Let's say I type into the input screen "10" … | |
Hi! In every iteration of reading a file I populated a dictionary and appended it to a list . A part of that list looks like this : . . . Key Doc ID freq line number {'Emin': ({'file13.txt': 1}, {'Emin': [38]})} {'Gun': ({'file13.txt': 2}, {'Gun': [43, 71]})} {'I': ({'file13.txt': … | |
Hi, I have a problem with my form application that when I close it (using cross in top right), the whole program crashes indefinately. This has only recently become an issue when I introduced some invoke code for updating a label and picture box on my form I have an … | |
how to insert username and password into database with connection in c# please give me reply sir | |
Hi, Iam new to PHP I need some help I am trying to insert multiple checkboxes values <td> <input name="myvar[]" type="checkbox" value="abc"> abc<br/> <input name="myvar[]" type="checkbox" value="def"> def<br> <input name="myvar[]" type="checkbox" value="ghi"> ghi</td> along with other datas to the database, and I dont know how to do this I wrote … | |
I got run-time error in the following simple code, but I don't know what's the problem. can any one help? [CODE] #include "stdafx.h" #include<iostream> using namespace std; void reverse (char * source) { int i=0, j=strlen(source)-1; while (i<j) {char temp=source[j]; source[j]=source[i]; source[i]=temp; i++; j--; } cout<<source<<endl; } void main() { … | |
Hello I am reather new in c++ and I try to solve some exercises but i got blocked. Can anyone help me with this? The program should read in values until a negative value is read in. It should determine the largest value that was read in and display that … | |
Hi all, I wrote a function. The aim of it is ; If the formula is "C12H22" and the str11 is "+H1" then the result should be "C12H23" or if the str11 is "-H1+O1+C1", then the result should be "C13H21O1". It is working all the time but it fails when … | |
Hi, Im trying to create a canvas as a background but i can manage to work =/ I create a window with the text and the size of de image, but the image is not there can someone help me? thanks. [CODE]import Tkinter as tk import tkMessageBox class Janela: def … | |
Hello everyone, I have a problem, I have to get value from edit box, store it in variable and based on that value need to update another edit box. Please tell me how can i get inter value, which is entered by user in visual c++. | |
I am trying to make a query which will search for the ID's 5, 6 and 23(Those are just random numbers and could potentially be more). Rather than making a loop in my code to query each separate ID I was wondering if it was possible to query them all … | |
I'm trying to create a dynamic menu using jQuery, so I've built a basic one and I'm having problems making it look more impressive. At the moment, I can click on an item and the contents will be displayed above the rest of them. I want the content to slide … | |
#include<iostream> using namespace std; int main() { int x,inpt,ctrl; x=1; ctrl=1; cout<<"Enter a number: "; cin>>inpt; while(ctrl<=inpt) { while(x<=ctrl) { cout<<x<<" "; x++; } cout<<"\n"; ctrl++; x=1; } system("pause"); } can u please help me to invert this triangle? | |
Hello. I'm writing codeing progam. It reads from file using fstream and then converts simbols to ascii, changes ascii, converts ascii to symbols and writes them to file. I tried to code .txt file with it. It worked perfect. But then i tried to convert .bmp file and then i … | |
![]() | Hey. I use uploadify for uploading avatars on my website. When "JPG" is selected in place of "jpg" it can't upload the picture, it returns "1" in place of the filename. Now, the question is, how could I strtolower the extension or something, to be able to upload pictures with … ![]() |
I need to execute a .exe file located in C:\Program Files\ABC\test.exe on my windows machine using PHP. I have installed WAMPP/XAMPP to run PHP. I have tried the exec() system() shell_exec() but I'm unable to run the file. [B]Can someone help me with the exact code?[/B] | |
class Stars { public static void main(String args[]) { int c=1; for(int i=1;i<=10;i++) { for(int k=1;k<=c;k++) { if(k%2==0) System.out.print("*"); // else // System.out.print("*"); } System.out.println(); c+=2; } output: * ** *** **** ***** ****** ******* ******** ********* i cannot understand that what the function of variable "c" and how it … | |
I am trying to make an audio player in visual c++.I am using an audio engine called FMOD which is in a dll to call functions from it for audio playback. How do i import a .dll file to visual c++ | |
hi, i need some advice, looking for someone to point me to somewhere which would be a cheap/free sms text gateway to integrate with my existing mysql/php site. need to be able to record texts that are sent to clients. do we need an sms gateway provider? many thanks | |
heya.. im creating a quiz program...but i dont konw how to randomize the questions can any1 help me out??? | |
I am doing a Smart device project The problam is I can not pass parameters to the stored procedure to insert into the database from the PDA emulator for the following sqlDbtypes it gives me the following error A first chance exception of type 'System.InvalidOperationException' occurred in System.Data.SqlClient.dll Deicimal Money … | |
Hi all! i am trying to copy a file from 1 location to other location with a new name. The new name should be like "Oldname + date & time". I wrote the following code but getting error that the Given path format is not supported [code] Imports System.IO Public … | |
Hi all, I saved my connector/j jar file into this location C:\ ... \Java\jre6\lib\ext as well as in $CATALINA_HOME/common/lib and i am using this code in the JSP : Class.forName("com.mysql.jdbc.Driver").newInstance(); I am getting below driver error message. Somebody please help me out. javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver My jar file name is … | |
Hi friends I have a small doubt regarding PHP programming. I want to know how to parsr .svg files or .xml files using PHP. Actually i have a bunch of .svg files and i want to know how to read those .svg files using PHP? Can you please provide me … | |
Hi guys, I am using Visual Studio 2008 and have connected a database correctly as I have done a login that works fine, although when I try to insert information submitted in the text boxes a different table, it doesn't enter after I end program to check it still has … | |
Okay, so i need help getting a value from a variable in one class's method. I want to use that data in another Class's method. Heres what i mean... [code=java] public class RoomType{ public String N(String[] args){ Scanner scan = new Scanner(System.in); String opt = ""; int x=1; do{ opt … ![]() | |
Hello. Anyone familiar with the Halstead product metrics? we are going to implement it. and again i need some help. here is our algorithm: 1. The user runs the program. 2. The program will ask the user to browse the file he/she wants to be evaluated using the programer's own … | |
hello everyone, i get this error when i try to run thsi program..its really nothing, i'm just a new programmer and this si practice but i'm stuck here :( error C2228: left of '.Text' must have class/struct/union 1> type is 'System::Windows::Forms::Label ^' 1> did you intend to use '->' instead? … | |
so, lets say I have a thread that looks like this: [CODE=java] public run() { boolean active = true; while (active) { //do some action that takes a really long time } } [/CODE] Is there any way I can directly stop and destroy this thread in the middle of … | |
I have a simple class [CODE]class Info { public: long One[31]; long Two[79]; };[/CODE] i'm reading values from a couple char arrays, when I write to Two[0], it overwrites One[31]. [CODE]CurInfo->One[31] = atol(BufferOne); chatoutf("%d",CurInfo->One[31]); CurInfo->Two[0] = atol(BufferTwo); chatoutf("%d",CurInfo->One[31]);[/CODE] if I feed bufferone a -1, and then buffertwo a 623, I … | |
I'm looking for a script that allows users to create a profile, in which they could upload a few pictures and write descriptions about them. It would be for auto themed site in which people could upload images of their vehicle and write a description about it. Not in the … | |
Hello All, I have a question regardind=g accessing shared resources. I have a for loop in which i am creating many threads.. And each thread at some point of time they call this function : [code] Public Function UpdateMailJobs(ByVal con As Data.DataRow, ByVal jobid As String, ByVal varName As String, … | |
Can Somebody please help a newbie ? I`ve searched high and low for an answer, but just can`t seem to get it working ! I`m trying to write a programme ,in VB2008 Express, to receive Serial Port Ascii data ( from a Multimeter) and display it as Hex Data in … | |
The question is: Write a code that will take and inches input and convert it to mm. Then display the same result using m, cm, and mm. Example would be: Input: 53 inches Output: 1346 mm OR 1 m 34 cm and 6 mm Something is happening with the remainder … ![]() | |
Hi Guys. I am new here. I am trying to run a Poker program that can detect the different hands in poker. here is my code [CODE] class Card: # A card is an Object with a suit and rank # attributes. def __init__(self, rank, suit): # To create a … | |
Hello, I Got problem in using delimiter by using vb.net 2008 Please take a look at my code [CODE] Dim array As String() Dim IPaddr as String Dim r As New System.IO.StreamReader("config.ini") Dim rline As String = "" Dim s As String = "" While r.Peek <> -1 rline = … | |
Unable to redirect to the page using window.location of javascript for the code given below [CODE]<script language="javascript"> function confirmation() { var answer = confirm("Do you want to add more Bussess?") if (answer){ } else{ alert("Thanks for using Bus Entry form") window.location = "adminHomePage.jsp" } }[/CODE] Anyone can tell me the … | |
Can any one please help me figure out what I am doing wrong on the following C++ programing language? I couldn't figure out what I am doing wronge that it gave me a hard time to compile it. Here is what I have done so far. using namespace std; struct … | |
How to do Image cropping using php... I needed 3 steps: 1. Upload a file, view before start cropping 2. Save the original image in the db, crop the image and replace it with the original image 3. View the cropped image and ask for upload another image.. | |
I need to extract a single row or data from a query that uses left outer joins and has multiple rows returned. Currently, I get the System ID, Product Version and Contract information from the query. For simplicity let's say the result is this: 503220 7.0.2CM04 Active If I include … | |
I found some code that does something that interests me, but I don't fully understand the implementation. The part I am struggling with is where the author "overrides" an "actionPerformed" method. I have a vague idea of why someone would want to override a method that is inherited from the … | |
IS there a way of generating reports from VB6 ( not through Data Reports & Crystal Reports ) which directly sends to a local printer and printing should be done fast, No matter what ever may be the font. | |
Hi, I'm working on a page that GETs a value that is passed in the URL. This variable echos correctly up until I try echoing it inside an if statment where it needs to be. The variable is called $siteid. Inside my if statement I have a query that runs … | |
Okay first of all thanks for taking the time to read this post. So I took a C# class this last spring semester and love programming with it now. The program I am working on I decided to make for my job that will help with scheduling. Here's where the … | |
I'm having problems with the code below, it compiles but no matter what I do it doesn't open the .csv file that I want it to. The file name is passed into this funtion then it must read the values in and then print them out, simple, yet I cant … | |
i can't figure out how to get recaptcha to work with my code properly and i'm just learning to code i was wondering if anyone could help with my coding. heres my code below and thanks in advance. [CODE=php]<html><head> <meta name="GENERATOR" content="Evrsoft First Page"> <style>#conash3D0 { DISPLAY: none } </style> … | |
Hi, I'm fairly new to javascript and am trying to figure a relatively simple thing out. I have two drop-down selectors I want to display, one that lists countries and one that lists cities in the selected country. I want it to be the case that on changing the country … | |
[CODE]$OrderId = (int) $_REQUEST["OrderId"]; // query one of two $sql = 'select * from mickey.mouse where OrderId='.$OrderId ; $result = mysql_query($sql) or die('Query failed'.mysql_error()); $orderID_Passed =1; echo "test2<br/>"; $numfields = mysql_num_fields($result); echo $numfields ; echo "<br/>"; echo "<table><table cellpadding='4' cellspacing='3' border='1'>"; $orderID_Passed = 1 ; //replace with the request object … | |
Greetings, I've got a query that I'm struggling with, this is the first time that I am encountering this type of query. I have two table as shown below. xid is the primary key in parent_tbl1, while xid is the foreign key in child_tbl2 parent_tbl1 [CODE]xid pub 1 1 2 … |
The End.