199,114 Archived Topics
Remove Filter ![]() | |
I am trying to write my own shell. I am having problems with the user input part. I have made an array (char inputBuff[512]) and I want to read in user input. I am using ffputs() and ffgets() but I want to limit the person to the 512 size, and … | |
I need to write a program that implements the reverse function using a recursive solution by removing the first character, reversing a sentence consisting of the remaining text, and combining the two. I have written this code below. I have two problems. 1, I am getting a fatal error on … | |
![]() | Here is a free excel to tab file convertor. Feel free to use for whatever purpose you want. There is no need for excel to be installed on the host pc. Assumes the user is on a windows platform. Extract all three files into one folder and run the main … ![]() |
Hi I have a problem while i am trying to add to the database i can't find where is the bug is...Pls help me .... [CODE] if($action=="insert") { $acknowledgement_no=$_POST['acknowledgement_no']; $customer_id=$_POST['customer_id']; $date_commencement=$_POST['date_commencement']; $Plan_term=$_POST['Plan_term']; $ledger_no=$_POST['ledger_no']; $customer_name=$_POST['customer_name']; $age=$_POST['age']; $cur_address=$_POST['cur_address']; $nominee_name=$_POST['nominee_name']; $nominee_age=$_POST['nominee_age']; $relation_applicant=$_POST['relation_applicant']; $Place=$_POST['Place']; $agent_name=$_POST['agent_name']; $agent_code=$_POST['agent_code']; $amount_invested=$_POST['amount_invested']; $received_rupees=$_POST['received_rupees']; $query5="INSERT INTO bond_print SET "; $query5.="acknowledgement_no='$acknowledgement_no',"; … | |
Why is the debugger showing that it is skipping my loop in this method [CODE] /** * Adds an item to the list. This method assumes that the list is already * sorted in alphabetical order based on the names of the items in the list. * * The new … | |
Hello Everyone, I need to upload excel sheet in to the database. Which i am doing with the query [CODE] SELECT * INTO temp FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0', 'Excel 8.0;Database=C:\Dokumente und Einstellungen\l.varada\Desktop\BA-Control.xls', 'SELECT * FROM [qry_BA_Controlling (Report)$]')[/CODE] Here C:\Dokumente und Einstellungen\l.varada\Desktop\BA-Control.xls is the path from where the excel file needs to be … | |
Wirte a regular expression pattern to match all words ending in s. This is what I got but seems like im thinking to hard on it, plus of course its not working lol Please help! :) [CODE]import re str = "Subs are everwhere" print (str) matchObj = re.match(".*?s ",str,re.L|re.I) if … | |
Question 1 Package-delivery services, such as FedEx®, DHL® and UPS®, offer a number of different shipping options, each with specific costs associated. Create an inheritance hierarchy to represent various types of packages. Use Package as the base class of the hierarchy, then include classes TwoDayPackage and OvernightPackage that derive from … | |
Morning to all those Daniwebbers out there! I have what I thought was an odd task of converting a String into an INT. I know of the parser Integer.parseInt(x) However if the user enters 02/14/2010 the / are not an INT type. I've thought about using substring possibilities. Taking substring … | |
Hi everyone, I just started doing C++ coming from a java background. I'm writing a discrete event simulator at the moment and need to put 'job' objects into a priority queue and sort them by their next job time- i.e. shortest job time first. I first tried doing the following: … | |
I need to write a function that takes a string as an argument and outputs the letters backward, one per line.so far I have this: [code] def wordReverse(word): acum = "" for ch in word: acum = ch + acum return acum [/code] I tried adding \n to acum but … | |
Hi all its me needing help again :P My exercise says: Write a function wordPop that accepts a text and a length N and returns the list of all the words that are N letters long, sorted by their length. okay so what I have is 2 fuctions first: [CODE]def … | |
When I try to compile my project, I get 138 errors about the include files in VC++ 2008: [url]http://pastebin.com/yfp85sMF[/url] Thanks in advance, ~Asian | |
i am working on medical billing and coding project.i am at login page right now. i create form and code but i had error for InvalidOperationExcepmtion was unhandled. i am really thankful for help who will give. my code is here : [CODE]Imports System.Data.OleDb Public Class login Inherits System.Windows.Forms.Form Dim … | |
Error 1 error LNK2019: unresolved external symbol "void __cdecl calcCelsius(double)" (?calcCelsius@@YAXN@Z) referenced in function _main | |
Well, I am writing a game / engine in 2d in , and I have gotten quite far, my problem is I was reading some stuff about the engine Slick2D, which is pretty much one of the most popular 2d engines in Java, I noticed that the creator said he … | |
hi i was wondering how i can get a certain part of a url in php. For example a url like [url]http://site.com/randomfile[/url]. what i want is only the site.com part. How can i do this? | |
Let’s say you have few functions: func_1(arg1, arg2, arg3) , func_2 (arg1, arg2) and func_3 (arg1, arg2, arg3). All 3 performing similar steps: func (arg1, arg2, arg3) { Read line from the file validate_func() Store results into arg3 } So my question is – what would best way to approach … | |
Hello, I'm trying to create my own game engine, and ran into a problem with nested classes. Currently, I only have one class that has any methods: [CODE] #ifndef WINDOWMANAGER_H_ #define WINDOWMANAGER_H_ #include <SFML/Graphics.hpp> #include <string> namespace tnt { class Engine { public: class GeneralCore { public: class WindowManager { … | |
For a function protoype header can one be double while the other one is void? I'm trying to make the void displayPayment function work, but am a little lost. Should I turn the carPrice, Rebate, ect.. into void functions in the prototype, or can they work without doing that? Thanks … | |
hey all so here's my problem: im just trying to learn a little opencv and ive been stuck at this for a while. When i run the following code, i get a runtime error " An application has made an attempt to load the C runtime library incorrectly ". This … | |
Hi. I need TextBox in which user can input only numbers. I found some examples about it, but can't do them. For example in the following code Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Not (e.KeyChar.IsDigit(e.KeyChar)) And _ e.KeyChar <> ChrW(Keys.Back) Then e.Handles = … | |
hi, im trying to do something like the following: text_area = wx.TextCtrl(self.panel, -1, style=wx.MULTILINE) a = (all the text in the text control window) I can't get my head around how to define the text with wxpython, how should I go about this? | |
[CODE]#include <iostream> #include <cstdio> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; int main() { int rNumber = 0; int uNumber = 0; const int maxNum = 10; const int minNum = 1; const int range = maxNum - minNum; int counter = 0; //declare random formula srand((unsigned int)time(NULL)); … | |
my login script checks for login name and password in the database, if true then set value for a session variable for example $_SESSION['loginName'] = $login --> this is to identify who got logged in. however, if i have more than one user logged in to the system, then $_SESSION['loginName'] … | |
I have been looking for a tutorial to learn populating drop menu or list data from a mySQL. I have found this thread from a website. But it seems something wrong. I get this error [CODE]0 and !is_numeric($cat)){ // to check if $cat is numeric data or not. echo "Data … | |
hi all i've been trying to find a php function for this but couldn't find any hope anyone here can help i want to show only a part of string like SELECT LEFT (0,5)... in SQL but i want to do it in php ie: [CODE] $string = "hello world"; … | |
I am not sure what is wrong with my While Loop because if select ("Press 0 to edit info."), I will not get prompt for "Name" anymore. Another thing is my exception does not work. I wanted to deny user from entering alphanumeric under "Mobile". Only numeric allowed here. Pls … | |
I require some help with a program I've got to write, the theory behind it is based around OOP, but I'm having trouble grasping what exactly I should be doing. I'm not entirely sure how to call the addProperty method from the Property class, or even that I've written out … | |
Title doesn't really give this thread justice ... I have a content div with an image and text included into it. This same div class is being used multiple times. What I want is to be able to click the image, and have the <p> in that div toggle to … | |
Dear All, Please help me i want to take print of my form in a short slip please give me some code to fit the print siza on the short page i am usin LQ+ 300 printer for this purpose please please help me. Thanks in advance. | |
Hello, Please can anybody tell me how can I move a 3d model I am making a 3d human body tracking and i have reached the stage that i extract the position of the main parts of the human body using a camera (wrist, elbow , shoulder, waist,knee & ankle) … | |
Hey i m new in java please tell me the delay function in java lika it works in c/c++. | |
Hi again guys. Well i need to convert char to int my problem is how can i get the exact value of int if for ex: [CODE]char x=2;[/CODE] i need to convert that to integer. | |
public class HelloW { public static void main(String[]args) { println("hi, im aileen an it student, can you help me improve my knowledge with the different languages?"); println("thanks"); } } | |
Please how can I write a query to display only the top three earners in a table in desc order e.g Emp Sal John 100 Jam 120 Abi 90 Jo 170 the query should display Emp Sal John 200 Jam 170 thanks | |
im newbie in C++ i have a project about how to get the Total Number of HOurs Worked From inputed Tine in and Time out Time in Format: 08:00 Time Out Format:12:00 Input From Monday to Friday DTR Output must be Display the Total no. of Hours worked: 102:59 --->Example … | |
I have a table for projects, it has two fields for [B]project_start[/B] and[B] project_end[/B] both have datetime data type. what should i do so that when the user insert dates on both field it will automatically subtract and place the answer on the [B]duration[/B] field... please help.. oh before i … | |
Hi, I want the name of all University in india. please any one can give me name of site where can i get the list of all indian university. -keval | |
our task is to show the histogram in a vertical orientation like this: Sample Input/Output Enter a string: waka waka fifa Histogram for waka waka fifa * * * * * * * * * * * a f i k w I have here my code, but the output … | |
Hai Everyone.. I am new to this forum & MySQL.. I hava a table like this [code=php] iss_date item_code aa bb cc 2010-06-05 abc 10 15 15 2010-06-10 cca 20 20 20 2010-06-12 abc 12 12 12 2010-06-13 abc 13 13 17 2010-06-15 cca 18 17 24 [/code] I need … | |
/* The following programs are written to guard the input. The input is requested as an non-negative integer.Is there other method to do so? */ /* Operation on DOS window: "PositiveInt1" receives a positive integer only. */ import java.util.*; public class PositiveInt1{ static int factorial(int n){ int fac=1; if ((n<0) … | |
I have a javascript function to toggle a specific id sent to the function [code=javascript] <script type="text/javascript"> function toggle(id) { var localId = document.getElementById(id) if (localId.style.display == 'none') { localId.style.display = 'block' } else { localId.style.display = 'none' } } </script> [/code] I want to do the same in jQuery, … | |
Hi ... I Need to work with more AJAX Content, So i want a JS Function with Arguments like URL(the url to Ping), Parameters to Send , ctype(Content Type XML,JSON or TEXT). All i need is when i Call the Function with these Arguments , the Function should return the … | |
Ok so I am trying to setup on my site to have 6 of my recent tweets. I am trying to use the .getJSON method and it is just not working. [CODE] $.getJSON("http://api.twitter.com/1/statuses/user_timeline/jrock2004.json", function(data) { $.each(data, function(){ $('<div></div>') .hide() .append('<span>' + this.text + '</span>') .appendTo('#tweets') .fadeIn(); }); }); [/CODE] Any … | |
How to Hide the Query String Values from user in asp.net while the page is redirect to another page. any one know that please reply for this | |
Hi, would u please help me with the buttons i use on my vb.net forms. I want a way in which if i drag my mouse onto a particular button it would increase its size and if i click onto it, it can respond to the codes. May be like … | |
Hi, I have a few basic doubts in java . Statment: class MainExample1 {public static void main(String[] args) {}} class MainExample2 {public static void main(String []args) {}} class MainExample3 {public static void main(String args[]) {}} 1.What is the difference between the above three statments.? 2.Why main method should be declared … | |
I use windows-xp python 2.6 Could I have your help. I need to hide and then show a Tkinter root window. And also "remove" the exit, minimize and maximize options. I can't do it like this! root.hide() #do some stuff root.show() Root.hide works but root.show doesn't. No Exception thrown. :( | |
For some reason, Javascript I am trying to execute with php is not working. Below is my code. [CODE] <script type="text/javascript"> function GetIst() { var d = new Date() var gmtHours = -d.getTimezoneOffset(); document.write(+ gmtHours); } </script> <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); … |
The End.