199,124 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for gchasproblem

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 …

Member Avatar for Ancient Dragon
0
113
Member Avatar for mmonaco27

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 …

Member Avatar for mmonaco27
0
298
Member Avatar for toko

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 [] …

Member Avatar for toko
0
94
Member Avatar for balla4eva33

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 …

Member Avatar for balla4eva33
0
120
Member Avatar for tones1986

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 …

Member Avatar for tones1986
0
122
Member Avatar for aparnesh

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? …

Member Avatar for SheSaidImaPregy
0
198
Member Avatar for legendarya49

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 …

Member Avatar for legendarya49
0
147
Member Avatar for microtekblue

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, …

Member Avatar for ritgrad83
0
180
Member Avatar for purplegerbil

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 …

Member Avatar for purplegerbil
0
119
Member Avatar for shipar

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.

Member Avatar for shipar
0
114
Member Avatar for shipar

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.........

Member Avatar for shipar
0
111
Member Avatar for Jade_me

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, …

Member Avatar for Jade_me
0
95
Member Avatar for klefevre

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 …

Member Avatar for klefevre
0
136
Member Avatar for Labby77

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 …

Member Avatar for TopDogger
0
112
Member Avatar for transanmol

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 …

Member Avatar for Tight_Coder_Ex
0
248
Member Avatar for ravina_malik
Member Avatar for Mr Brownstone

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 …

Member Avatar for Mr Brownstone
0
86
Member Avatar for vinithktp

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> <% …

Member Avatar for vinithktp
0
84
Member Avatar for wkid87

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); …

Member Avatar for scru
0
116
Member Avatar for kv79

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 …

Member Avatar for kv79
0
126
Member Avatar for dr_substance

'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 …

Member Avatar for eggi
0
156
Member Avatar for johnywhy

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 …

Member Avatar for johnywhy
0
113
Member Avatar for jadedreality

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 …

Member Avatar for vmanes
0
137
Member Avatar for deraj8

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 …

Member Avatar for Ancient Dragon
0
121
Member Avatar for himanjim

[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]

Member Avatar for johnywhy
0
148
Member Avatar for toko

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 >> …

Member Avatar for toko
0
220
Member Avatar for kidjl

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 …

Member Avatar for kidjl
0
99
Member Avatar for tones1986

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=",") …

0
105
Member Avatar for knowledgelover

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]

Member Avatar for Killer_Typo
0
463
Member Avatar for jadedreality

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 = …

Member Avatar for Ancient Dragon
0
238
Member Avatar for jay64

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 …

Member Avatar for buddylee17
0
90
Member Avatar for Oreynid

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. …

Member Avatar for Salem
0
10K
Member Avatar for world_weapon

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)) …

Member Avatar for world_weapon
0
179
Member Avatar for alex8teen

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?

Member Avatar for ndnalibi
0
79
Member Avatar for Java-Newbie

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] …

Member Avatar for jwenting
0
154
Member Avatar for sivaslieko++

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)){ …

Member Avatar for danzona
0
106
Member Avatar for An_Evil_Penguin

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 …

Member Avatar for An_Evil_Penguin
0
103
Member Avatar for bigt2008

[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; } …

Member Avatar for Lerner
0
90
Member Avatar for jencinas69

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 …

Member Avatar for jencinas69
0
301
Member Avatar for ENG ISE student

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. …

Member Avatar for ENG ISE student
0
97
Member Avatar for daver40

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 …

Member Avatar for mandragora
0
128
Member Avatar for newbieGirl

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, …

Member Avatar for Black Box
0
661
Member Avatar for ndnalibi

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: …

0
225
Member Avatar for newbieGirl

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 …

Member Avatar for darkagn
0
481
Member Avatar for BlackNinja

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

Member Avatar for vijayan121
0
72
Member Avatar for hidash_in

[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]

Member Avatar for masijade
0
117
Member Avatar for tat2dlady

Does anyone know basic pseudocode for a balanced k-way sort-merge? Thanks for any info you may have.

Member Avatar for WaltP
0
418
Member Avatar for vincex200

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 …

Member Avatar for Ancient Dragon
0
101
Member Avatar for johnnyjohn20

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 …

Member Avatar for Salem
0
142
Member Avatar for Inny

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 …

Member Avatar for Inny
0
310

The End.