199,114 Archived Topics
Remove Filter ![]() | |
Hi, I need to design a sequence diagram for the online ordering system that I will built. This is how the system works: -Customer displays the web page, browses the menu and adds items to the shopping basket - once she wants to checkout, either she has to login to … | |
Hi, I' studying various sorting techniques...And one thing I'm not clear about the complexity of the techniques... For e.g the complexity of bubble sort is Average Case=>O(n*n) Worst Case=>O(n*n) Best Case=>O(n*n) Obviously n is the no. of elements in the array... But even in the worst case i.e the array … | |
hello I want to create a page,where there will be a gridview,with 2 columns. 1st column will have Numbers..1,2,3,4,5........as much as user want. next column is where people will insert data,say a,b,c,d,e,f,g..... After pressing the button, 1,a 2,b 3,c ....all these wil be inserted in database rows. can somebody please … | |
Hello, I'm trying to do something I thought would be very simple. I need to display a "degree" symbol as part of my PHP output, and I can't figure it out. I'm trying to use the ASCII ° code. If I try: [code] echo ° [/code] I get an error. … | |
I am using an existing .aspx form that will submit a few fields and a comment box. It actually works! Now, I open that form in Dreamweaver and copy...let's say...the NAME field and all its guts in the td section for it, and reinstance it to NAME2 in a few … | |
hi i have an error here could somebody know or expirence this before plss help.. this error enclude dll and i have the site now. this is the link [url]http://support.microsoft.com/kb/248055[/url] i already put the dll in the said folder and already installed mdac. plss any has expirence this .plss help | |
Hi. I need to do a scramble game. Simply I need to randomly select a word from my set of strings and print out in shuffled string. Such as if the word is "banana" it should print out something like "anaban" and there should be text field for user to … | |
Hi, I am on Windows xp professional edition and looking for a free develeopment tool/ide for some self c++ learning. The one I can across is Dev-C++ 5 (currently beta) from [URL]http://www.bloodshed.net/devcpp.html[/URL] It is supported on XP but it is still beta version and I want something stable. Can any … | |
the program i have to write involves a dynamically linked stack to evaluate if the grouping symbols '[B]([/B]' , '[B])[/B]' , '[B]{[/B]' , '[B]}[/B]' , '[B][[/B]' , '[B]][/B]' in expressions are balanced. The expression is input through keyboard. For example: expression: {A+(B-C)*D} is balanced expression: T+{(R+M)/G-V*L is not balanced expression: … | |
So basically, my assignment was to write quick sort and merge sort using both vectors and arrays, and time how long it takes to sort the the arrays and vectors of various sizes. However, the code is producing inconsistent results. Sometimes it seg faults, other times it produces unfriendly messages … | |
Hi all! Im making a mario clone, and i was wondering how to write the jump function in the Mario class, any help would be good, im using PyGame by the way. heres my code so far: [code=python] #usr/bin/env python import sys import os import pygame from pygame.locals import * … | |
hello again i have three questions again: how can i use malloc or calloc for a two demontional arrays? is it true that A. calloc allocates memory in contiguous bytes, malloc does not ensure contiguous memory allocation? the third question which is a bit irrelevent to programming how memorey locations … | |
Hi, any body guide me a program how to convert octal to hexa decimal number using c lnaguage without using %x %o regrards, samba | |
I am wondering how to securely build a sign in application through a modal window. Is it possible to make a modal window secure? I have two examples of what I am talking about: 1) [url]www.ae.com[/url] - they have a sign in section on their header - not SSL on … | |
[CODE][/CODE] average=a[counter]+b[counter]+c[counter]+d[counter]/12; can someone can help me? modify to modify this code using an for loop? thanks | |
I need to learn more about this before i can even think about starting coding, problem is i can't find a thing on it except a few papers. I am speaking about no keyframes, you just manipulate the bones through algorithms. i need to see some source code on this. … | |
I have developed a program in an XP enviroment using Borland Builder 6. It has since been installed on a computer with Vista. The program opens text files which are stored in the root directory of the program. The pathname is set in global constants like "name.txt". This works fine … | |
Hi All, I am trying to set background image. I retreived it from the database into $xyzimage variable and then trying it to display in the <body > tag. When i am trying to display it a tabel cell like <td> it works, but not in <body> tag. Is there … | |
I posted this question in the regular C++ forum and havn't gotten any answers. hoping I will have better luck here, here was the question: [URL="http://www.daniweb.com/forums/thread160790.html"]http://www.daniweb.com/forums/thread160790.html[/URL] I need to load a bitmap from file, and get an array of bits that I cain use. I have used CreateDIBSection() to create … | |
hi, I have used LoadImage() to load a bitmap as HBITMAP. If I use SelectObject() to attach it to an HDC, and then BitBlt() it to the screen, that works fine. I need an array that would be compatible with the one produced by CreateDIBSection(). I have tried GetBitmapBits(), and … | |
hi, is session_id is generated by javapage in one website is equal to session_id generated by phppage????.because i integrated php pages to java pages in that website. so i maitain session based on that java page. is this possible to session_id from java page to php page, if i get … | |
Im testing out blit() and i ran into this error: [code=python] Traceback (most recent call last): File "/home/tom/Desktop/pygame/test/main.py", line 15, in <module> screen.blit('image.jpg', (10,10)) TypeError: argument 1 must be pygame.Surface, not str this is my code: import pygame pygame.init() running = 1 while running == 1: screen = pygame.display.set_mode((800, 600)) … | |
The idea of the entire program is to play a simplified version of war that's why its 28 cards. Anyway my problem comes from the dealRandomCard function when I compile it it says there needs to be another ) before time. I'm not sure what to do. I appreciate the … | |
can anyone send me the javascript material or any link for material? | |
the programe output the sum of the factor of a number entered by user and when he enter 0 the programe should display output with no result for 0 here is the code #include<iostream> #include<iomanip> using namespace std; int main() { int x,i; int z=1; int sum=0; while(cin>>x) { if(x!=0) … | |
Hi, I am using a C# application that interacts with a TSQL stored procedure. The problem is that my SqlDataReader property .RecordsAffected always returns -1 regardless of whatever kind of select, update, or delete query I run. Here is my relevant code: [code] SqlDataReader myReader = null; SqlCommand command = … | |
Hello, I am trying to write the quick sort algorithm to take in an array of 20 random integers and sort them. However, it is producing weird output for the sorted list. My code is as follows, can anyone give me a little help here? [code=C++] #include <iostream> #include <vector> … | |
How will it be possible to add "Gray" lines in a Menu (MenuStrip). I have attached a picture of how I meen. Example WordPad in Windows uses these type of menus to separate MenuChoises. | |
basically i have a 3d array of chars, i need to be able to save and load it using text files. Any as to how i would actually do it? Im familiar with reading lines using BuffererdReader and stuff. Im thinking use a loop to save each element to a … | |
I don't want to repeat writing $value in if statement. Is there any way to write once and add conditions like below? Thanks [code] if ($value==1 || $value== 2 || $value== 3) { echo "I don't want this way"; } if ($value==1 || 2 || 3) { echo "I want … | |
error message cannot find constructor `lottery(int[])` import java.util.Random; public class Lottery { private final int NUM_DIGITS = 5; private int[] lotteryNumbers = new int[NUM_DIGITS]; private int[] userNumbers; private int matches; public int[] getLottery(int[] l) { // Create an array the length of l. lotteryNumbers = new int[5]; // Random object. … | |
Okay, i just want to get this out of the way. I do know that this subject has been tackled a couple times and I'm not cutting to the end without reading what has been already written. I can't seem to find the explanation that i'm looking for and a … | |
I am working on a program, and I can't figure out what I'm doing wrong. Any help would be appreciated. Here is what I have to do: [b] Write a procedure named St_concat that concatenates a source string to the end of a target string. Sufficient space must exist in … | |
Hi, I am new to COM Programming. I want to initialize COM library. I am calling hr = CoInitializeEX(NULL); but hr = S_FAIL. and my code is stopped. What I have to do further to execute COM program written in VC++.NET 2005. -- Regards, Asif | |
oopss i still have a problem!!.. What's wrong with my code? [code=cplusplus] main() { int a[4]; int b[4]; int counter,sum=0; cout<<"JANUARY"; for(counter=0;counter<4;counter++) { cout<<"Numbers of Rainfall:"; cin>>a[counter]; } for(counter=0;counter<4;counter++) { sum+=a[counter]; } cout<<"The numbers of rainfall in the first month"<<sum<<endl; cout<<FEBRUARY; for(counter=0;counter<4;counter++) { cout<<"Numbers of Rainfall"; cin>>b[counter]; } for(counter=0;counter<4;counter++) { … | |
guys! i realy need your help! i have this big problem of how to convert hex to decmal. theoreticaly it is very easy but the problem is that in assembly, everything is done in hex example if u add 10d+10d, assembly will add it as Ah+Ah = 14h. thats where … | |
[code] #include <iostream> class base { public: void print() { std::cout << "base" << std::endl; } }; template< class B > class der : public B { int i; public: virtual void print() { std::cout << (B *)this << std::endl; B::print(); } }; int main(int, char **) { der< der< … | |
I am trying to update my roguelike game, 'Get Out!!'. I have one simple question. How do I print an int at an xy coordinate using pdcurses and c++. i only know how to print char and const char[]. Thank you | |
I got a BSc. in computer science over two years ago.. now i'm thinking of getting some more education on mostly programming and staffs. What does the MSc in computer science cover. Anything diffferent from what is mostly covered in the BSc programm??? I'm jsut confused if it would be … | |
Hey can anyone offer me any advice on updating my customer file, I created the blank records and can create a record in the newCustomer function but can’t seem to access that record again for updating, does anyone know where I’m gone wrong. Any help would be greatly appreciated. [CODE]fstream … | |
Hi guys, i've a problem when running java application connected with sqlite database the connection is done with netbeans IDE, but when i trying to run the application i get the following error [COLOR="Red"]init: deps-jar: compile: run: 06/12/2008 04:42:49 ص org.jdesktop.application.Application$1 run [COLOR="Green"]SEVERE: Application class desktopapplication3.DesktopApplication3 failed to launch javax.persistence.PersistenceException: … | |
Hi, i have a html form for questionnaire whr i have few question. each one has 2 radio button (yes/no). if value for radio button 'yes' is selected then activate text box to write the comment. if radio button is selected for 'No' then text box should be disable. similarly … | |
hi, i'm trying to reference a class outside the current working package how to reference this class to create an object??? | |
basically here is my code, sorry if its untidy. you will see in the crossover function i want to use the rand. i get errors like "too many arguments for int rand()" [CODE] #include <iostream.h> #include <conio.h> #include <iomanip.h> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <ctime> #include <cstdlib> #pragma … | |
i need a help on how to add the value of an array to another value of an array? i dont need the whole program.. i just want to know what will i do in order to add the 4 values of an array using the for loop statement. for … | |
Hi! I've got a table of, let's say, widgets. Each has a unique id (primary key) and a few other attributes such as widgetid (unique, number) widget_name (string) widget_price (varchar) widget_color (string) BUT, for each widget, I also want to list other widgets (that are listed in the same table) … | |
Hello People , I am creating a project in VB.net . now the problem is there are several forms and i start with the login form my login consist of three major fields username , password , type now the type here is the type of user accessing the application … | |
Alright, so for the output: 0 2 4 6 8 10 1 3 5 7 9 11 3 6 9 12 15 18 6 10 14 18 22 26 ... (the pattern presented goes on forever) a code must be written to create it. I know I need a for … | |
Hey can anyone give me the query to retrieve a list of databases on a server rather than this query [code]SELECT NAME FROM sysobjects[/code] which gives me a list of tables ???? Thank you | |
Dear frens, from your help I succeeded in creating data grid . Thank you for it. Now i need to generate report from data grid. my data grid code is as follows; Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Db1DataSet1.Clear() Dim conStr As String = … |
The End.