199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for chade25

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 …

Member Avatar for chade25
0
118
Member Avatar for rowley4

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 …

Member Avatar for rowley4
0
330
Member Avatar for iamthwee

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 …

Member Avatar for iamthwee
0
446
Member Avatar for bimalnayak

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',"; …

Member Avatar for digital-ether
0
115
Member Avatar for coding101

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 …

Member Avatar for coding101
0
116
Member Avatar for help_lucky

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 …

Member Avatar for alobal
0
116
Member Avatar for kate2mba

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 …

Member Avatar for kate2mba
0
151
Member Avatar for digital_dizasta

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 …

Member Avatar for mrniceguy03
0
3K
Member Avatar for TheComputerGuy

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 …

Member Avatar for ~s.o.s~
0
188
Member Avatar for RStartin

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: …

Member Avatar for RStartin
0
386
Member Avatar for abcdr

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 …

Member Avatar for TrustyTony
0
199
Member Avatar for kate2mba

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 …

Member Avatar for kate2mba
0
187
Member Avatar for epicasian

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

Member Avatar for mike_2000_17
0
165
Member Avatar for johny1980

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 …

Member Avatar for finito
0
154
Member Avatar for aukeebler

Error 1 error LNK2019: unresolved external symbol "void __cdecl calcCelsius(double)" (?calcCelsius@@YAXN@Z) referenced in function _main

Member Avatar for aukeebler
0
78
Member Avatar for WargRider

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 …

Member Avatar for WargRider
0
305
Member Avatar for nick3592

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?

Member Avatar for nick3592
0
440
Member Avatar for old_jefrey

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 …

Member Avatar for mike_2000_17
0
141
Member Avatar for epicasian

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 { …

Member Avatar for epicasian
0
109
Member Avatar for aukeebler

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 …

Member Avatar for WolfPack
0
199
Member Avatar for joydsouza90

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 …

Member Avatar for WolfPack
0
782
Member Avatar for Annex

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 = …

Member Avatar for risingsunankur
0
579
Member Avatar for juzzy

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?

Member Avatar for vegaseat
0
142
Member Avatar for King_Alucard

[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)); …

Member Avatar for King_Alucard
0
156
Member Avatar for k2k

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'] …

Member Avatar for chrishea
0
108
Member Avatar for design.eng

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 …

Member Avatar for design.eng
0
1K
Member Avatar for 1x4n

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"; …

Member Avatar for 1x4n
0
95
Member Avatar for avataralien

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 …

Member Avatar for avataralien
0
119
Member Avatar for Ubraxis

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 …

Member Avatar for Ubraxis
0
102
Member Avatar for reececropley

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 …

Member Avatar for reececropley
0
345
Member Avatar for Naveed_786

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.

Member Avatar for finito
0
71
Member Avatar for mennaya

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) …

Member Avatar for 0x69
0
343
Member Avatar for aryanarora

Hey i m new in java please tell me the delay function in java lika it works in c/c++.

Member Avatar for tong1
0
75
Member Avatar for danswater

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.

Member Avatar for rax_19
0
117
Member Avatar for manailz

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"); } }

Member Avatar for tong1
0
154
Member Avatar for achiman

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

Member Avatar for anubina
0
351
Member Avatar for rv_mup08

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 …

Member Avatar for rv_mup08
0
2K
Member Avatar for fayenot

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 …

Member Avatar for sandeep.pande
0
193
Member Avatar for keval_hack

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

Member Avatar for Ankit_Parmar
0
80
Member Avatar for csha_cs508

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 …

Member Avatar for jonsca
0
927
Member Avatar for vijayamani

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 …

Member Avatar for vijayamani
0
105
Member Avatar for tong1

/* 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) …

Member Avatar for NormR1
0
129
Member Avatar for JameB

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, …

Member Avatar for JJenZz
0
331
Member Avatar for manisvembu

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 …

Member Avatar for manisvembu
0
118
Member Avatar for jrock2004

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 …

Member Avatar for JJenZz
0
103
Member Avatar for SENTHILRAJAG

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

Member Avatar for hirenpatel53
0
106
Member Avatar for Jollyyy100

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 …

Member Avatar for Jollyyy100
0
176
Member Avatar for prem2

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 …

Member Avatar for tong1
0
111
Member Avatar for need help!

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. :(

Member Avatar for hayathms
0
11K
Member Avatar for phphit

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()); …

Member Avatar for vibhaJ
0
754

The End.