199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for abraham james

May somebody pliz help explain to me line by line of this c++ coding cause I can't seem to understand it:- #include <stdio.h> #include <stdlib.h> #define SIZE 50 #define pi 3.14 void push(int i); int pop(void); void sort(int stack[SIZE],int numbers); int *pointer, stack[SIZE],numbers; void main(void) { int value,numbers,num,num2,num3,num4,array[5],num6,num7,num8; float num5,num9; …

Member Avatar for William Hemsworth
0
215
Member Avatar for didi00

Hello I'm doing a program about UART in Borland C. And I have a few questions. This is the code: [code] #include <iostream.h> #include <dos.h> #include <conio.h> #include <stdio.h> #define COM1 0x3F8 int main(void) { clrscr(); // outportb( COM1 + 1, 0 ); outportb( COM1 + 3, 0x83); outportb( COM1, …

Member Avatar for didi00
0
104
Member Avatar for kadamora

hi...i'm making a game that uses the direction arrows and fires with space...the problem is that when i keep holding 2 keys it makes only the behavior of one....can any1 tell me what i shall do

Member Avatar for mikiurban
0
170
Member Avatar for abu taher

have any code for all form. I mean, here I write [CODE]form1.show form2.show form3.show[/CODE]But I want I write one line. like: "allform.show". or other what is right.

Member Avatar for AndreRet
0
127
Member Avatar for nareshkumar131

Hello, I have a DatePicker and text box on my Form and When I try to show the choosen date of DatePicker in the TextBox. It Shows the date and time. But I want to show only date. Plz help me. Code: text1.text=DatePicker1.value

Member Avatar for AndreRet
0
230
Member Avatar for eggmatters

In Design mode in NetBeans IDE, I had a palette with all of my AWT and Swing controls and some netbeans that I can drag and drop onto the Jframe I'm designing, I accidentally closed it. I am not seeing a menu option anywhere to add that palette back as …

Member Avatar for eggmatters
0
320
Member Avatar for azamsalam

i am using SSRS 2005. In my dataset there are some blank rows and in SSRS is showing blank rows. Is there a way that i just show rows with data and ignore blank rows. i set the visibility property but it is showing blank line. dataset: a b c …

Member Avatar for azamsalam
0
166
Member Avatar for Clawsy

I'm building a Content Management System on my own in PHP & MySql. I thought it's a good idea that all CMS files to be stored secure on the server "before" www folder so that it can't be accesed from the browser (all cms files in one folder). In www …

Member Avatar for Clawsy
0
293
Member Avatar for samarudge

Hi, I have some code to dynamically retrieve one of three AJAX files and insert it into a DIV The Javascript is [code=javascript] function createajax() { var Ajax; try{ Ajax = new XMLHttpRequest(); } catch (e){ try{ Ajax = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try{ Ajax = new ActiveXObject("Microsoft.XMLHTTP"); …

Member Avatar for ShawnCplus
0
114
Member Avatar for Maged Media

hello plz i need help with this urgently as it i supposed to be used tomorrow :S i get this error from the following script Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/aybasuco/public_html/MySQL-Formmaker/lib/db_index.inc.php on line 42 thanks in advance for your valiable time [CODE]<?php # …

Member Avatar for Maged Media
0
167
Member Avatar for Kaotic07

Hello, I have to write a program that merges 2 seperate files and then outputs to a single file. Each input file is to have numbers in ascending order and the output is supposed to compare these and then put them in ascending order. ex.: input1 = 1 3 5 …

Member Avatar for Kaotic07
0
154
Member Avatar for Kristysos

I don't know why it kept appear this error: The name 'LogoutBT' does not exist in the current context. All my textboxes and buttons do not exist in the current context Please help me. Thanks. using System; using System.Data; using System.Configuration; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using …

Member Avatar for mailme.vibin
0
156
Member Avatar for Moody1

Hello guys, i'm using Windows Application C# i want to get a comboBox value which in Form1 from Form2 ex. in the form1 i have comboBox1 + Button, now after clicking that button i'm moving to form2 in the form2 i want to load some information from DB depending on …

Member Avatar for mailme.vibin
0
98
Member Avatar for nalasimbha

I have the following struct [CODE]struct A { int a, *b, *c, *d; };[/CODE] I would be creating an array of A and then populating the member variable for each of struct in the array. The members b,c,d are allocated dynamically based on the value of A.a. To assign the …

Member Avatar for VernonDozier
0
111
Member Avatar for Q8iEnG

Hi.. Is there any ready-made code for "Binary Search Tree" for Strings? if not, how to use Binary Search Tree with Strings? Thanks.

Member Avatar for Q8iEnG
0
120
Member Avatar for garcon1986

Hello everyone, I have a problem when i use json and array. And i need your help. Here is my code: [CODE] while($row = mysql_fetch_assoc($result)){ echo json_encode($row); } [/CODE] The result is: [CODE]{"id":"1","title":"event1","start":"2009-11-10 14:18:15","end":"2009-11-03 14:38:22","allDay":"false","url":null}{"id":"2","title":"event2","start":"2009-11-09 15:41:20","end":"2009-11-10 16:41:25","allDay":"false","url":null}[/CODE] But i want the result is like this: [CODE] [{"id":"1","title":"event1","start":"2009-11-10 14:18:15","end":"2009-11-03 14:38:22","allDay":"false","url":null},{"id":"2","title":"event2","start":"2009-11-09 15:41:20","end":"2009-11-10 …

0
110
Member Avatar for deftones

Hi gang, I've started making a card game, which seems is going to be quite a challenge for me. To make my question more simple, let's say we have a form with three empty images and three images with cards. How do I put those three card pics randomly into …

Member Avatar for deftones
0
75
Member Avatar for qldrobbo

Hi, I have an app that gets data out of the database. This data is updated via a separate application. At the moment the first application has to check every x seconds if there is any new data. I seem to remember reading a while ago something about subscribing to …

Member Avatar for qldrobbo
0
117
Member Avatar for zyrus001

I'm reading in a file and sending the data (once encrypted) to a dictionary, with a hash of the data before and after encryption. I then pickle the dictionary but find the file size is massive compared to the source file size. If I write the encrypted data straight to …

Member Avatar for vegaseat
0
283
Member Avatar for feoperro

Hi, I'm trying to figure out how to pass parameters across JSP pages without using links. For some reason, I can only get null across... Here is my code: Page 1 [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Test Page</title> </head> <body> <form name="testForm" action="Test.jsp"> <select name='tableSelect' onChange='testForm.submit();' style="text-align:center"> <option …

Member Avatar for javaAddict
0
142
Member Avatar for happygeek

It would seem that there is something of an ongoing battle in the world of online Chinese gaming, and World of Warcraft is right in the midst of it. As I [URL="http://www.daniweb.com/news/story220683.html"]reported[/URL] back in July, the company behind World of Warcraft (Blizzard Entertainment) was having problems in getting The Burning …

0
717
Member Avatar for guguman

Hi guys, Sorry to ask a question as my first post. I'm totally new with c++ and I couldn't understand much about vectors. [CODE] case 1: { cout<<"Enter [S]avings Account , [C]hecking Account,[G]eneral Account"<<endl; cin>>selection; if ((selection == 'G') || (selection == 'g')) { acc.push_back(newAccount); cout<<"New account added"<<flush<<endl; break; }//end …

Member Avatar for SVR
0
141
Member Avatar for wrobl1rt

I am trying to remove a specific substring from a string... Here are the doctests. I'm just absolutely stumped. Can someone point me in the right direction on where to start? def remove(sub, s): """ >>> remove('an', 'banana') 'bana' >>> remove('cyc', 'bicycle') 'bile' >>> remove('iss', 'Mississippi') 'Mippi' """ def remove_all(sub, …

Member Avatar for vegaseat
0
6K
Member Avatar for SuntechWebsites

Heres the skinny: I have created a site with user login that directs the user to a page that only shows thier information pulled from the database. What I want to do now is create an admin side that allows the site owner to be able to use 1 login …

Member Avatar for foxwizzy
0
149
Member Avatar for Excizted

Hi. I have a problem I cant find a solution to, since I am unable to describe the problem in a searchable way. I make a hWnd for each contact the user has: [CODE=C++]contact[atoi(rowC[0])].hWnd = CreateDialog(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG4), hWnd, messengerBox);[/CODE] messengerBox is defined like this. [CODE=C++]BOOL CALLBACK messengerBox(HWND hWnd, UINT message, …

Member Avatar for Excizted
0
432
Member Avatar for UKmason

[CODE]double distance (double angle, int mps, double earth_gravity) { double earth_distance; double speed_sqr = mps * mps; earth_distance = speed_sqr * sin(2*angle) / earth_gravity; return earth_distance; }[/CODE] its supposed to come out at = 3831.57 intead it ends up being =3155.52 anyone know what im doing wrong?

Member Avatar for Fbody
0
270
Member Avatar for krishna_sicsr

f = \ ''' Product: DECNET Node: ALETHA Address(es): 1.1 Product: TCP/IP Node: aletha.ind.hp.com Address(es): 15.146.239.174 ''' lines = f.split('\n') i = 1 ###### To get the IP Address(es) adapter_config = True for line in lines: if adapter_config: # print line import re if (re.match("^Product:\s+",line)): line1=re.split("\s+",line) print line1[5] I want …

Member Avatar for masterofpuppets
0
137
Member Avatar for elauri

Hello all, my first post. I have identical tables in my db. Is there a way to create a view with dynamic query to combine/union all the identical tables into one view? dbo.table.x-1 dbo.table.x-2 dbo.table.x-3 dbo.table.x-{n}

Member Avatar for elauri
0
139
Member Avatar for discovery-power

Hi All, I have just started learning how to write C++, I have written my very first very simple program using notepad and saved the file as simple.cpp. So my question is how do I compile or build my program into an executable file, I understand I have to use …

Member Avatar for discovery-power
0
161
Member Avatar for discovery-power

Hi All, I am currently learning C++ and i have started to write some small programs that explain operators, integers and values, my question is this. How do I make my programs stay on screen, at the moment I run my program it displays the message on screen for about …

Member Avatar for discovery-power
0
165
Member Avatar for jrosh

I want to run a FTP url in explorer. (Not in IE) What i want is some how when the button clicked the URL should appear in the address bar of the windows explorer. This is because the ftp I access should be accessed in that way (By typing the …

Member Avatar for GeekByChoiCe
0
142
Member Avatar for tom.t

I'm writing pseducode for a Java class. Obviously being pseudo the language shouldn't matter but thought I'd mention it as it would explain any 'bias' I have. BTW, this is my first programming class. I'm revising for my end of semester exam. Write a pseudo code algorithm which will input …

Member Avatar for tom.t
0
193
Member Avatar for Eman84

Hi I need to integrate paypal gateway on my website. We sell memberships. There is a trial period for using some features of the website. After that users must purchase their memberships - it can be a mounth or 6 mounths or a year. Now, I could dynamically generate the …

Member Avatar for liamfriel
0
210
Member Avatar for sibobo

im newbies in c++... my task is to translate code Morse into alphabet an count the word i use... the problem is i dont know how to use the ifstream to read and use the code Morse that must be kept in .text file i only manage to write the …

Member Avatar for sibobo
0
166
Member Avatar for alsoumhi

Hi guys, I am trying to restrict users to access the sources of my application so I have used tomcat-users.xml file , but later I will be facing a problem which is how if I have a lot of authorized users , so I will add each one to that …

Member Avatar for javaAddict
0
115
Member Avatar for ramprakash2489

i am not getting the desired result in link list in C# when i am putting the record bt its nt showing in the records when i view this code so plsss help me to find the desired result [code=csharp]using System; using System.Collections.Generic; using System.Text; namespace Single_Linked_List { class Node …

Member Avatar for sajid syed
0
230
Member Avatar for Iam3R

Hello , i have written the code for finding the middle element of the list with 0(n) complexity. please gurus, verify that and let me know if it needs any modifications and ofcourse i have question to ask when the no of elements are odd we can easily find the …

Member Avatar for Iam3R
0
130
Member Avatar for MoooCow

Hello, I am having some difficulty in trying to figure out where I am going wrong in my program. I am trying to convert infix to postfix and from there I am evaluating the postfix. However, it is not compiling correctly. I've tried several things but nothing seems to work …

Member Avatar for quuba
0
143
Member Avatar for sarithak

Hi frnds... i m doing music portal. i need to upload Albums to FTP from admin side.Each Album having 5/6 audio files. Each song details should be saved in my DB also..plz give me some suggestions ...

Member Avatar for abhi_elementx
0
70
Member Avatar for dangari

Hi. I have a web application whereby I perform a search through 4 fields, namely:book serial no.,tel no.,gender and publishing date.In my jsp page variables picking the values respectively are:serial,tel,gender and datez.These are submitted to the java class.Currently, I perform my searches as follows(in java class): /***********************************************/ [code=Java]//......after connecting to …

Member Avatar for dangari
0
107
Member Avatar for nccsbim071

Hi All the coders out there. I need a suggestion. I have windows xp installed on my computer and i need to develop application for windows vista. I would prefer to use .net framework 2.0 and visual studio 2005. Instead of .net framework 3.5 and visual studio 2008. Well, selection …

Member Avatar for nccsbim071
0
419
Member Avatar for bonzi200x

I'm getting the following error A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Is this an installation error?? I'm using php 5.2.11 on centos 5.4.

Member Avatar for cwarn23
0
110
Member Avatar for tayspen

how would i do this i need to do it other wise u have to havesomthing (i forget what is on your comp in order for them to worK)

Member Avatar for DARREN HANSON
0
293
Member Avatar for beginerC#

Hi! I have a form with two dateTimePickers (first with date of one month ago, and the secod with current date), a dataGridView and a button. When i click the button i want to populate the dataGridView, but only between date1 and date2 [CODE] mySqlCommand = con.CreateCommand(); mySqlCommand.CommandText = "SELECT …

Member Avatar for beginerC#
0
269
Member Avatar for phantom1000000

Hi all, I've got a spot of bother with my radiobuttonlist. It has 3 items in it and I want them to control the visibility of certain divs/tables. But even simple text changes are becoming a headache and the postback is not firing the event I clicked on but the …

Member Avatar for phantom1000000
0
125
Member Avatar for daneuchar

danni web has been a great help to me i want just one more help i am able to connect to MSSQL present in my localhost using wamp but i am unable to connect to my MSSQL running in a pc with ip 123.xxx.xxx.xxx can u guide me on how …

Member Avatar for daneuchar
0
161
Member Avatar for topcat712

Could someone lend me their brain? :D I thought I had most of it done, until I got an error saying that my 'calcAverage' definition was not defined.. x.x here is the prompt for the program: Write a program that asks the user how many pumpkin weights they have, and …

Member Avatar for masterofpuppets
0
166
Member Avatar for YingKang

This code outputs the result in console. I want to implement a Swing JFrame, producing output readable by user. Do I have to change all my code if I want to use JFrame? Can anyone help? I am not familiar with JFrame at all. Thanks : ) [code] import javax.swing.*; …

Member Avatar for masijade
0
198
Member Avatar for skiplatte

Pretty much what the title says!! Basically I want to store method generated Strings and then plug them into another method - would hashtable be a way to do this?? Thanks

Member Avatar for masijade
0
103
Member Avatar for just4why

I would like to automatically generated staff number before generated the staff number i would like to check the staff.txt is the staff number exist. If exist then it will get the last's staff number and continue to adding. But the code that i creating it wont work. Please help …

Member Avatar for just4why
0
112

The End.