199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alaa sam

hi can i have a clock in my program when it runs the clock keep running like the computer time? and how?

Member Avatar for Ancient Dragon
0
66
Member Avatar for sadsdw

Hi friends, I would like to insert "whitespace" between the numbers of my string str3 and after concatenate with str1 and str2, as str1 << str2 << str3. This is an example: E.g.: 200 3 1 2 3 4 5 6 7 8 9 Could you help me? I had …

Member Avatar for sadsdw
0
98
Member Avatar for bernadlosini

Hi all, i'am having a problem with my sql database.I'm able to insert and retrieve data.but i couldn't able to view the data in my sql interface.all the columns are empty.so where the data being stored ? why it is not appear to the sql interface ?

Member Avatar for Leon Lanzagorta
0
95
Member Avatar for ShawnCplus

As the title says: Is the XOR Swap algorithm still viable? I know that temp-swaps are supposedly faster but the shear coolness of an XOR swap makes it more attractive to me. What do you guys/gals think? For anyone that doesn't know what an XOR swap is here goes [code=c++] …

Member Avatar for arkoenig
0
232
Member Avatar for lf.gene

Hi. I have question regarding jquery. I would like to know is it possible to put two href into one therefore i can use two different css for one jquery? [CODE] <link type="text/css" href="css/ui-lightness/jquery-ui-1.8.6.custom.css" rel="stylesheet" /> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script> <link rel='stylesheet' type='text/css' href='../fullcalendar/fullcalendar.css' /> <script type='text/javascript' src='../jquery/jquery-1.4.4.min.js'></script> …

Member Avatar for Airshow
0
108
Member Avatar for rx21825

I am new to python programming and struggling with a problem I would like help with. I have multiple text files that I would like to join using the first column in each file to serve as the key to align the files. Each file could be several hundred lines …

Member Avatar for TrustyTony
0
2K
Member Avatar for comp_sci11

I'm trying to create a tree using C and print its tree traversals(preorder,inoreder,postorder) so i decided to start creating a tree first. My program accepts a characters in preorder but it doesn't print the data I entered. Could someone help me? [code] #include<stdio.h> #define MAXNODES 26 void push(); void pop(); …

Member Avatar for ankitcuul
0
201
Member Avatar for jaango123

Hi all, [code=xml]<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ABC="http://www.ABCSPGM.DSUPFREQ.Request.com"> <soapenv:Header> <ABC:ABCSHeader> <ID>xyz</ID> <ConsumerTransactionId>5667</ConsumerTransactionId> </ABC:ABCSHeader> </soapenv:Header> <soapenv:Body> <ABC:ABCSPGMOperation> <ABC:req> <ABC:plastic_number>1234</ABC:plastic_number> </ABC:req> </ABC:ABCSPGMOperation> </soapenv:Body> </soapenv:Envelope>[/code] The above is my input passed by the client. How can I extract the values within the tag 'ID','ConsumerTransactionId' and 'ABC:plastic_number' using simple xpath expressions. I know that if we give …

Member Avatar for iceandrews
0
108
Member Avatar for steve_Student

Hi can any one help me with my if / else statement, I have an assignment which has to give discounts to phone calls depending on the time of call or the day. Here are the discounts Starting Time--------------Monday to Friday-------------Saturday and Sunday Before 8am-----------------40% discount-----------------60% discount 8am to 4:59pm--------------Regular …

Member Avatar for Jason Giggs
0
148
Member Avatar for nexus490

Hey all, i have written a short program which outputs a basic Histogram in this form: (0-25) *** (26-40) **** (41-75) ** (76-80) **** (81-100) ** I'm required to alter my solution so as well as that it also outputs it vertically so i'm after something like this: * * …

Member Avatar for nexus490
0
113
Member Avatar for knellgust

[CODE]#include <iostream> using namespace std; class NumDays { private: double hours; double days; public: NumDays(double h=0) { hours=h; }[/CODE] [ICODE] how can I assign values to both hours and days, but only takes in the number of hours as its argument? I don't know how to assign the days without …

Member Avatar for xikkub
0
321
Member Avatar for xikkub

Using GLUT, moving my mouse in the display window causes the animation to increase in speed. When running at an initial 60fps, moving the mouse causes the animation to accelerate and increase to 1000fps. My data might be wrong, but there is definitely a timing issue. I've tried implementing a …

Member Avatar for xikkub
0
312
Member Avatar for chippanfat

Hey guys, in my programming assignment I need to split the mantissa and exponent and add them to two separate variables. so £1.88 would be [CODE] double amount = 1.88; //then after the conversion mantissa = 1; exponent = 88; [/CODE] I've looked at this a lot over the web, …

Member Avatar for jon.kiparsky
0
197
Member Avatar for acv528k

Hello everyone! I'm fairly new to C++ and am having trouble with a "nested loops" problem. Here is the problem: USING A WHILE LOOP, get integers from the user. Then, USING A FOR LOOP, calculate a 'times table' of that number and the numbers between 1 and 20. When the …

Member Avatar for Fbody
0
131
Member Avatar for AMetnik

[CODE] var studienummerQuery = from members in dbcontent.Medlemmer.Include("Retninger") orderby members.Fornavn select members; foreach(var a in studienummerQuery) { Console.WriteLine(a); } [/CODE] Thats my code, wonder why it doesnt work.. My tables are: Medlemmer Retninger

Member Avatar for AMetnik
0
136
Member Avatar for Mona..

Hi.. I want to compress a text file which is like this:(input.txt) [CODE] ffa11 ffb13 ffd2 e c e r [/CODE] and save the result in (output.txt) [CODE] #include<fstream> #include<iostream> using namespace std; int main() { char ch; int counter=0; fstream infile; fstream outfile; infile.open( "input.txt",ios::in ); outfile.open( "output.txt",ios::app ); …

Member Avatar for xikkub
0
1K
Member Avatar for kyuu

hi i am making a 16puzzle game and i keep getting error about parameter conversion in main function. maybe someone can help me out and figure out whats wrong? i had this program written with functions and it worked perfectly,but now making it with classes(coz my teacher requires classes in …

Member Avatar for Fbody
0
168
Member Avatar for nitins60

Hello friends, I have a Customer class (Parent class) and Member class (child class which extends Customer class). the coding is like this [CODE] public class Customer { String name; } public class Member extends Customer { int memberID; } public class Tranasaction { public void printTransaction(Customer customer) { if(customer.memberID …

Member Avatar for ~s.o.s~
0
160
Member Avatar for raubercata

Hello. I have a six locations checkboxlist and i'd like to create an array with the checked locations like this: [code] int[] v=new int[6]; private checkboxlist1_changed.....(...) { for(int i=0;i<6;i++) { if(checkboxlist1.getitemchecked(i)) v[i]=1; else v[i]=0; } } string w=v.Tostring(); [/code] and it seems it's always a step behind, cant figure it …

Member Avatar for Mitja Bonca
0
119
Member Avatar for divyakrishnan

Hi... Is it possible to search a string on a PDF file? I want to search and highlight a string on a PDF file . If any idea please help me..... Thanks for advance

Member Avatar for cereal
0
907
Member Avatar for Philosophy

I am working on an Encryption/Decryption program for class and have run into a problem. I seem to have gotten the encryption correct, but I am unable to decrypt what was encrypted in order to get an output equal to what originally went in. Here is the code I have …

Member Avatar for Philosophy
0
279
Member Avatar for sh4rif

Hello every one! i want to create something like this (show at the bottom of this message as an attachment) but i've no clue how to create this digital payrmid. can anyone please help me with the code please? thanks for your help in advance cheers sh4rif 1 1 2 …

Member Avatar for Sgouros
0
93
Member Avatar for moroccanplaya

so far the user can select a file that he want to open to be copied, is there a way of letting the user selecting multiple files to be copied to one file? i was thinking of looping around asking the user to add another file if the user wanted …

Member Avatar for moroccanplaya
0
95
Member Avatar for maged4e

hi i have small problem would u mind to help me? i want get full path of file in my hard? but the wamp server give me results as fallow : c:\\fake path\..... pr gives me only the file name only for example if i want to get file in …

Member Avatar for Stefano Mtangoo
0
88
Member Avatar for MixedCoder

[CODE] #include <Windows.h> #include <iostream> #include <mysql.h> using namespace std; int main() { MYSQL *conn; char names; names= mysql_query(conn,"select * from names"); return 0; } [/CODE] error: Error 1 error C2440: '=' : cannot convert from 'int' to 'char *' i want to set a varuable for the query so …

Member Avatar for gerard4143
0
293
Member Avatar for bflack

delete(int list) { int i, j, row; char temp_last[max], temp_frst[max]; clrscr(); gotoxy(1,21); printf("Delete Data"); printf("\n-----------------"); gotoxy(1,23); printf("Last name : "); gets(temp_last); gotoxy(1,24); printf("First name : "); gets(temp_frst); /*for(i=0; i<=list; i++) { if(stricmp(record[i].last_name, temp_last)==0 && stricmp(record[i].frst_name, temp_frst)==0) { for(j=i; j<list; j++) { temp_last=record[j+1].last_name; /*<------Error on this . line */ temp_frst=record[j+1].frst_name; record[j].last_name=temp_last; …

Member Avatar for Shankye
0
193
Member Avatar for amari ♥

i need help with the following: make a program that would display the nth of the fibonnaci sequence. 1 1 2 3 5 8 13 21 34 55 ... n implement it using both iteration and recursion.

Member Avatar for Shankye
0
156
Member Avatar for LianaN

Hi! I have a Java application that works with MySQL DB. Until today I used latin alphabet, but now I would like to extend my application to working with cyrillic alphabet. As far as I know, it is possible to use UTF-8. But I don't know the way, in which …

Member Avatar for LianaN
0
306
Member Avatar for Arsench

Hello world, I have a problem with sending email in PHP. I was sending many times with the same code, but now it doesn’t work and don’t know why. I’ve contacted with domain helpdesk, but they said that there are all OK and PHP server works properly. Please someone could …

Member Avatar for Randy Orton
0
105
Member Avatar for a1a4a

[B]Hello all it's my first question[/B] [B]I am new to database with visual basic .... I am working on a application form that allow users to register log in and get a profile page .. the problem is i need a code of leting me printing data from the databse …

Member Avatar for AndreRet
0
131
Member Avatar for newbiecoder

Hello, as I learned conio.h header file is used in Windows not Linux, I found two things from the Internet 1. Linux c++ implementation of conio.h [URL="http://sourceforge.net/projects/linux-conioh/"]http://sourceforge.net/projects/linux-conioh/[/URL] 2. libconio [URL="http://sourceforge.net/projects/libconio/"]http://sourceforge.net/projects/libconio/[/URL] What should I do to use them? I am not very familiar with C++ and I couldn't find out myself.. …

Member Avatar for jonsca
0
177
Member Avatar for Theformand

Hey all. I have a deadline tomorrow, and this thing is killing me, so I come to you with hopes of help. I have a couple of classes. An info class, which converts a string to ints and puts it in the [B]values[/B] array. Another class (plotter), is supposed to …

Member Avatar for Theformand
0
162
Member Avatar for TheDocterd

Hi there How can i get the checkbox's value from sql server 2005 and display it in my windows application? The checkbox column in my database either has two values, checked or unchecked. Now what I want to do is I have a form where I can view data. That …

Member Avatar for TheDocterd
0
2K
Member Avatar for amari ♥

i have this code and its output is 54. my question is, can someone please explain to me the process of getting this certain output, which is said to be 54. thank you. :) [CODE]#include<stdio.h> #include<conio.h> int sumS (int n, int m); void main () { int x=2, y=5; clrscr(); …

Member Avatar for Shankye
0
143
Member Avatar for eltonpiko

hi can anyone tell me how i can achive this. i have a product to sell online and will use alertpay but i have some additional information i want the user to fill in before they press the buy button to take the to the payment area.user must give the …

Member Avatar for Dragonbaki
0
149
Member Avatar for Norzog

Hello, I am in a process of making an adventure text-based game and I was wondering if it's possible to change the text color on the go. What I mean is that normally, your text would be white, but when you advance in the story (e.g. advance on lines), the …

Member Avatar for nick.crane
0
231
Member Avatar for shaz24

hello. I want to know if its possible to develop a mobile application using java language.

Member Avatar for peter_budo
0
62
Member Avatar for ghosh22

hi guyz..how r u? I am facing a problem with a simple Perl script. I want my code to calculate the length/number of letters present in a text file (which is the input). But it should skip the line starting with '>'. The input used is given below (also attached). …

Member Avatar for ghosh22
0
317
Member Avatar for EZ Fanpage

Hai Fellow Developers, I have one problem and appreciate if any of you could guide me on this. I created a custom Paypal button with some Javascript and AJAX. Why with AJAX? Because the script have a coupon acceptance code where i need some validation using AJAX. The problem is …

0
109
Member Avatar for muffle

Here is the input.txt file that I have. [code]2 5 -2 3 1 2 4 0 1 2 1 0 [/code] These are 2 polynominals. 2x^5 - 2x^3 + x^2 + 4 and x^2 + 1 while <3,5> : 3 is the coefficient, 5 is the degree. I just can …

Member Avatar for muffle
0
184
Member Avatar for Perry31

Hi, I want to take backup of all my tables in my system and i want to use in other system.Tell me how to take back up tables in oracle 9i and how to import or use those backup table in another system???

Member Avatar for debasisdas
0
99
Member Avatar for dreamer_lek91

there are quite i few data that are required to update in one time... And the default setting for a list box is that u need to update once at a time? Can any1 plz teach me how to select 2 or more item in the list box and update …

Member Avatar for AndreRet
0
149
Member Avatar for mbarandao

If the following function performs calculation [CODE] <script type="text/javascript"> function updatesum() { document.PaymentForm.newbalance.value = (document.PaymentForm.balance.value -0) - (document.PaymentForm.paymentamount.value -0); } </script> [/CODE] How do I incorporate above function and the one below into one to thus do the calculation and round the number? [CODE] <script type = "text/javascript"> function roundNumber(num, …

Member Avatar for mbarandao
0
94
Member Avatar for sha11e

I want it to do the following: Ask for a number between 1 and 5, if user inputs anything lower, higher, or something that isn't a number, it should give an error message and then ask for a input again. This code will spam the error message forever, what have …

Member Avatar for Jason Giggs
0
119
Member Avatar for _neo_

Hello! I'm new in java. I need some help, guys. How can I determine in Java next run time of cron-like job? For example, if I have crontab entry without command, like [I]"*/15 * * * *", every 15 minutes "5 */2 * * 1", every Monday at 00:05, 02:05, …

Member Avatar for _neo_
0
3K
Member Avatar for lttleastig

Hello I want to open a program and press the START button in that program and it has to run on a server so have to use remote desktop any ideas on how i could approach this? Thanks, Phi7iP

Member Avatar for AndreRet
0
134
Member Avatar for mbarandao

Hello: Here is an interesting question. I have a client payment recording form which retrieves data from a table that has clients balances and other. My task with this form is to take payments (which can be payments in full or partial payments). I need to be able to update …

Member Avatar for mbarandao
0
91
Member Avatar for Sorcher

Hello people! I would like to know how to remove white space and replace them with a "_" on the file uploaded by this script. [CODE]<?php // Check if a file has been uploaded if(isset($_FILES['uploaded_file'])) { // Make sure the file was sent without errors if($_FILES['uploaded_file']['error'] == 0) { // …

Member Avatar for diafol
0
195
Member Avatar for neosonic

Hey all, I have a picture box, and I want to detect whether the ctrl key is being pressed. Since I want to simulate... ctrl and left click for multiple selections. what I have done: 1. set beingpressed as boolean 2. in keyDown event, I set beingpressed to true 3. …

Member Avatar for AndreRet
0
746
Member Avatar for abelingaw

Ok i have this form used for registering user for my program (User and Admin type) When i run it, i get an error that says "Invalid Property Value" This is my code for my GetUsers function called on my Form_Load event [CODE] Public Sub GetUsers() ' On Error GoTo …

Member Avatar for AndreRet
0
145

The End.