199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Sarah Gerald

Hello all , I am having a problem in a homework which requires writing a recursive Binary search C code into MIPS The question says that you have a 16 sorted integers This is the C code [CODE] BinarySearch(A[0..N-1], key, low, high) { if (high < low) return -1 // …

0
632
Member Avatar for kukuruku

Hi ,I am trying to catch exception if integer is out of certain interval ,how can I do that. Lets say that float variable has to be in the interval 2 to 5 in all other cases exception Thanks

Member Avatar for mKorbel
0
106
Member Avatar for moroccanplaya

i cant seem to send my html file through a socket, when vere i connect to the server via web browser [url]http://localhost:7000[/url] it just freezes. and the server stops [CODE] open_ptr = open("/home/user/www/home.html",'r'); while((n = read(open_ptr,buffer,256)) > 0) { n = write( new_sock,buffer,256); } close(open_ptr); return 0; } [/CODE]

Member Avatar for moroccanplaya
0
101
Member Avatar for Kath_Fish

Hi, now i want to print out the data from the text file. but, i face a problem in the output.the program give me the output is like this: 1 2:1 1 3:2 1 4:2 2 3:1 2 4:1 3 4:2 1 3:1 1 4:1 3 4:1 1 2:1 1 …

Member Avatar for Kath_Fish
0
98
Member Avatar for ryannans

WHAT IS THE SOURCE CODE OF THIS STATEMENT OR IN THIS QUESTION?? QUESTION IS: enter 15 integers in the range of 1-20.find how many of these values fall in the range of 1-50, 51-100, 101-150 and 151-200.Validate the input so that only values from 1-200 will be entered. can u …

Member Avatar for arkoenig
0
230
Member Avatar for AngelicOne

I'm having a hard time to return a string value. I usually do this by passing an int, which works just fine. Now, I need to pass a string but couldn't. Is this possible? Or int is only type that SQL can return?

Member Avatar for buddylee17
0
141
Member Avatar for opawix

#include<iostream> using namespace std; int main() { int i=119; while(i>=3){ cout<<" "<<i; i--; } system("pause"); return 0; } cout of this is counting 119 decrement til 3 but output should this: 119 94 72 53 37 24 14 7 3 could any1 help? thanks a lot guys!:D

Member Avatar for opawix
0
89
Member Avatar for tyson.crouch

G'day guys, Given that I am (sort of) new to javascript I have the following code; [CODE]<html> <head></head> <script type="text/javascript"> [INDENT]function insertBold(tArea){ [INDENT]var unselectedText = tArea.value; var selectedText = tArea.value.substr(tArea.selectionStart, tArea.selectionEnd); var v = "[B]" + selectedText + "[/B]"; var temp_array = tArea.value.split(selectedText); tArea.value = v;[/INDENT] }[/INDENT] </script> <body> [INDENT]<textarea …

Member Avatar for haleel
0
79
Member Avatar for vanzhyme

Im using Vb.Net 2005. In my Crystal Report I want to print the data from left to write. but i dont know how. The printer settings is on landscapre. Thanks in advance for the help.

Member Avatar for vanzhyme
0
74
Member Avatar for pharoah85

Could someone give me help on how to simplify this? Trying to write code to solve this equation: Distance = sqrt((x2 - x1)^2 + (y2 - y1)^2 + (z2 - z1)^2) I subbed a,b,c as the second set of coords. Im probably using too many vars as weel but im …

Member Avatar for pharoah85
0
217
Member Avatar for caitlins5

Hello, I have a popup form that is coded in .aspx, currently we have the address bar hidden in the form popup using Javascript. This works fine in IE but the address bar shows in Chrome and Firefox and we would like it hidden. What coding techniques/ workarounds are out …

Member Avatar for caitlins5
0
165
Member Avatar for teedoff

Hi I was following a tutorial on sitepoint for creating structs. I must be missing something since I followed the code exactly, but keep getting an error! Here is the code: [CODE]<cfset myBook= structNew()> <cfset a = StructureInsert(myBook, \\"title\\", \\"All About Coldfusion\\", 1)> <cfset a = StructureInsert(myBook, "author", "Teed Younger", …

Member Avatar for teedoff
0
276
Member Avatar for kuteinheart

Hi, I have two forms: one which displays the list of projects in a dropdown box from mysql db second one is a date picker form. after this i have a submit button. Now, when i click the submit button I want to get the details of the Users corresponding …

Member Avatar for jessica007
0
6K
Member Avatar for zac1987

index.php file <script type="text/javascript" src="../lib/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="../lib/jquery.jcarousel.min.js"></script> <script type="text/javascript"> jQuery(document).ready(function() { jQuery('#mycarousel').jcarousel({ vertical: true, scroll: 3, visible: 12 }); }); </script> <ul id="mycarousel" class="jcarousel jcarousel-skin-tango"> <li>I love you haha.</li> <li>I love you haha.</li> <li>I love you haha.</li> </ul> --------------------------------------------------------------------------- From the above code, I use firebug to inspect the …

Member Avatar for zac1987
0
202
Member Avatar for spe_eddy

Sorry - I know this isn't strictly Python, and i'm more asking for a formula than code! Usually Excel functions show how they are calculated but i can't find anything on this one! So given a set of data, predict what the next value will be based on the previous …

Member Avatar for spe_eddy
0
480
Member Avatar for kerp

Hi During the last 6 months or so I've worked on and off on a couple of a classes to send data over network using winsock and asynchronous sockets on windows. Basically my system works like this. The server will send packets on a connection until WSAGetLastError() returns WSAEWOULDBLOCK the …

Member Avatar for gusmcn
0
514
Member Avatar for NewOrder

i have a background worker with a sleep method inside a method. (winforms) here is the code that is executed: [CODE] private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { BackgroundWorker worker = sender as BackgroundWorker; int[] makeSelfMoves = new int[4]; foreach (KeyValuePair<int, int[]> item in replay)// count should be more than …

Member Avatar for NewOrder
0
295
Member Avatar for stan2000

I'm trying to write a method that draws a rectangle. If the user enters height = 4, and width = 8, and the print of character " * ", then the left rectangle is drawn on the left if the filled flag is true. If the flag is false, then …

Member Avatar for richieking
0
3K
Member Avatar for chathuD

hi guys i have developed a simple application to insert data in to a SQL DB and get data from same DB using stored procedure. ( 1 table ,2 SP's ) so now i want to run this application on my friends computers to. so how to transplant my simple …

Member Avatar for mono_jit23
0
520
Member Avatar for cwarn23

Hi, I am rendering a bunch of cg images but now I need to make an applet that will view them. More specifically these images are very much like the first generation of google street view where you have a picture and you can get a camera to crop a …

Member Avatar for mKorbel
0
177
Member Avatar for ibdatx

How can I refresh a window sort of in the combined operations of close and reopen. Thanks.

Member Avatar for ibdatx
0
173
Member Avatar for yousuf13

hi everybody im a fresher ,can anyone tell me . i have one textbox ,this textbox contains a number ,i want to delete a record by searching that number in two tables Table1 and Table2,the record may present in Table1 or Table2 ,so it should check both the Tables ,if …

Member Avatar for debasisdas
0
109
Member Avatar for Mal-man

Stuck on a program i've been trying to work on for the last few hours. A user enters 2 arrays, both are charater arrays with 5 spaces each. They are passed into a function that compares the 2 arrays to each other [I]character by character[/I]. If they are idenital the …

Member Avatar for darkdai
0
7K
Member Avatar for mayursharma

Hello , I am new to jsp as well to wml too .. Problem is with Session variable . the page on which session variable are made , they are extracting on that page easily .... but on other pages ...they contain null values ...i am not able to get …

Member Avatar for mayursharma
0
740
Member Avatar for sara90

hello every one i make a project about linked list and do some functions on the linked list i want to sort the name in the linked list alphabetical i wrote this code but there is something wrong in it anyone can help thanks :) [CODE]# include <iostream> using namespace …

Member Avatar for Chilton
0
92
Member Avatar for wild_angel

Hi all, I have a problem with jsp. I created jsp and there is a table within this page. The columns are based on query from database. When the datas are not too many, the table looks fine. But when it has so many datas the table got messy. But …

0
112
Member Avatar for indr

hi, i opened two mysql sessions(A,B) and set the autocommit variable to 0 for both the sessions. by giving "set autocommit=0" then in session A i added a row to my table by calling a stored procedure and i tried doing the same in session B also.. but in session …

Member Avatar for indr
0
206
Member Avatar for CorruptionInc

OK, so here's my assignment...ask the user for a sentence, then print each word along with its position in the sentence. Then ask for another sentence... if the sentence is empty, terminate. My code works... but I don't know how to get it to loop back to asking for another …

Member Avatar for CorruptionInc
0
116
Member Avatar for Poopster01

I have written my first class and I was given a driver program to test my class it might seem silly but how do I run the driver file to test my class Description: Java Class Die that will manage a roll of a six-sided die. The Class will include …

Member Avatar for thekashyap
0
227
Member Avatar for susheelsundar

Greetings Everyone. :) My question is, is there any website which has intermediary java programs, i am concentrating on importing classes, Methodoverloading, Constructors and etc, i want some guidance with various examples, Do you have any suggestion? Adv Thanks, Susheel

Member Avatar for jwenting
0
103
Member Avatar for loveranjan

[CODE=C] #include <cstdlib> #include <iostream> #include <conio.h> #include <new> using namespace std; class Array { struct node { char *str; int item; struct node *next; }*p; public : Array() { p = NULL; } ~Array() { node *s; if(p == NULL) return; while(p != NULL) { s = p->next; delete …

Member Avatar for drkybelk
0
198
Member Avatar for PinoyDev

Good day! I just want to ask on how to setup a site so that when i search the site or business name on any search engine, it will be listed in the search result. Just like in Google. Thank you & God bless!

Member Avatar for PinoyDev
0
322
Member Avatar for rmerry

Hi all, I'm really struggling with this and so far haven't been able to find a solution on the Internet. I have a MySQL table called Journey which has a Date field. The dates are stored in the format YYYY-MM-DD. I'm trying to construct a query where I can get …

Member Avatar for rmerry
0
171
Member Avatar for cinnamonsui

Anyone want to help me with this SQL-code? [url]http://pastebin.com/VWnJmM34[/url] I want to add a column that shows the number of cupcakes the customer bought for that specific order_date. Is this possible? How do I do it?

Member Avatar for debasisdas
0
68
Member Avatar for fsamu2001

for (int counter = 0; counter > size ; counter ++ ) { sum = sum + score[counter]; } average = sum /size; cout << "The average Score is:" << average << endl; } void sortData(string* name, int* score, int size) { int index_one, index_two; char temp; for ( index_one …

Member Avatar for thekashyap
0
145
Member Avatar for Nigelmerle

Hello I find a tutorial on [url]www.phpeasystep.com[/url] about updating multiple records can anyone tell me how to make it work for php 5. When I click on update it shows the same page ...Please any help would be appreciated

Member Avatar for Nigelmerle
0
110
Member Avatar for programing
Member Avatar for EkoX

hi, i try to make a square number but its not limited by 2. number and the square can be any numbers. so its like n^n. please help me.. i confused how to do this.. any help will be appreciated. thanks.

Member Avatar for Wolfgan
0
221
Member Avatar for darkagn

Hi all, Can someone tell me if this is a delphi bug? I am using a Controls.TDate to store a date and using the SysUtils.EncodeDate function to set the value. [code] Invoice.DateReceived := EncodeDate(2011, 03, 16); [/code] When I store it in a MS SQL database field, it is adding …

Member Avatar for Wolfgan
0
166
Member Avatar for newbie14

Dear All, I would like to add a new row tex boxed into my form just like when we add column for a new table under phpmyadmin where the option of Add number of column and then press the button go when we try to structure a new table. How …

Member Avatar for diafol
0
200
Member Avatar for icehiro

I'm a beginner on MySQL. I tried to run this statement [CODE]SELECT* FROM address WHERE email=a@abc.com[/CODE] but it shown an error message. What's wrong?

Member Avatar for debasisdas
0
79
Member Avatar for Nicko_FaTe_

i have to make a program that facilitates the returning of lost pets to their owners, my current step to start is to make a function that populates the struct. here is my current work: [CODE]#include <iostream> #include <string> #include <cstdlib> #include <fstream> #include <iomanip> using namespace std; const int …

Member Avatar for jonsca
0
134
Member Avatar for blur blur

can any1 pls tell me how can i solve my problem? i'm running a c program that required the user to key in a int, but instead of keying in int the user key in char... and somehow the program stor the char n turn it into int... some even …

Member Avatar for thekashyap
0
114
Member Avatar for biancaW

How do you sort names alphabetically using functions in C++ from file? After the last set of words has been processed the program is to print out a) the number of sets processed b) the number of sets that were in alphabetical order to start with, and needed no rearranging. …

Member Avatar for thekashyap
0
131
Member Avatar for eileenc87

Hi , i'm new to vb.net. i wish to concatenate date and time from 2 different datetimepicker after concatenated I want it to be save in sql database format which is yyyy-MM-dd HH:mm:ss I'm doing half way and my query is like below. Dim insertCmd As New SqlCommand(Sqlstr, connection) insertCmd.Parameters.Add("@School_Subject", …

Member Avatar for Saikalyankumar
0
236
Member Avatar for jinglylime

hi, im trying to make a bike move by using the pedal() method, the method will move the bike forward a distance of half the circumference of a wheel. ive tried creating the pedal() method however when the method is invoke the position of the bike is still the same. …

Member Avatar for thekashyap
0
133
Member Avatar for vinothmca

in my Project I would like to use Command button instead of push button ,How can i do that process?

Member Avatar for debasisdas
0
317
Member Avatar for gyuunyuu

I found numerous examples on converting infix expression to postfix expression but my program needs to include some functions like sqrt(x), min/max(x,y), fact(x), abs(x). abs(‐5) is converted to ‐5 abs 120 – (45+3) is converted to 120 45 3 + ‐ (3^2 + 4^5)*fact(3) is converted to 3 2 ^ …

Member Avatar for thekashyap
0
134
Member Avatar for meensatwork

Hello, Iam using matplotlib to create a scatter plot and i have trouble in converting to exe. The error iam getting is [CODE]Traceback (most recent call last): File "portopti.py", line 8, in <module> File "matplotlib\pyplot.pyc", line 95, in <module> File "matplotlib\backends\__init__.pyc", line 25, in pylab_setup ImportError: No module named backend_tkagg[/CODE] …

Member Avatar for meensatwork
0
531
Member Avatar for daniweb2011

plss help me.. on how to use combo bx in vb6... i need a code on how to prompt if there account is expire or not.. plsss help me...

Member Avatar for AndreRet
0
99

The End.