199,124 Archived Topics
Remove Filter ![]() | |
Hi. I am having a problem with one of my class functions. It compiles fine and works "when it wants to". I am using the search_inventory function in my add_product function of the same class. sometimes it works perfectly fine however sometimes the search_inventory function causes an infinite loop when … | |
I'm implementing a heapsort on a void array. But I'm having trouble with line 6: [code=c]void siftdown(char *start, char *end, size_t size) { char *curr = start; char *child; while (curr*2 + size <= end)[/code] I cast the pointers to char because they have a length of one, and I … | |
i have made a program that gives a defenition of a short form e.g. ;-) = wink [CODE]#include <iostream> using namespace std; int main() { char input[20]; char correct1 [] = "CU"; char correct2 [] = ":-)"; char correct3 [] = ":-("; char correct4 [] = ";-)"; char correct5 [] … | |
I have a new project I'm working on, and I'm stuck. Notice in my code below that I originally had [B]return dayInMonth;[/B], but commented it out as it was returning the year as 27 in the array and the month and dayInMonth both as 1. My year and month should … | |
Hey Folks. I am working on a project in which i have to use Classes and do multiple things with different sorts of data. The basic question i have though is this: what am i doing wrong here in terms of this class declaration etc... i have looked around on … | |
I am trying out the process of uploading a file from a browser to the IIS 5 server. I have installed the MS Posting Acceptor (cpshost.dll) and the file exists in the C:/InetPub/Scripts folder. I restarted IIS after the installation. The Code for Posting the file is [CODE]<FORM EncType="multipart/form-data" ACTION="http://localhost/Scripts/cpshost.dll?PUBLISH? … | |
the program gives me an infinite loop [code=c++] #include <iostream> #include <cmath> #include <iomanip> using namespace std; void loadScores( int [], int & ); double average( int [], int ); double deviation(int [], double, int ); void frequency( int [], int[], int, double, double); void sortScores(int [], int ); void … | |
Hello. I don't know what I did or what has happened, but all of a sudden when I try to click my RSS feed link on my Wordpress blog, I get this error: [inlinecode] XML Parsing Error: xml declaration not at start of external entity Location: [url]http://www.justwantaquote.com/blog/feed/[/url] Line Number 2, … | |
Hi, I have a class that runs an external ap using shell then waits till the app is quit before carrying on. Does anybody know if it is possible to start an app say by clicking a button then be told when the app has closed. The app can be … | |
is it possible [COLOR="Red"]to read a specific data from a defined web page of a defined website[/COLOR]? if possible please help for this.............or suggest me which language is appropriate for that. | |
hello, i am a new comer. is it possible [COLOR="Red"]to read data (e.g. some integers followed by a unique word) from a defined web page of a defined web site?[/COLOR] if possible please help me or suggest me which language is appropriate to do the job......... | |
hi all, im a newer in vb.net i want to alleviate two different date. im using two datetimepicker in this case. if i just to alleviating with pus the year of each dtpicker i can't to get detail result. ex : 02/12/2007 - 01/11/2007 = 1 month 0 days thx, … | |
The following code snippet works in IE, but not Firefox 2.0.0.10. The parts that access text boxes work great. I can see the selectedIndex's value for the two drop-downs, but cannot retrieve the text of the selected item for either drop-down. Specifically, the first alert displays the value of the … | |
Hello all master coders, I have been doing my site exclusivley in html. What is the big differences bewteen php and html? What are the advantages/disadvantages? What, if any would be the penalty from going from an html site to a php site? Would this hurt the PR I have … | |
Hey friends, please help me as soon as possible, I just need the assembly(ASM) code for an 8086 for a simple PC Alarm clock, that just allows the user to set alarm and that plays an mp3 or any other format at that specified time. Its absolutely fine if the … | |
plz help me out with the code here thanks, Ravna | |
Hi my Name is Ryan and I am currently doing a college project in VB.net I have wrote a few programs in VB.net but for this current project I really need help... Is there anyway of ending processes (such as explorer) from a click of a button in a VB.Net … | |
Hi, Im new to javaScript. Im trying to fetch data from html table row to text box by clicking radio button. But i can fetch only the first row. Here iam attaching my code... JSP Code <table> <tr> <td>Select</td> <td>ID</td> <td>FIRST NAME</td> <td>LAST NAME</td> <td>AGE</td> <td>HOME TOWN</td> <td>JOB</td> </tr> <% … | |
I am having trouble with printing out the number to the console. Instead of 10 printing out I want 16. How can this be fix. using System; using System.Collections.Generic; using System.Text; namespace LinkList { class Program { static void Main(string[] args) { List studentRecord = new List(); studentRecord.InsertAtFront(10); studentRecord.InsertAtFront(16); studentRecord.InsertAtBack(32); … | |
Hi to everyone, I woud be pleased if you can write me, i have Dev-C++ and when i create project -> Win App in C++ code ,the Dev-C++ write me a lot of code wich i do not really understud how code reflect to a window and if you woud … | |
'Ello, I'm Andrew & I have a very big problem. I'm learning Perl & I'm having problem with my first simple code. Every time I go to look @ the page it just comes up excluding the HTML tags. Here's the code 'firstscript.cgi': [ICODE]#! /usr/bin/perl print "Content-type:text/html\n\n"; print "<html><head><title>My First … | |
hi i'd like to display a form on my page from a page on a remote website. I have permission to use the content on that remote site. I dont want to display the entire remote page, just the form. I have no control over the element names or ID's … | |
Okay, I wrote a code to translate a character into Morse Code. However, I was reading back over my assignment and I was actually supposed to define a macro PRINT_DOT which prints a period, and a macro PRINT_DASH, which prints an underscore. Then define macros PRINT_A, PRINT_B, etc. Is there … | |
i need to creat a function that will read information from a data file, and store the bank accounts in two seperate parrarell arrays. array “account”, and store the balance on the accounts in array “balance”. here is an example of what i have to do <data file> 231 4000.52 … | |
[B]Is there any standard code to capture ur current webpage as image .... I've found one in php but that requires copying of new dll files to ur server...So if u r hosting ur website on some other server...U can't achieve that!! Waiting for ur reply[/B] | |
okay i am trying to compare a char thats a constant with a char that a person has inputed however this is as far as i have gotten and its not working. [CODE] #include <iostream> using namespace std; int main() { char input[20]; char correct [] = "Rudolf"; cin >> … | |
would some one please help me with this?? i 've got an assigment from my professor which is in a University level (p.s i am still in college, and this class suppose to be the"introduction of programmng") However, in the game we suppose to create a "BlackOut Game", which we … | |
Hey Folks. I have to write a script that will basically take input from 3 different files which contain the following: product (file contains the following - FS=".") -product ID (Int number) -description (alphanumeric text) -price (floating pt. number, with 2 sig. digits) sales (file contains the following - FS=",") … | |
hi, Thanks a lot for posting us this thread it is really valuable [B]But I wonder if I can make the range including negative values besides positive numbers e.g: from -1 to 1 [/B] if you can help be I'll appreciate it thanks again knowledgelover [email]email removed[/email] | |
I am writing a program that prompts a user to enter a line of text, and if there are consecutive blank spaces in the sentence, it will replace those with just one space. Here is the code: [code=c++] int main(int argc, char **argv) { AnsiString; Line; int Index; Line = … | |
Hi, I am very new to PHP, teaching myself at the moment. I am using online tutorials to teach myself, so I am at their mercy of what information they provide. I have found some decent scripts, but they don't show me how to link them together. I am trying … | |
Hello all, I've tried reading back threads and the various posted tutorials, etc that here and I've not stumbled upon the answer I'm looking for. I am attempting to write a hangman game as a school project, and I am having trouble getting just one character from the input stream. … | |
Working on a function that prints out all database rows that end with _n where n is single digit number 1 - 9 first and then prints rows that do not end in _n. So far I have been trying to use this code [CODE=php] $theQuery="SELECT * FROM tableContent" while($row=mysql_query($theQuery)) … | |
Hi Pros, I am new to VB and I was asked to research about a .vbs extension file. I am supposed to use Notepad to write my codes and save it in a *.vbs extension. I would like to know if I can connect to the database using this method? | |
Is there a way to find if an entry is indeed a number without using try/catch? I want the program to keep asking the user to enter a number if s/he is "silly" enough to input something else. [code] System.out.print( "\n¿Edad minima a buscar? " ); edadMinima = input.nextInt(); [/code] … | |
I read two binary numbers which are separeted by a coma(1010,1000111) from a texfile into two differen linkedlist as below: [code] while (!feof(fout)) { ch=fgetc(fout); if(ch==','){ printf("\n"); control=1; }else{ if(control==0){ if(ch=='1' || ch=='0'){ curr = (item *)malloc(sizeof(item)); curr->val = ch; curr->next = head; head = curr; length1++; } }else{ if(!feof(fout)){ … | |
Hi. I’m quite new to python and I was hoping someone could help me with a solution. What I’m looking to do is use the print function in conjunction with the time.sleep() (or if theres a better alternative) function to print text on one line with slight delays between text … | |
[B]so foar I've done this much[/B] using namespace std; int main() { //1.Declares an input stream variable named inFile ifstream inFile; //2.Opens "indata.txt" inFile.open("indata.txt"); //3. If input file was not opened Prints "Input file not found" if (inFile.fail()) { cout << "Could not open file!" << endl; return 1; } … | |
Hello I am trying to add a 7, 14 or 30 day to our job posting online form. Right know I just have a start and end date drop down. What I have in mind is to do 3 radio buttons with 7 day, 14 day, and 30 day, the … | |
I need to do this do while loop but I dont know how to exactly get it to repeat itself I got an error when I tried to compare pointer to integer and thats what i have in the code below, any thoughts as to how this should be done. … | |
I'm a bit of a beginning to PHP, so I hope that this question isn't too terribly simple. I'm trying to write a flexible query that will use data from an HTML form to create a SELECT statement for a MSSQL database. I've tried writing a sample query, but I … | |
Hello all -- found myself stuck on a certain bit of code dealing with a number pattern I put together. I've written out most of the code, but I'm stuck in 2 areas - thought maybe someone could help shed some light. It seems like it would be very simple, … | |
Hello, First I apologise if this isn't the right forum... I have a vbscript that is non-asp. It is run in a program called EFI-Logic that is an ERP. EFI-Logic caonnects to our MSSQL database for normal operation. The problem is that on some computers I get the following error: … | |
I guess I'm having a lot of problems tonight with this program I'm trying to accomplish for myself... I'm trying to write an application called TestNumFactors which defines a static method with header "public static int numFactors(int n)". When numFactors is called, it should return the number of factors of … | |
Hi I was just wondering if there was a way to convert a value of double to a string? And if there is what is the command? Thank You in advance | |
[B]how to open any exe file using java. i alrerady used the Runtime.getexec() code. but when i refresh the page the application is opening. my thought is the application should be open after clicking the button in jsp page. if u have any code send me.[/B] | |
Does anyone know basic pseudocode for a balanced k-way sort-merge? Thanks for any info you may have. | |
My group as a project that is due and we don't know where to start. We attempted it and we failed several times. This is the project. PLEASE HELP US. Write a C++ program that will read data from a file, perform computation on the data, then print the result … | |
I am trying to filter an array with different elements in using an if statement. So far i have if ( a[i] < 0.001 ) a[i] = 0 which works but i have minus values in the array which i wish to keep. Therefore it would be ideal to have … | |
Hello, Im trying To create A code In php That Does the Following: A. detects visiting users real ip address B. detects city and country C. detects browser type and version D. detects referrer url E. detects landing page F. appends this information to a txt file Im using the … |
The End.